Documentation ¶
Index ¶
Constants ¶
View Source
const ( //commom RESP_OK = 10000 RESP_ERR = 10001 RESP_PARAM_ERR = 10002 RESP_TOKEN_ERR = 10003 RESP_NO_ACCESS = 10004 RESP_APP_NOT_ON = 10005 RESP_UNKNOWN_ERR = 10006 )
响应码 @Description
Variables ¶
This section is empty.
Functions ¶
func GetMsgWithCode ¶
Types ¶
type RespInfo ¶
type RespInfo struct { F_responseNo int `required:"true" description:"响应码"` F_responseMsg string `description:"响应码描述"` F_data interface{} `description:"响应内容"` }
@Title 返回数据结构处理 @Author cbping
func NewRespInfo ¶
func NewRespInfoWithCode ¶
func (*RespInfo) SetData ¶
func (ri *RespInfo) SetData(data interface{})
@Title SetData @Description
func (*RespInfo) ToStringMap ¶
@Title 转化成map @Description @Return map[string]interface{}
Click to show internal directories.
Click to hide internal directories.