Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderKeyDomainCode = "Domain-Code" HeaderKeyAppCode = "App-Code" HeaderKeyUserId = "User-Id" )
View Source
const ( MdKeyTraceId = "trace-id" MdKeyDomainCode = "domain-code" MdKeyAppCode = "app-code" MdKeyUserId = "user-id" MdKeySourceIp = "source-ip" )
View Source
const ( OrderMapKeyOfCreateTime = "create_time" OrderMapKeyOfUpdateTime = "update_time" OrderMapKeyOfId = "id" OrderMapValueOfAsc = "asc" OrderMapValueOfDesc = "desc" QueryLimit = 300 )
View Source
const ErrorCode = 500
View Source
const SuccessCode = 200
Variables ¶
This section is empty.
Functions ¶
func NewFailResultBytes ¶
func NewOkResultBytes ¶
Types ¶
type ApiException ¶
func NewApiException ¶
func NewApiException(code int32, msg string) *ApiException
func NewException ¶
func NewException(msg string) *ApiException
func (*ApiException) Error ¶
func (error *ApiException) Error() string
type ApiResult ¶
type ApiResult struct { Code int32 `json:"code"` Success bool `json:"success"` Msg string `json:"msg"` Data interface{} `json:"data"` }
func NewFailResult ¶
func NewOkResult ¶
type QueryCondition ¶
type QueryCondition struct { QueryKey string QueryValue interface{} }
Click to show internal directories.
Click to hide internal directories.