fix: user get info error
This commit is contained in:
parent
19110f5b50
commit
490e0513ab
|
@ -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, ¶m)
|
||||
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(¶m)
|
||||
|
|
Loading…
Reference in New Issue