Browse Source

会员自定义邀请码

master
huangjiajun 2 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, Phone: user.Phone,
IsRealName: user.IsRealName, IsRealName: user.IsRealName,
InviteCode: user.SystemInviteCode, InviteCode: user.SystemInviteCode,
CustomInviteCode: user.CustomInviteCode,
ParentID: user.ParentUid, ParentID: user.ParentUid,
ParentInviteCode: user.ParentSystemInviteCode, ParentInviteCode: user.ParentSystemInviteCode,
ParentPhone: user.ParentPhone, ParentPhone: user.ParentPhone,
@@ -131,9 +132,6 @@ func UserManagementGetUserList(c *gin.Context) {
State: user.State, State: user.State,
LastLoginAt: user.UpdateAt, LastLoginAt: user.UpdateAt,
} }
if user.CustomInviteCode != "" {
list[i].InviteCode = user.CustomInviteCode
}
if user.ParentCustomInviteCode != "" { if user.ParentCustomInviteCode != "" {
list[i].ParentInviteCode = 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.已实名 IsRealName int `json:"is_real_name"` // 是否实名 0.未实名,1.已实名
LevelName string `json:"level_name"` // 会员等级 LevelName string `json:"level_name"` // 会员等级
InviteCode string `json:"invite_code" example:"会员邀请码"` InviteCode string `json:"invite_code" example:"会员邀请码"`
CustomInviteCode string `json:"custom_invite_code"`
ParentID int64 `json:"parent_id"` // 推荐人 ID ParentID int64 `json:"parent_id"` // 推荐人 ID
ParentInviteCode string `json:"parent_invite_code" example:"推荐人邀请码"` ParentInviteCode string `json:"parent_invite_code" example:"推荐人邀请码"`
ParentPhone string `json:"parent_phone" example:"推荐人手机号"` ParentPhone string `json:"parent_phone" example:"推荐人手机号"`


Loading…
Cancel
Save