```
feat(user-service): 修改超级管理员ID并添加金币删除功能 - 将超级管理员ID从1改为10001 - 在用户更新时删除金币字段 - 调整异色宠物生成概率从1%到0
This commit is contained in:
@@ -102,17 +102,17 @@ type PersonUpdateReq struct {
|
||||
Authorization string `json:"Authorization" in:"header"`
|
||||
}
|
||||
|
||||
// PersonUpdate 方法
|
||||
func (c *BaseCommController) PersonUpdate(ctx g.Ctx, req *PersonUpdateReq) (res *cool.BaseRes, err error) {
|
||||
var (
|
||||
baseSysUserService = service.NewBaseSysUserService()
|
||||
)
|
||||
// // PersonUpdate 方法
|
||||
// func (c *BaseCommController) PersonUpdate(ctx g.Ctx, req *PersonUpdateReq) (res *cool.BaseRes, err error) {
|
||||
// var (
|
||||
// baseSysUserService = service.NewBaseSysUserService()
|
||||
// )
|
||||
|
||||
_, err = baseSysUserService.ServiceUpdate(ctx, &cool.UpdateReq{})
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
// _, err = baseSysUserService.ServiceUpdate(ctx, &cool.UpdateReq{})
|
||||
// if err != nil {
|
||||
// return
|
||||
// }
|
||||
|
||||
res = cool.Ok(nil)
|
||||
return
|
||||
}
|
||||
// res = cool.Ok(nil)
|
||||
// return
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user