shenjiachi 1 тиждень тому
джерело
коміт
6ce6d4e45c
4 змінених файлів з 129 додано та 4 видалено
  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 Переглянути файл

@@ -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 Переглянути файл

@@ -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 Переглянути файл

@@ -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 Переглянути файл

@@ -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:


Завантаження…
Відмінити
Зберегти