登录相关处理

This commit is contained in:
2024-04-09 18:17:08 +08:00
parent 578d7ecdf9
commit 74b790b542
17 changed files with 544 additions and 24 deletions

View File

@@ -6,5 +6,9 @@ type ErrorCode struct {
}
var (
ErrEncGcm = &ErrorCode{Code: 10001, Message: "gmc加密错误"}
ErrParamParse = &ErrorCode{Code: 10100, Message: "参数解析错误"}
ErrEmailFormat = &ErrorCode{Code: 10101, Message: "email 格式错误"}
)

View File

@@ -34,7 +34,7 @@ func (resp *Response) setData(Data []interface{}) {
}
if len(Data) == 1 {
resp.Data = Data
resp.Data = Data[0]
} else {
resp.Data = Data
}