Parcourir la source

update swag

master
shenjiachi il y a 2 jours
Parent
révision
c07117aedd
4 fichiers modifiés avec 297 ajouts et 0 suppressions
  1. +11
    -0
      app/hdl/friend_circle/hdl_friend_circle.go
  2. +107
    -0
      docs/docs.go
  3. +107
    -0
      docs/swagger.json
  4. +72
    -0
      docs/swagger.yaml

+ 11
- 0
app/hdl/friend_circle/hdl_friend_circle.go Voir le fichier

@@ -119,6 +119,17 @@ func IsCanPublish(c *gin.Context) {
e.OutSuc(c, resp, nil)
}

// FriendCircleLikeList
// @Summary 朋友圈-朋友圈点赞列表
// @Tags 朋友圈
// @Description 朋友圈点赞列表
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body friend_circles.FriendCircleLikeListReq true "签名上传url"
// @Success 200 {object} friend_circles.FriendCircleLikeListResp "返回数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/v1/circleFriends/likeList [POST]
func FriendCircleLikeList(c *gin.Context) {
var req friend_circles.FriendCircleLikeListReq
if err1 := c.ShouldBindJSON(&req); err1 != nil {


+ 107
- 0
docs/docs.go Voir le fichier

@@ -983,6 +983,53 @@ const docTemplate = `{
}
}
},
"/api/v1/circleFriends/likeList": {
"post": {
"description": "朋友圈点赞列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"朋友圈"
],
"summary": "朋友圈-朋友圈点赞列表",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "签名上传url",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/friend_circles.FriendCircleLikeListReq"
}
}
],
"responses": {
"200": {
"description": "返回数据",
"schema": {
"$ref": "#/definitions/friend_circles.FriendCircleLikeListResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/v1/circleFriends/mySelfList": {
"post": {
"description": "我的朋友圈列表",
@@ -4429,6 +4476,66 @@ const docTemplate = `{
}
}
},
"friend_circles.FriendCircleLikeEsStruct": {
"type": "object",
"properties": {
"circle_id": {
"type": "string"
},
"im_avatar": {
"type": "string"
},
"im_nickname": {
"type": "string"
},
"im_uid": {
"type": "integer"
},
"uid": {
"type": "integer"
}
}
},
"friend_circles.FriendCircleLikeListReq": {
"type": "object",
"properties": {
"circle_index_id": {
"description": "朋友圈文档记录",
"type": "string"
},
"page": {
"description": "页码",
"type": "integer"
},
"page_size": {
"description": "每页数量",
"type": "integer"
}
}
},
"friend_circles.FriendCircleLikeListResp": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/friend_circles.FriendCircleLikeEsStruct"
}
},
"page": {
"description": "页码",
"type": "integer"
},
"page_size": {
"description": "每页数量",
"type": "integer"
},
"total": {
"description": "总量",
"type": "integer"
}
}
},
"friend_circles.MySelfListReq": {
"type": "object",
"properties": {


+ 107
- 0
docs/swagger.json Voir le fichier

@@ -977,6 +977,53 @@
}
}
},
"/api/v1/circleFriends/likeList": {
"post": {
"description": "朋友圈点赞列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"朋友圈"
],
"summary": "朋友圈-朋友圈点赞列表",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "签名上传url",
"name": "req",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/friend_circles.FriendCircleLikeListReq"
}
}
],
"responses": {
"200": {
"description": "返回数据",
"schema": {
"$ref": "#/definitions/friend_circles.FriendCircleLikeListResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/v1/circleFriends/mySelfList": {
"post": {
"description": "我的朋友圈列表",
@@ -4423,6 +4470,66 @@
}
}
},
"friend_circles.FriendCircleLikeEsStruct": {
"type": "object",
"properties": {
"circle_id": {
"type": "string"
},
"im_avatar": {
"type": "string"
},
"im_nickname": {
"type": "string"
},
"im_uid": {
"type": "integer"
},
"uid": {
"type": "integer"
}
}
},
"friend_circles.FriendCircleLikeListReq": {
"type": "object",
"properties": {
"circle_index_id": {
"description": "朋友圈文档记录",
"type": "string"
},
"page": {
"description": "页码",
"type": "integer"
},
"page_size": {
"description": "每页数量",
"type": "integer"
}
}
},
"friend_circles.FriendCircleLikeListResp": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/friend_circles.FriendCircleLikeEsStruct"
}
},
"page": {
"description": "页码",
"type": "integer"
},
"page_size": {
"description": "每页数量",
"type": "integer"
},
"total": {
"description": "总量",
"type": "integer"
}
}
},
"friend_circles.MySelfListReq": {
"type": "object",
"properties": {


+ 72
- 0
docs/swagger.yaml Voir le fichier

@@ -112,6 +112,47 @@ definitions:
description: 文章索引
type: string
type: object
friend_circles.FriendCircleLikeEsStruct:
properties:
circle_id:
type: string
im_avatar:
type: string
im_nickname:
type: string
im_uid:
type: integer
uid:
type: integer
type: object
friend_circles.FriendCircleLikeListReq:
properties:
circle_index_id:
description: 朋友圈文档记录
type: string
page:
description: 页码
type: integer
page_size:
description: 每页数量
type: integer
type: object
friend_circles.FriendCircleLikeListResp:
properties:
list:
items:
$ref: '#/definitions/friend_circles.FriendCircleLikeEsStruct'
type: array
page:
description: 页码
type: integer
page_size:
description: 每页数量
type: integer
total:
description: 总量
type: integer
type: object
friend_circles.MySelfListReq:
properties:
page:
@@ -2424,6 +2465,37 @@ paths:
summary: 朋友圈-点赞朋友圈
tags:
- 朋友圈
/api/v1/circleFriends/likeList:
post:
consumes:
- application/json
description: 朋友圈点赞列表
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
- description: 签名上传url
in: body
name: req
required: true
schema:
$ref: '#/definitions/friend_circles.FriendCircleLikeListReq'
produces:
- application/json
responses:
"200":
description: 返回数据
schema:
$ref: '#/definitions/friend_circles.FriendCircleLikeListResp'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 朋友圈-朋友圈点赞列表
tags:
- 朋友圈
/api/v1/circleFriends/mySelfList:
post:
consumes:


Chargement…
Annuler
Enregistrer