添加AllModels
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"fusenapi/utils/basic"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type UserSaveBasicInfoLogic struct {
|
||||
@@ -51,7 +52,7 @@ func (l *UserSaveBasicInfoLogic) UserSaveBasicInfo(req *types.RequestBasicInfoFo
|
||||
if err != nil {
|
||||
logx.Error(err)
|
||||
switch err {
|
||||
case gmodel.ErrRecordNotFound:
|
||||
case gorm.ErrRecordNotFound:
|
||||
return resp.SetStatus(basic.CodeUserIdNotFoundErr)
|
||||
default:
|
||||
return resp.SetStatusWithMessage(basic.CodeDbUpdateErr, err.Error())
|
||||
|
||||
Reference in New Issue
Block a user