测试通过

This commit is contained in:
eson 2023-06-07 12:01:08 +08:00
parent 08b7a3aece
commit 51c7478b94
3 changed files with 0 additions and 3 deletions

View File

@ -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)
}

View File

@ -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())
}

View File

@ -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 {