controller

package
v0.0.0-...-f59e2c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppRoutes

func AppRoutes(r *gin.Engine)

func DownloadBill

func DownloadBill(c *gin.Context)

mock

func StartGin

func StartGin(port string, r *gin.Engine)

func SystemRoutes

func SystemRoutes(r *gin.Engine)

func UploadBill

func UploadBill(c *gin.Context)

upload bill file

func UploadDB

func UploadDB(c *gin.Context)

upload pos db backup

func UploadLog

func UploadLog(c *gin.Context)

upload pos log

Types

type DBUploadInput

type DBUploadInput struct {
	GroupID    string `form:"groupid" json:"groupid"`
	ShopID     string `form:"shopid" json:"shopid"`
	BackupDate string `form:"backUpDate" json:"backUpDate"`
	Module     string `form:"module" json:"module"`
	Digest     string `form:"digest" json:"digest"`
}

func (DBUploadInput) GetKey

func (in DBUploadInput) GetKey(prefix, filename string) string

func (DBUploadInput) GetMessage

func (in DBUploadInput) GetMessage(filename, salt string) string

type LogUploadInput

type LogUploadInput struct {
	ShopID    string `form:"shopid" json:"shopid"`
	DeviceID  string `form:"deviceid" json:"deviceid"`
	VerSaaS   string `form:"versaas" json:"versaas"`
	AppName   string `form:"applicationname" json:"applicationname"`
	Timestamp string `form:"timestamp" json:"timestamp"`
	Digest    string `form:"digest" json:"digest"`
}

func (LogUploadInput) GetKey

func (in LogUploadInput) GetKey(prefix, filename string) string

func (LogUploadInput) GetMessage

func (in LogUploadInput) GetMessage(filename, salt string) string

type ResponseFile

type ResponseFile struct {
	Code     int    `json:"code"`
	Status   string `json:"Status"`
	FileInfo string `json:"FileInfo"`
	Message  string `json:"message"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL