Bläddra i källkod

update

master
shenjiachi 4 dagar sedan
förälder
incheckning
f72cd94239
4 ändrade filer med 12 tillägg och 10 borttagningar
  1. +6
    -4
      app/hdl/member_center/hdl_user_management.go
  2. +2
    -2
      docs/docs.go
  3. +2
    -2
      docs/swagger.json
  4. +2
    -2
      docs/swagger.yaml

+ 6
- 4
app/hdl/member_center/hdl_user_management.go Visa fil

@@ -586,7 +586,7 @@ func UserManagementGetOneBasic(c *gin.Context) {
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param uid query string true "用户 ID"
// @Param type query string true "粉丝类型(1.全部 2.直推 3.二代 4.二代以后)"
// @Param type query string true "粉丝类型(0.全部 1.直推 2.二代 3.二代以后)"
// @Param limit query string true "每页大小"
// @Param page query string true "页数"
// @Success 200 {object} md.UserManagementGetFansResp "具体数据"
@@ -608,8 +608,10 @@ func UserManagementGetFans(c *gin.Context) {
level = 1
case "2":
level = 2
default:
case "3":
level = 3
default:
level = 0
}
relates, total, err := relateDb.PageFindUserRelateByParentUidAndLevel(utils.StrToInt64(uid), utils.StrToInt(page), utils.StrToInt(limit), level)
if err != nil {
@@ -639,7 +641,7 @@ func UserManagementGetFans(c *gin.Context) {
//3. 查询可提现余额
walletDb := implement.NewUserWalletDb(db.Db)
wallets, err := walletDb.FindUserWalletByParams(map[string]interface{}{
"key": uid,
"key": "uid",
"value": userIDs,
})
if err != nil {
@@ -672,7 +674,7 @@ func UserManagementGetFans(c *gin.Context) {
//5. 查询用户信息
userDb := implement.NewUserDb(db.Db)
users, err := userDb.UserFindByParams(map[string]interface{}{
"key": "uid",
"key": "id",
"value": userIDs,
})
if err != nil {


+ 2
- 2
docs/docs.go Visa fil

@@ -6741,7 +6741,7 @@ const docTemplate = `{
},
{
"type": "string",
"description": "粉丝类型(1.全部 2.直推 3.二代 4.二代以后)",
"description": "粉丝类型(0.全部 1.直推 2.二代 3.二代以后)",
"name": "type",
"in": "query",
"required": true
@@ -10751,7 +10751,7 @@ const docTemplate = `{
"md.ArticleDelReq": {
"type": "object",
"properties": {
"id": {
"ids": {
"type": "array",
"items": {
"type": "string"


+ 2
- 2
docs/swagger.json Visa fil

@@ -6734,7 +6734,7 @@
},
{
"type": "string",
"description": "粉丝类型(1.全部 2.直推 3.二代 4.二代以后)",
"description": "粉丝类型(0.全部 1.直推 2.二代 3.二代以后)",
"name": "type",
"in": "query",
"required": true
@@ -10744,7 +10744,7 @@
"md.ArticleDelReq": {
"type": "object",
"properties": {
"id": {
"ids": {
"type": "array",
"items": {
"type": "string"


+ 2
- 2
docs/swagger.yaml Visa fil

@@ -919,7 +919,7 @@ definitions:
type: object
md.ArticleDelReq:
properties:
id:
ids:
items:
type: string
type: array
@@ -9907,7 +9907,7 @@ paths:
name: uid
required: true
type: string
- description: 粉丝类型(1.全部 2.直推 3.二代 4.二代以后)
- description: 粉丝类型(0.全部 1.直推 2.二代 3.二代以后)
in: query
name: type
required: true


Laddar…
Avbryt
Spara