Browse Source

会员自定义邀请码

master
huangjiajun 3 days ago
parent
commit
b30b70dc52
2 changed files with 2 additions and 3 deletions
  1. +1
    -3
      app/hdl/member_center/hdl_user_management.go
  2. +1
    -0
      app/md/member_center/md_user_management.go

+ 1
- 3
app/hdl/member_center/hdl_user_management.go View File

@@ -121,6 +121,7 @@ func UserManagementGetUserList(c *gin.Context) {
Phone: user.Phone,
IsRealName: user.IsRealName,
InviteCode: user.SystemInviteCode,
CustomInviteCode: user.CustomInviteCode,
ParentID: user.ParentUid,
ParentInviteCode: user.ParentSystemInviteCode,
ParentPhone: user.ParentPhone,
@@ -131,9 +132,6 @@ func UserManagementGetUserList(c *gin.Context) {
State: user.State,
LastLoginAt: user.UpdateAt,
}
if user.CustomInviteCode != "" {
list[i].InviteCode = user.CustomInviteCode
}
if user.ParentCustomInviteCode != "" {
list[i].ParentInviteCode = user.ParentCustomInviteCode
}


+ 1
- 0
app/md/member_center/md_user_management.go View File

@@ -58,6 +58,7 @@ type UserManagementGetUserListNode struct {
IsRealName int `json:"is_real_name"` // 是否实名 0.未实名,1.已实名
LevelName string `json:"level_name"` // 会员等级
InviteCode string `json:"invite_code" example:"会员邀请码"`
CustomInviteCode string `json:"custom_invite_code"`
ParentID int64 `json:"parent_id"` // 推荐人 ID
ParentInviteCode string `json:"parent_invite_code" example:"推荐人邀请码"`
ParentPhone string `json:"parent_phone" example:"推荐人手机号"`


Loading…
Cancel
Save