huangjiajun преди 1 седмица
родител
ревизия
ee6cfa7045
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. +2
    -2
      app/hdl/member_center/hdl_user_management.go
  2. +1
    -1
      app/svc/member_center/svc_user_management.go

+ 2
- 2
app/hdl/member_center/hdl_user_management.go Целия файл

@@ -115,7 +115,7 @@ func UserManagementGetUserList(c *gin.Context) {
InviteCode: user.SystemInviteCode,
ParentID: user.ParentUid,
ParentInviteCode: user.ParentSystemInviteCode,
ParentPhone: user.Phone,
ParentPhone: user.ParentPhone,
RegisterTime: user.CreateAt,
Memo: user.Memo,
Wechat: user.UnionId,
@@ -262,7 +262,7 @@ func UserManagementGetOneBasic(c *gin.Context) {
TagsList: tagsList,
LevelsList: levelsList,
BasicInfo: md.BasicInfoNode{
Avatar: user.Avatar,
Avatar: svc2.GetOssUrl(user.Avatar),
Sex: user.Sex,
Nickname: user.Nickname,
LevelId: user.Level,


+ 1
- 1
app/svc/member_center/svc_user_management.go Целия файл

@@ -22,7 +22,7 @@ func UserManagementGetUsers(req *md.UserManagementGetUserListReq) ([]*md.UserInf
return nil, 0, err
}

err = pageSess.Distinct("a.*").Limit(req.Limit, (req.Page-1)*req.Limit).Asc("a.id").Find(&users)
err = pageSess.Distinct("a.*").Limit(req.Limit, (req.Page-1)*req.Limit).Desc("a.id").Find(&users)
if err != nil {
return nil, 0, err
}


Зареждане…
Отказ
Запис