We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b96ba3 commit 64ca2a4Copy full SHA for 64ca2a4
server/api/v1/system/sys_user.go
@@ -276,6 +276,7 @@ func (b *BaseApi) SetUserInfo(c *gin.Context) {
276
_ = c.ShouldBindJSON(&user)
277
user.Username = ""
278
user.Password = ""
279
+ user.AuthorityId = ""
280
if err := utils.Verify(user, utils.IdVerify); err != nil {
281
response.FailWithMessage(err.Error(), c)
282
return
@@ -301,6 +302,7 @@ func (b *BaseApi) SetSelfInfo(c *gin.Context) {
301
302
303
304
305
306
user.ID = utils.GetUserID(c)
307
if err, ReqUser := userService.SetUserInfo(user); err != nil {
308
global.GVA_LOG.Error("设置失败!", zap.Error(err))
0 commit comments