fix: user get info error

This commit is contained in:
yystopf 2022-03-18 15:57:04 +08:00
parent 19110f5b50
commit 490e0513ab
1 changed files with 0 additions and 6 deletions

View File

@ -96,12 +96,6 @@ func (user User) GetUserInfo(c *gin.Context) {
response := app.NewResponse(c)
userID := response.UserID
param := service.UserRequest{ID: userID}
valid, errs := app.BindAndValid(c, &param)
if !valid {
global.GO_LOG.Sugar().Errorf("app.BindAndValid errs: %v", errs)
response.ToResponseErrors(errs.Errors())
return
}
svc := service.New(c.Request.Context())
dbUser, err := svc.GetUser(&param)