shenjiachi 1 mese fa
parent
commit
7dc891aa33
5 ha cambiato i file con 69 aggiunte e 4 eliminazioni
  1. +5
    -0
      app/hdl/member_center/hdl_user_management.go
  2. +6
    -1
      app/md/member_center/md_user_management.go
  3. +21
    -1
      docs/docs.go
  4. +21
    -1
      docs/swagger.json
  5. +16
    -1
      docs/swagger.yaml

+ 5
- 0
app/hdl/member_center/hdl_user_management.go Vedi File

@@ -81,6 +81,7 @@ func UserManagementGetUserList(c *gin.Context) {
for i, user := range *users {
list[i] = md.UserManagementGetUserListNode{
ID: user.Id,
Sex: user.Sex,
Avatar: user.Avatar,
Nickname: user.Nickname,
Phone: user.Phone,
@@ -91,6 +92,10 @@ func UserManagementGetUserList(c *gin.Context) {
ParentPhone: user.Phone,
RegisterTime: user.CreateAt,
Memo: user.Memo,
Wechat: user.UnionId,
RegisterType: user.RegisterType,
State: user.State,
LastLoginAt: user.UpdateAt,
}
tag, ok := tagsMap[user.TagID]
if ok {


+ 6
- 1
app/md/member_center/md_user_management.go Vedi File

@@ -13,7 +13,7 @@ type UserManagementGetUserListReq struct {
InviteCode string `json:"invite_code" example:"会员邀请码"`
ParentInviteCode string `json:"parent_invite_code" example:"上级邀请码"`
ParentPhone string `json:"parent_phone" example:"上级手机号"`
Sex int `json:"sex"` // 性别
Sex int `json:"sex"` // 性别(0:未知 1:男 2:女)
UnionId string `json:"union_id" example:"微信号"`
Level int `json:"level"` // 会员等级
RegisterType int `json:"register_type"` // 注册类型(1:APP注册、2:H5注册)
@@ -38,6 +38,7 @@ type Paginate struct {
type UserManagementGetUserListNode struct {
ID int64 `json:"id"` // 会员 ID
Tag string `json:"tag_name"` // 会员标签
Sex int `json:"sex"` // 性别(0:未知 1:男 2:女)
Avatar string `json:"avatar"` // 头像
Nickname string `json:"nickname"` // 昵称
Phone string `json:"phone"` // 手机号
@@ -49,6 +50,10 @@ type UserManagementGetUserListNode struct {
ParentPhone string `json:"parent_phone" example:"推荐人手机号"`
RegisterTime string `json:"register_time"` // 注册时间
Memo string `json:"memo"` // 备注
Wechat string `json:"wechat"` // 微信号
RegisterType int `json:"register_type"` // 注册类型
State int `json:"state"` // 状态
LastLoginAt string `json:"last_login_at"` // 最后登录时间
}

type UserManagementGetUserListResp struct {


+ 21
- 1
docs/docs.go Vedi File

@@ -6493,6 +6493,10 @@ const docTemplate = `{
"description": "是否实名 0.未实名,1.已实名",
"type": "integer"
},
"last_login_at": {
"description": "最后登录时间",
"type": "string"
},
"level_name": {
"description": "会员等级",
"type": "string"
@@ -6525,9 +6529,25 @@ const docTemplate = `{
"description": "注册时间",
"type": "string"
},
"register_type": {
"description": "注册类型",
"type": "integer"
},
"sex": {
"description": "性别(0:未知 1:男 2:女)",
"type": "integer"
},
"state": {
"description": "状态",
"type": "integer"
},
"tag_name": {
"description": "会员标签",
"type": "string"
},
"wechat": {
"description": "微信号",
"type": "string"
}
}
},
@@ -6605,7 +6625,7 @@ const docTemplate = `{
"type": "integer"
},
"sex": {
"description": "性别",
"description": "性别(0:未知 1:男 2:女)",
"type": "integer"
},
"state": {


+ 21
- 1
docs/swagger.json Vedi File

@@ -6486,6 +6486,10 @@
"description": "是否实名 0.未实名,1.已实名",
"type": "integer"
},
"last_login_at": {
"description": "最后登录时间",
"type": "string"
},
"level_name": {
"description": "会员等级",
"type": "string"
@@ -6518,9 +6522,25 @@
"description": "注册时间",
"type": "string"
},
"register_type": {
"description": "注册类型",
"type": "integer"
},
"sex": {
"description": "性别(0:未知 1:男 2:女)",
"type": "integer"
},
"state": {
"description": "状态",
"type": "integer"
},
"tag_name": {
"description": "会员标签",
"type": "string"
},
"wechat": {
"description": "微信号",
"type": "string"
}
}
},
@@ -6598,7 +6618,7 @@
"type": "integer"
},
"sex": {
"description": "性别",
"description": "性别(0:未知 1:男 2:女)",
"type": "integer"
},
"state": {


+ 16
- 1
docs/swagger.yaml Vedi File

@@ -2340,6 +2340,9 @@ definitions:
is_real_name:
description: 是否实名 0.未实名,1.已实名
type: integer
last_login_at:
description: 最后登录时间
type: string
level_name:
description: 会员等级
type: string
@@ -2364,9 +2367,21 @@ definitions:
register_time:
description: 注册时间
type: string
register_type:
description: 注册类型
type: integer
sex:
description: 性别(0:未知 1:男 2:女)
type: integer
state:
description: 状态
type: integer
tag_name:
description: 会员标签
type: string
wechat:
description: 微信号
type: string
type: object
md.UserManagementGetUserListReq:
properties:
@@ -2423,7 +2438,7 @@ definitions:
description: 注册类型(1:APP注册、2:H5注册)
type: integer
sex:
description: 性别
description: 性别(0:未知 1:男 2:女)
type: integer
state:
description: 状态


Caricamento…
Annulla
Salva