测试通过
This commit is contained in:
parent
08b7a3aece
commit
51c7478b94
|
@ -31,6 +31,5 @@ func (l *GetTypeLogic) GetType(req *types.Request) (resp *types.Response) {
|
|||
logx.Error(err)
|
||||
return
|
||||
}
|
||||
|
||||
return resp.SetStatus(basic.CodeOK, "success", data)
|
||||
}
|
||||
|
|
|
@ -33,7 +33,6 @@ func (l *UserBasicInfoLogic) UserBasicInfo(req *types.Request) (resp *types.Resp
|
|||
fsUserModel, err := model.NewFsUserModel(l.svcCtx.MysqlConn).FindOne(l.ctx, loginInfo.UserId)
|
||||
if err != nil {
|
||||
logx.Error(err)
|
||||
|
||||
return resp.Set(510, err.Error())
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@ func (l *UserLoginLogic) genJwtToken(accessSecret string, accessExpire, nowSec,
|
|||
}
|
||||
|
||||
func (l *UserLoginLogic) UserLogin(req *types.RequestUserLogin) (resp *types.Response, jwtToken string) {
|
||||
// 必须返回response, 前端需要的是内部约定的Code码, 处理相关的逻辑. 例子(eg): resp.Set(501, "error")
|
||||
userModel, err := model.NewFsUserModel(l.svcCtx.MysqlConn).FindOneByEmail(l.ctx, req.Name)
|
||||
|
||||
if err == model.ErrNotFound {
|
||||
|
|
Loading…
Reference in New Issue
Block a user