From 1beed8bf9eb60713a365efa68291d8ea754af7fb Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Sat, 7 Dec 2024 16:32:58 +0800 Subject: [PATCH] update swag --- docs/docs.go | 128 +++++++++++++++++++++++++--------------------- docs/swagger.json | 128 +++++++++++++++++++++++++--------------------- docs/swagger.yaml | 94 ++++++++++++++++++---------------- 3 files changed, 191 insertions(+), 159 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 97ced34..d6a53dc 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -9423,6 +9423,63 @@ const docTemplate = `{ } } }, + "md.DynamicRespNode": { + "type": "object", + "properties": { + "content": { + "description": "文本内容", + "type": "string" + }, + "created_at": { + "type": "string" + }, + "image": { + "description": "图片", + "type": "array", + "items": { + "type": "string" + } + }, + "index_id": { + "description": "动态id", + "type": "string" + }, + "is_praise": { + "description": "是否被表扬(1:是 2:否)", + "type": "integer" + }, + "is_top_up": { + "description": "是否置顶(1:是 2:否)", + "type": "integer" + }, + "kind": { + "description": "类型(1:普通 2:官方)", + "type": "integer" + }, + "state": { + "description": "状态(1:正常 2:隐藏)", + "type": "integer" + }, + "uid": { + "description": "用户id", + "type": "integer" + }, + "updated_at": { + "type": "string" + }, + "username": { + "description": "用户名称", + "type": "string" + }, + "video": { + "description": "视频", + "type": "array", + "items": { + "type": "string" + } + } + } + }, "md.EggEnergyAvailableEnergyFlow": { "type": "object", "properties": { @@ -9583,57 +9640,6 @@ const docTemplate = `{ } } }, - "md.EggFriendCircleNode": { - "type": "object", - "properties": { - "content": { - "description": "文本内容", - "type": "string" - }, - "created_at": { - "type": "string" - }, - "image": { - "description": "图片", - "type": "string" - }, - "index_id": { - "description": "动态id", - "type": "string" - }, - "is_praise": { - "description": "是否被表扬(1:是 2:否)", - "type": "integer" - }, - "is_top_up": { - "description": "是否置顶(1:是 2:否)", - "type": "integer" - }, - "kind": { - "description": "类型(1:普通 2:官方)", - "type": "integer" - }, - "state": { - "description": "状态(1:正常 2:隐藏)", - "type": "integer" - }, - "uid": { - "description": "用户id", - "type": "integer" - }, - "updated_at": { - "type": "string" - }, - "username": { - "description": "用户名称", - "type": "string" - }, - "video": { - "description": "视频", - "type": "string" - } - } - }, "md.EggPointCoefficientBatchAddReq": { "type": "object", "properties": { @@ -10143,7 +10149,7 @@ const docTemplate = `{ "list": { "type": "array", "items": { - "$ref": "#/definitions/md.EggFriendCircleNode" + "$ref": "#/definitions/md.DynamicRespNode" } }, "paginate": { @@ -12204,14 +12210,17 @@ const docTemplate = `{ "md.ReleaseDynamicReq": { "type": "object", "properties": { - "[]image": { - "description": "图片", - "type": "string" - }, "content": { "description": "文本内容", "type": "string" }, + "image": { + "description": "图片", + "type": "array", + "items": { + "type": "string" + } + }, "is_praise": { "description": "是否被表扬(1:是 2:否)", "type": "integer" @@ -12229,8 +12238,11 @@ const docTemplate = `{ "type": "integer" }, "video": { - "description": "视频 uri", - "type": "string" + "description": "视频", + "type": "array", + "items": { + "type": "string" + } } } }, diff --git a/docs/swagger.json b/docs/swagger.json index 29bc718..d872bcb 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -9416,6 +9416,63 @@ } } }, + "md.DynamicRespNode": { + "type": "object", + "properties": { + "content": { + "description": "文本内容", + "type": "string" + }, + "created_at": { + "type": "string" + }, + "image": { + "description": "图片", + "type": "array", + "items": { + "type": "string" + } + }, + "index_id": { + "description": "动态id", + "type": "string" + }, + "is_praise": { + "description": "是否被表扬(1:是 2:否)", + "type": "integer" + }, + "is_top_up": { + "description": "是否置顶(1:是 2:否)", + "type": "integer" + }, + "kind": { + "description": "类型(1:普通 2:官方)", + "type": "integer" + }, + "state": { + "description": "状态(1:正常 2:隐藏)", + "type": "integer" + }, + "uid": { + "description": "用户id", + "type": "integer" + }, + "updated_at": { + "type": "string" + }, + "username": { + "description": "用户名称", + "type": "string" + }, + "video": { + "description": "视频", + "type": "array", + "items": { + "type": "string" + } + } + } + }, "md.EggEnergyAvailableEnergyFlow": { "type": "object", "properties": { @@ -9576,57 +9633,6 @@ } } }, - "md.EggFriendCircleNode": { - "type": "object", - "properties": { - "content": { - "description": "文本内容", - "type": "string" - }, - "created_at": { - "type": "string" - }, - "image": { - "description": "图片", - "type": "string" - }, - "index_id": { - "description": "动态id", - "type": "string" - }, - "is_praise": { - "description": "是否被表扬(1:是 2:否)", - "type": "integer" - }, - "is_top_up": { - "description": "是否置顶(1:是 2:否)", - "type": "integer" - }, - "kind": { - "description": "类型(1:普通 2:官方)", - "type": "integer" - }, - "state": { - "description": "状态(1:正常 2:隐藏)", - "type": "integer" - }, - "uid": { - "description": "用户id", - "type": "integer" - }, - "updated_at": { - "type": "string" - }, - "username": { - "description": "用户名称", - "type": "string" - }, - "video": { - "description": "视频", - "type": "string" - } - } - }, "md.EggPointCoefficientBatchAddReq": { "type": "object", "properties": { @@ -10136,7 +10142,7 @@ "list": { "type": "array", "items": { - "$ref": "#/definitions/md.EggFriendCircleNode" + "$ref": "#/definitions/md.DynamicRespNode" } }, "paginate": { @@ -12197,14 +12203,17 @@ "md.ReleaseDynamicReq": { "type": "object", "properties": { - "[]image": { - "description": "图片", - "type": "string" - }, "content": { "description": "文本内容", "type": "string" }, + "image": { + "description": "图片", + "type": "array", + "items": { + "type": "string" + } + }, "is_praise": { "description": "是否被表扬(1:是 2:否)", "type": "integer" @@ -12222,8 +12231,11 @@ "type": "integer" }, "video": { - "description": "视频 uri", - "type": "string" + "description": "视频", + "type": "array", + "items": { + "type": "string" + } } } }, diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 7b78104..2fcc85a 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -1266,6 +1266,47 @@ definitions: paginate: $ref: '#/definitions/applet_app_md_institutional_management_egg_energy.Paginate' type: object + md.DynamicRespNode: + properties: + content: + description: 文本内容 + type: string + created_at: + type: string + image: + description: 图片 + items: + type: string + type: array + index_id: + description: 动态id + type: string + is_praise: + description: 是否被表扬(1:是 2:否) + type: integer + is_top_up: + description: 是否置顶(1:是 2:否) + type: integer + kind: + description: 类型(1:普通 2:官方) + type: integer + state: + description: 状态(1:正常 2:隐藏) + type: integer + uid: + description: 用户id + type: integer + updated_at: + type: string + username: + description: 用户名称 + type: string + video: + description: 视频 + items: + type: string + type: array + type: object md.EggEnergyAvailableEnergyFlow: properties: after_community_dividends: @@ -1382,43 +1423,6 @@ definitions: uid: type: integer type: object - md.EggFriendCircleNode: - properties: - content: - description: 文本内容 - type: string - created_at: - type: string - image: - description: 图片 - type: string - index_id: - description: 动态id - type: string - is_praise: - description: 是否被表扬(1:是 2:否) - type: integer - is_top_up: - description: 是否置顶(1:是 2:否) - type: integer - kind: - description: 类型(1:普通 2:官方) - type: integer - state: - description: 状态(1:正常 2:隐藏) - type: integer - uid: - description: 用户id - type: integer - updated_at: - type: string - username: - description: 用户名称 - type: string - video: - description: 视频 - type: string - type: object md.EggPointCoefficientBatchAddReq: properties: list: @@ -1771,7 +1775,7 @@ definitions: properties: list: items: - $ref: '#/definitions/md.EggFriendCircleNode' + $ref: '#/definitions/md.DynamicRespNode' type: array paginate: allOf: @@ -3206,12 +3210,14 @@ definitions: type: object md.ReleaseDynamicReq: properties: - '[]image': - description: 图片 - type: string content: description: 文本内容 type: string + image: + description: 图片 + items: + type: string + type: array is_praise: description: 是否被表扬(1:是 2:否) type: integer @@ -3225,8 +3231,10 @@ definitions: description: 状态(1:正常 2:隐藏) type: integer video: - description: 视频 uri - type: string + description: 视频 + items: + type: string + type: array type: object md.Response: properties: