model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiRequestModel

type ApiRequestModel struct {
	Param interface{} `json:"param"`
}

type ApiResponseModel

type ApiResponseModel struct {
	Ret     int    `json:"ret"`     //success:0, fail:not 0
	ErrCode string `json:"errCode"` //err code
	ErrStr  string `json:"errStr"`  //err msg
	Message string `json:"message"` //error message ("API rate limit exceeded || Hmac signature no match")
}

func (*ApiResponseModel) CheckRet

func (response *ApiResponseModel) CheckRet() error

type BoolResponse

type BoolResponse struct {
	*ApiResponseModel
	Data bool `json:"data"`
}

func NewBoolResponse

func NewBoolResponse() *BoolResponse

type DecimalResponse

type DecimalResponse struct {
	*ApiResponseModel
	Data decimal.Decimal `json:"data"`
}

func NewDecimalResponse

func NewDecimalResponse() *DecimalResponse

type Int64Response

type Int64Response struct {
	*ApiResponseModel
	Data int64 `json:"data"`
}

func NewInt64Response

func NewInt64Response() *Int64Response

type ListResultModel

type ListResultModel struct {
	TotalCount int `json:"totalCount"`
	Page       int `json:"page"`
	PageSize   int `json:"pageSize"`
}

Jump to

Keyboard shortcuts

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