增加分享码查询接口,不写入操作日志表

This commit is contained in:
eafonyang
2026-06-15 17:58:14 +08:00
parent 684d6bafb8
commit fc4ec2c030
5 changed files with 191 additions and 22 deletions
+44
View File
@@ -464,6 +464,50 @@ const docTemplate = `{
}
}
},
"/audio/shareQuery": {
"get": {
"description": "根据分享码预览 EQ 数据,不写入导入流水",
"produces": [
"application/json"
],
"tags": [
"ShareCode"
],
"summary": "查询 EQ 分享码",
"parameters": [
{
"type": "string",
"description": "5 位分享码",
"name": "shareCode",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "成功返回 eq_data、expire_at",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"400": {
"description": "参数校验失败",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"500": {
"description": "系统错误",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/audio/shareAccept": {
"get": {
"description": "根据分享码获取他人分享的 EQ 数据",
+44
View File
@@ -457,6 +457,50 @@
}
}
},
"/audio/shareQuery": {
"get": {
"description": "根据分享码预览 EQ 数据,不写入导入流水",
"produces": [
"application/json"
],
"tags": [
"ShareCode"
],
"summary": "查询 EQ 分享码",
"parameters": [
{
"type": "string",
"description": "5 位分享码",
"name": "shareCode",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "成功返回 eq_data、expire_at",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"400": {
"description": "参数校验失败",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"500": {
"description": "系统错误",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/audio/shareAccept": {
"get": {
"description": "根据分享码获取他人分享的 EQ 数据",
+30
View File
@@ -303,6 +303,36 @@ paths:
summary: 上报设备信息
tags:
- Device
/audio/shareQuery:
get:
description: 根据分享码预览 EQ 数据,不写入导入流水
parameters:
- description: 5 位分享码
in: query
name: shareCode
required: true
type: string
produces:
- application/json
responses:
"200":
description: 成功返回 eq_data、expire_at
schema:
additionalProperties: true
type: object
"400":
description: 参数校验失败
schema:
additionalProperties: true
type: object
"500":
description: 系统错误
schema:
additionalProperties: true
type: object
summary: 查询 EQ 分享码
tags:
- ShareCode
/audio/shareAccept:
get:
description: 根据分享码获取他人分享的 EQ 数据