Browse Source

update

master
dengbiao 1 week ago
parent
commit
d89f811230
4 changed files with 30 additions and 12 deletions
  1. +6
    -6
      app/md/institutional_management/public_platoon/md_public_platoon.go
  2. +9
    -3
      docs/docs.go
  3. +9
    -3
      docs/swagger.json
  4. +6
    -0
      docs/swagger.yaml

+ 6
- 6
app/md/institutional_management/public_platoon/md_public_platoon.go View File

@@ -21,18 +21,18 @@ type UpdatePublicPlatoonBasicReq struct {
} }


type ExchangeUserPositionReq struct { type ExchangeUserPositionReq struct {
Position1 int64 `json:"position_1,required"`
Position2 int64 `json:"position_2,required"`
Position1 int64 `json:"position_1,required"` //位置1,具体值取返回数据中的 system_id
Position2 int64 `json:"position_2,required"` //位置2,具体值取返回数据中的 system_id
} }


type TreeNode struct { type TreeNode struct {
AvatarURL string `json:"avatar_url"`
Phone string `json:"phone"`
Nickname string `json:"nickname"`
AvatarURL string `json:"avatar_url" example:"头像"`
Phone string `json:"phone" example:"手机号"`
Nickname string `json:"nickname" example:"昵称"`
Uid int64 `json:"uid"` Uid int64 `json:"uid"`
PID int64 `json:"pid"` PID int64 `json:"pid"`
Position int64 `json:"position"` Position int64 `json:"position"`
SystemID int64 `json:"system_id"`
SystemID int64 `json:"system_id"` //公排网中id
Level int `json:"level"` Level int `json:"level"`
Son []*TreeNode `json:"son"` Son []*TreeNode `json:"son"`
} }


+ 9
- 3
docs/docs.go View File

@@ -601,9 +601,11 @@ const docTemplate = `{
"type": "object", "type": "object",
"properties": { "properties": {
"position_1": { "position_1": {
"description": "位置1,具体值取返回数据中的 system_id",
"type": "integer" "type": "integer"
}, },
"position_2": { "position_2": {
"description": "位置2,具体值取返回数据中的 system_id",
"type": "integer" "type": "integer"
} }
} }
@@ -739,16 +741,19 @@ const docTemplate = `{
"type": "object", "type": "object",
"properties": { "properties": {
"avatar_url": { "avatar_url": {
"type": "string"
"type": "string",
"example": "头像"
}, },
"level": { "level": {
"type": "integer" "type": "integer"
}, },
"nickname": { "nickname": {
"type": "string"
"type": "string",
"example": "昵称"
}, },
"phone": { "phone": {
"type": "string"
"type": "string",
"example": "手机号"
}, },
"pid": { "pid": {
"type": "integer" "type": "integer"
@@ -763,6 +768,7 @@ const docTemplate = `{
} }
}, },
"system_id": { "system_id": {
"description": "公排网中id",
"type": "integer" "type": "integer"
}, },
"uid": { "uid": {


+ 9
- 3
docs/swagger.json View File

@@ -594,9 +594,11 @@
"type": "object", "type": "object",
"properties": { "properties": {
"position_1": { "position_1": {
"description": "位置1,具体值取返回数据中的 system_id",
"type": "integer" "type": "integer"
}, },
"position_2": { "position_2": {
"description": "位置2,具体值取返回数据中的 system_id",
"type": "integer" "type": "integer"
} }
} }
@@ -732,16 +734,19 @@
"type": "object", "type": "object",
"properties": { "properties": {
"avatar_url": { "avatar_url": {
"type": "string"
"type": "string",
"example": "头像"
}, },
"level": { "level": {
"type": "integer" "type": "integer"
}, },
"nickname": { "nickname": {
"type": "string"
"type": "string",
"example": "昵称"
}, },
"phone": { "phone": {
"type": "string"
"type": "string",
"example": "手机号"
}, },
"pid": { "pid": {
"type": "integer" "type": "integer"
@@ -756,6 +761,7 @@
} }
}, },
"system_id": { "system_id": {
"description": "公排网中id",
"type": "integer" "type": "integer"
}, },
"uid": { "uid": {


+ 6
- 0
docs/swagger.yaml View File

@@ -21,8 +21,10 @@ definitions:
md.ExchangeUserPositionReq: md.ExchangeUserPositionReq:
properties: properties:
position_1: position_1:
description: 位置1,具体值取返回数据中的 system_id
type: integer type: integer
position_2: position_2:
description: 位置2,具体值取返回数据中的 system_id
type: integer type: integer
type: object type: object
md.FreePublishUserNode: md.FreePublishUserNode:
@@ -112,12 +114,15 @@ definitions:
md.TreeNode: md.TreeNode:
properties: properties:
avatar_url: avatar_url:
example: 头像
type: string type: string
level: level:
type: integer type: integer
nickname: nickname:
example: 昵称
type: string type: string
phone: phone:
example: 手机号
type: string type: string
pid: pid:
type: integer type: integer
@@ -128,6 +133,7 @@ definitions:
$ref: '#/definitions/md.TreeNode' $ref: '#/definitions/md.TreeNode'
type: array type: array
system_id: system_id:
description: 公排网中id
type: integer type: integer
uid: uid:
type: integer type: integer


Loading…
Cancel
Save