Browse Source

update swag

tmp
shenjiachi 1 week ago
parent
commit
6ce6d4e45c
4 changed files with 129 additions and 4 deletions
  1. +1
    -1
      app/hdl/comm/hdl_comm.go
  2. +48
    -1
      docs/docs.go
  3. +48
    -1
      docs/swagger.json
  4. +32
    -1
      docs/swagger.yaml

+ 1
- 1
app/hdl/comm/hdl_comm.go View File

@@ -97,7 +97,7 @@ func GetOssUrl(c *gin.Context) {
// @Success 200 {string} "success" // @Success 200 {string} "success"
// @Success 200 {string} "data exist" // @Success 200 {string} "data exist"
// @Failure 400 {object} md.Response "具体错误" // @Failure 400 {object} md.Response "具体错误"
// @Router /api/v1/comm/getOssUrl [POST]
// @Router /api/v1/comm/accessRecords [POST]
func AccessRecords(c *gin.Context) { func AccessRecords(c *gin.Context) {
var req *comm.AccessRecordsReq var req *comm.AccessRecordsReq
if err1 := c.ShouldBindJSON(&req); err1 != nil { if err1 := c.ShouldBindJSON(&req); err1 != nil {


+ 48
- 1
docs/docs.go View File

@@ -1399,7 +1399,7 @@ const docTemplate = `{
} }
} }
}, },
"/api/v1/comm/getOssUrl": {
"/api/v1/comm/accessRecords": {
"post": { "post": {
"description": "页面记录", "description": "页面记录",
"consumes": [ "consumes": [
@@ -1446,6 +1446,53 @@ const docTemplate = `{
} }
} }
}, },
"/api/v1/comm/getOssUrl": {
"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/comm.ImgReqUploadReq"
}
}
],
"responses": {
"200": {
"description": "许可链接",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/v1/config": { "/api/v1/config": {
"get": { "get": {
"description": "基本配置", "description": "基本配置",


+ 48
- 1
docs/swagger.json View File

@@ -1393,7 +1393,7 @@
} }
} }
}, },
"/api/v1/comm/getOssUrl": {
"/api/v1/comm/accessRecords": {
"post": { "post": {
"description": "页面记录", "description": "页面记录",
"consumes": [ "consumes": [
@@ -1440,6 +1440,53 @@
} }
} }
}, },
"/api/v1/comm/getOssUrl": {
"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/comm.ImgReqUploadReq"
}
}
],
"responses": {
"200": {
"description": "许可链接",
"schema": {
"type": "string"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/v1/config": { "/api/v1/config": {
"get": { "get": {
"description": "基本配置", "description": "基本配置",


+ 32
- 1
docs/swagger.yaml View File

@@ -2631,7 +2631,7 @@ paths:
summary: 蛋蛋学院-文章-分享后调用统计数量 summary: 蛋蛋学院-文章-分享后调用统计数量
tags: tags:
- 蛋蛋学院 - 蛋蛋学院
/api/v1/comm/getOssUrl:
/api/v1/comm/accessRecords:
post: post:
consumes: consumes:
- application/json - application/json
@@ -2662,6 +2662,37 @@ paths:
summary: 通用请求-访问记录-页面记录 summary: 通用请求-访问记录-页面记录
tags: tags:
- 访问记录 - 访问记录
/api/v1/comm/getOssUrl:
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/comm.ImgReqUploadReq'
produces:
- application/json
responses:
"200":
description: 许可链接
schema:
type: string
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 通用请求-对象存储-上传许可链接(获取)
tags:
- 对象存储
/api/v1/config: /api/v1/config:
get: get:
consumes: consumes:


Loading…
Cancel
Save