Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInternal = NewRespError(10000, "系统异常") ErrBusyRequest = NewRespError(10001, "请求频繁") ErrParameter = NewRespError(10002, "请求参数异常") ErrWrongCode = NewRespError(10003, "验证码错误") ErrQueryUser = NewRespError(20001, "查询用户信息失败") ErrWrongPasswd = NewRespError(20002, "用户名或密码错误") ErrAddUser = NewRespError(20003, "新增用户失败") ErrUserPhone = NewRespError(20004, "手机号校验错误") )
Functions ¶
func NewRespError ¶
Types ¶
type BasicResponse ¶
type BasicResponse struct { Status int `json:"status"` Data interface{} `json:"data"` Msg string `json:"msg"` }
func (BasicResponse) Error ¶
func (r BasicResponse) Error() string
Click to show internal directories.
Click to hide internal directories.