Ver a proveniência

update swag

tmp
shenjiachi há 1 semana
ascendente
cometimento
6ce6d4e45c
4 ficheiros alterados com 129 adições e 4 eliminações
  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 Ver ficheiro

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


+ 48
- 1
docs/docs.go Ver ficheiro

@@ -1399,7 +1399,7 @@ const docTemplate = `{
}
}
},
"/api/v1/comm/getOssUrl": {
"/api/v1/comm/accessRecords": {
"post": {
"description": "页面记录",
"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": {
"get": {
"description": "基本配置",


+ 48
- 1
docs/swagger.json Ver ficheiro

@@ -1393,7 +1393,7 @@
}
}
},
"/api/v1/comm/getOssUrl": {
"/api/v1/comm/accessRecords": {
"post": {
"description": "页面记录",
"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": {
"get": {
"description": "基本配置",


+ 32
- 1
docs/swagger.yaml Ver ficheiro

@@ -2631,7 +2631,7 @@ paths:
summary: 蛋蛋学院-文章-分享后调用统计数量
tags:
- 蛋蛋学院
/api/v1/comm/getOssUrl:
/api/v1/comm/accessRecords:
post:
consumes:
- application/json
@@ -2662,6 +2662,37 @@ paths:
summary: 通用请求-访问记录-页面记录
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:
get:
consumes:


Carregando…
Cancelar
Guardar