分享码日志新增 model 字段,记录操作的设备的型号 X8/X9

This commit is contained in:
eafonyang
2026-06-17 13:52:11 +08:00
parent 1e7dc01b22
commit 7687e6a0d9
12 changed files with 214 additions and 577 deletions
+56 -46
View File
@@ -457,50 +457,6 @@
}
}
},
"/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 数据",
@@ -519,6 +475,13 @@
"in": "query",
"required": true
},
{
"type": "string",
"description": "操作设备型号,取值 Luxsin-X9 或 Luxsin-X8",
"name": "model",
"in": "query",
"required": true
},
{
"type": "string",
"description": "5 位分享码",
@@ -554,7 +517,7 @@
},
"/audio/shareCreate": {
"post": {
"description": "将用户的 EQ 数据生成一个 5 位分享码,有效期 30 分钟",
"description": "将用户的 EQ 数据生成一个 5 位分享码,有效期由 SHARE_CODE_TTL_MIN 配置决定(支持 30、30m、24h、30d 等格式)",
"consumes": [
"application/json"
],
@@ -567,7 +530,7 @@
"summary": "创建 EQ 分享码",
"parameters": [
{
"description": "分享请求",
"description": "分享请求model 取值 Luxsin-X9 或 Luxsin-X8",
"name": "body",
"in": "body",
"required": true,
@@ -579,6 +542,9 @@
},
"mac": {
"type": "string"
},
"model": {
"type": "string"
}
}
}
@@ -652,6 +618,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
}
}
}
}
}
}
}