新增删除分享码功能

This commit is contained in:
eafonyang
2026-06-17 16:50:39 +08:00
parent 4b903f39e1
commit 7ed7183f1a
6 changed files with 239 additions and 0 deletions
+35
View File
@@ -384,6 +384,41 @@ paths:
summary: 创建 EQ 分享码
tags:
- ShareCode
/audio/shareDelete:
get:
description: 根据 MAC 与分享码删除 Redis 中的分享码数据(仅创建者可删除)
parameters:
- description: 设备 MAC 地址
in: query
name: mac
required: true
type: string
- description: 5 位分享码
in: query
name: shareCode
required: true
type: string
produces:
- application/json
responses:
"200":
description: 删除成功
schema:
additionalProperties: true
type: object
"400":
description: 参数校验失败
schema:
additionalProperties: true
type: object
"500":
description: 系统错误
schema:
additionalProperties: true
type: object
summary: 删除 EQ 分享码
tags:
- ShareCode
/audio/shareList:
get:
description: 根据设备 MAC 地址查询该设备尚未过期的所有分享码(仅查询 Redis,依赖 TTL 自动过期)