base

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Header_error_code int = -1
View Source
const Header_success_code int = 0

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseReqModel

type BaseReqModel struct {
	Header ReqHeader `json:"header"`
	Mac    string    `json:"mac"`
}

func (*BaseReqModel) GetBaseEncryptionValue

func (b *BaseReqModel) GetBaseEncryptionValue() string

func (*BaseReqModel) SetMac added in v1.2.0

func (b *BaseReqModel) SetMac(mac string)

func (*BaseReqModel) ToJson

func (b *BaseReqModel) ToJson() []byte

type BaseResModel

type BaseResModel struct {
	Header *ResHeader `json:"header"`

	Mac string `json:"mac"` // mac
}

func (*BaseResModel) GetBaseEncryptionValue

func (b *BaseResModel) GetBaseEncryptionValue() string

func (*BaseResModel) GetEncryptionValue added in v1.2.0

func (b *BaseResModel) GetEncryptionValue() string

func (*BaseResModel) GetMac added in v1.0.2

func (b *BaseResModel) GetMac() string

type ReqHeader

type ReqHeader struct {
	UserCode string `json:"userCode"` // User unique identification
	AppCode  string `json:"appCode"`  // App unique identification

}

type ReqInterface

type ReqInterface interface {
	SetMac(mac string)
	GetEncryptionValue() string
}

type ResHeader

type ResHeader struct {
	Code int `json:"code"`

	Msg string `json:"msg"`
}

type ResInterface

type ResInterface interface {
	GetMac() string
	GetEncryptionValue() string
}

Jump to

Keyboard shortcuts

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