api

package
v0.0.0-...-9ee3cbb Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSignature

func GetSignature(encode string) string

func PostSignature

func PostSignature(encode string) string

func UpdateGetValue

func UpdateGetValue(value url.Values, version string, key string) (encode string)

func UpdatePostValue

func UpdatePostValue(value url.Values, version string, key string) (encode string)

Types

type Api

type Api interface {
	GetPostMsg(version string, key string) (msg string, err error)

	GetGetMsg(version string, key string) (msg string, err error)
}

type DelPrinterSqs

type DelPrinterSqs struct {
	// contains filtered or unexported fields
}

func NewDelPrinterSqs

func NewDelPrinterSqs(sn int) *DelPrinterSqs

func (*DelPrinterSqs) GetGetMsg

func (receiver *DelPrinterSqs) GetGetMsg(version string, key string) (msg string, err error)

func (*DelPrinterSqs) GetPostMsg

func (receiver *DelPrinterSqs) GetPostMsg(version string, key string) (msg string, err error)

type PrintMsg

type PrintMsg struct {
	// contains filtered or unexported fields
}

func NewPrintMsg

func NewPrintMsg(sn int, content string) *PrintMsg

func (*PrintMsg) GetGetMsg

func (receiver *PrintMsg) GetGetMsg(version string, key string) (msg string, err error)

func (*PrintMsg) GetPostMsg

func (receiver *PrintMsg) GetPostMsg(version string, key string) (msg string, err error)

func (*PrintMsg) WithLanguage

func (receiver *PrintMsg) WithLanguage(language string)

func (*PrintMsg) WithTimes

func (receiver *PrintMsg) WithTimes(times int)

type PrinterAdd

type PrinterAdd struct {
	// contains filtered or unexported fields
}

func NewPrinterAdd

func NewPrinterAdd(list []*PrinterInfoItem) *PrinterAdd

func (*PrinterAdd) GetGetMsg

func (receiver *PrinterAdd) GetGetMsg(version string, key string) (msg string, err error)

func (*PrinterAdd) GetPostMsg

func (receiver *PrinterAdd) GetPostMsg(version string, key string) (msg string, err error)

type PrinterDel

type PrinterDel struct {
	// contains filtered or unexported fields
}

func NewPrinterDel

func NewPrinterDel(list []*PrinterInfoItem) *PrinterDel

func (*PrinterDel) GetGetMsg

func (receiver *PrinterDel) GetGetMsg(version string, key string) (msg string, err error)

func (*PrinterDel) GetPostMsg

func (receiver *PrinterDel) GetPostMsg(version string, key string) (msg string, err error)

type PrinterEdit

type PrinterEdit struct {
	// contains filtered or unexported fields
}

func NewPrinterEdit

func NewPrinterEdit(sn int, remark string) *PrinterEdit

func (*PrinterEdit) GetGetMsg

func (receiver *PrinterEdit) GetGetMsg(version string, key string) (msg string, err error)

func (*PrinterEdit) GetPostMsg

func (receiver *PrinterEdit) GetPostMsg(version string, key string) (msg string, err error)

type PrinterInfoItem

type PrinterInfoItem struct {
	SN     int    `json:"SN"`
	Remark string `json:"Remark"`
}

type QueryOrderInfoByDate

type QueryOrderInfoByDate struct {
	// contains filtered or unexported fields
}

func NewQueryOrderInfoByDate

func NewQueryOrderInfoByDate(sn int, date string) *QueryOrderInfoByDate

func (*QueryOrderInfoByDate) GetGetMsg

func (receiver *QueryOrderInfoByDate) GetGetMsg(version string, key string) (msg string, err error)

func (*QueryOrderInfoByDate) GetPostMsg

func (receiver *QueryOrderInfoByDate) GetPostMsg(version string, key string) (msg string, err error)

type QueryOrderState

type QueryOrderState struct {
	// contains filtered or unexported fields
}

func NewQueryOrderState

func NewQueryOrderState(orderid string) *QueryOrderState

func (*QueryOrderState) GetGetMsg

func (receiver *QueryOrderState) GetGetMsg(version string, key string) (msg string, err error)

func (*QueryOrderState) GetPostMsg

func (receiver *QueryOrderState) GetPostMsg(version string, key string) (msg string, err error)

type QueryPrinterList

type QueryPrinterList struct {
	// contains filtered or unexported fields
}

func NewQueryPrinterList

func NewQueryPrinterList(index int, number int) *QueryPrinterList

func (*QueryPrinterList) GetGetMsg

func (receiver *QueryPrinterList) GetGetMsg(version string, key string) (msg string, err error)

func (*QueryPrinterList) GetPostMsg

func (receiver *QueryPrinterList) GetPostMsg(version string, key string) (msg string, err error)

type QueryPrinterStatus

type QueryPrinterStatus struct {
	// contains filtered or unexported fields
}

func NewQueryPrinterStatus

func NewQueryPrinterStatus(sn int) *QueryPrinterStatus

func (*QueryPrinterStatus) GetGetMsg

func (receiver *QueryPrinterStatus) GetGetMsg(version string, key string) (msg string, err error)

func (*QueryPrinterStatus) GetPostMsg

func (receiver *QueryPrinterStatus) GetPostMsg(version string, key string) (msg string, err error)

Jump to

Keyboard shortcuts

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