添加用户权限功能权限
This commit is contained in:
parent
beaecbbb01
commit
8607efd319
|
|
@ -17,6 +17,9 @@ type User struct {
|
|||
Redis bool `gorm:"column:redis"`
|
||||
Run bool `gorm:"column:run"`
|
||||
Upload bool `gorm:"column:upload"`
|
||||
VideoFunc bool `gorm:"column:video_func"` //视频功能
|
||||
DeviceFunc bool `gorm:"column:device_func"` //设备功能
|
||||
CIDFunc bool `gorm:"column:cid_func"` //持续集成功能
|
||||
Avatar string `gorm:"column:avatar"`
|
||||
CreateTime string `gorm:"column:create_time"`
|
||||
UpdateTime string `gorm:"column:update_time"`
|
||||
|
|
@ -86,6 +89,9 @@ func UpdateUserByID2(id int, req proto.UpdateUserInfoReq) {
|
|||
updateData["Run"] = req.Run
|
||||
updateData["Redis"] = req.Redis
|
||||
updateData["Upload"] = req.Upload
|
||||
updateData["VideoFunc"] = req.VideoFunc
|
||||
updateData["DeviceFunc"] = req.DeviceFunc
|
||||
updateData["CIDFunc"] = req.CIDFunc
|
||||
updateData["Avatar"] = req.Avatar
|
||||
updateData["Gender"] = req.Gender
|
||||
DB.Model(&User{}).Where("id =?", id).Updates(updateData)
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ type UpdateUserInfoReq struct {
|
|||
Gender string `json:"gender" form:"gender"` //性别
|
||||
Redis bool `json:"redis" form:"redis"` //是否刷新redis
|
||||
Upload bool `json:"upload" form:"upload"` //是否上传头像
|
||||
VideoFunc bool `json:"video_func" form:"video_func"` //视频功能
|
||||
DeviceFunc bool `json:"device_func" form:"device_func"` //设备功能
|
||||
CIDFunc bool `json:"cid_func" form:"cid_func"` //持续集成功能
|
||||
Run bool `json:"run" form:"run"` //是否运行
|
||||
Avatar string `json:"avatar" form:"avatar"` //头像
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue