diff --git a/internal/app/api/user.go b/internal/app/api/user.go index e49030b..b54e51c 100644 --- a/internal/app/api/user.go +++ b/internal/app/api/user.go @@ -27,6 +27,7 @@ func (u *userApi) LoginHandler(ctx *gin.Context, req model.LoginHandlerReq) any return err } return gin.H{ + "code": 0, "token": token, "username": req.Account, "role": repository.UserRepository.GetUserByName(req.Account).Role,