登录相关处理
This commit is contained in:
@@ -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 格式错误"}
|
||||
)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user