2024-04-09 05:38:29 +00:00
|
|
|
package basic
|
|
|
|
|
|
|
|
type ErrorCode struct {
|
|
|
|
Code int `json:"code"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2024-04-12 02:20:29 +00:00
|
|
|
ErrRespNotNil = &ErrorCode{Code: 10000, Message: "resp must not nil"}
|
|
|
|
|
2024-04-15 08:08:17 +00:00
|
|
|
ErrEncGcm = &ErrorCode{Code: 10001, Message: "gmc加密错误"}
|
|
|
|
ErrJSONUnMarshal = &ErrorCode{Code: 10002, Message: "json 解析错误"}
|
2024-04-09 10:17:08 +00:00
|
|
|
|
2024-04-09 05:38:29 +00:00
|
|
|
ErrParamParse = &ErrorCode{Code: 10100, Message: "参数解析错误"}
|
2024-04-09 10:17:08 +00:00
|
|
|
|
|
|
|
ErrEmailFormat = &ErrorCode{Code: 10101, Message: "email 格式错误"}
|
2024-04-09 05:38:29 +00:00
|
|
|
)
|