feat: 支付闭环

This commit is contained in:
Blizzard
2026-03-04 17:05:48 +08:00
parent 042c99aa46
commit 7a32f8a351
31 changed files with 902 additions and 503 deletions
+75 -62
View File
@@ -381,14 +381,6 @@ definitions:
- channelId
- title
type: object
request.SubscribeChannel:
properties:
channelId:
description: 频道ID
type: string
required:
- channelId
type: object
request.ToggleLike:
properties:
programId:
@@ -397,14 +389,6 @@ definitions:
required:
- programId
type: object
request.UnsubscribeChannel:
properties:
channelId:
description: 频道ID
type: string
required:
- channelId
type: object
request.UpdateCategory:
properties:
coverId:
@@ -1261,6 +1245,48 @@ paths:
summary: 文件上传
tags:
- 文件相关
/pay/prePay:
get:
consumes:
- application/json
parameters:
- description: 支付
in: query
name: orderId
required: true
type: string
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"支付成功"}'
schema:
type: string
security:
- ApiKeyAuth: []
summary: 支付
tags:
- 微信支付
/pay/query:
get:
parameters:
- description: 支付
in: query
name: orderId
required: true
type: string
produces:
- application/json
responses:
"200":
description: '{"success":true,"data":{},"msg":"支付成功"}'
schema:
type: string
security:
- BasicAuth: []
summary: 支付
tags:
- 微信支付
/radio/category/delete:
post:
parameters:
@@ -1422,6 +1448,27 @@ paths:
summary: 获取频道详情
tags:
- 频道管理
/radio/channel/freeList:
post:
consumes:
- application/json
parameters:
- description: 分页查询
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.GetChannelList'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 获取频道列表
tags:
- 频道管理
/radio/channel/list:
post:
consumes:
@@ -1754,25 +1801,6 @@ paths:
summary: 更新节目
tags:
- 节目管理
/radio/subscription/can-subscribe:
post:
parameters:
- description: 频道ID
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.SubscribeChannel'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 检查是否可以订阅
tags:
- 订阅管理
/radio/subscription/list:
post:
consumes:
@@ -1794,15 +1822,19 @@ paths:
summary: 获取我的订阅列表
tags:
- 订阅管理
/radio/subscription/subscribe:
post:
/radio/subscription/unlock:
get:
parameters:
- description: 频道ID
in: body
name: data
- description: id
in: query
name: id
required: true
schema:
$ref: '#/definitions/request.SubscribeChannel'
type: string
- description: eventType
in: query
name: eventType
required: true
type: string
produces:
- application/json
responses:
@@ -1810,26 +1842,7 @@ paths:
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 订阅频道
tags:
- 订阅管理
/radio/subscription/unsubscribe:
post:
parameters:
- description: 频道ID
in: body
name: data
required: true
schema:
$ref: '#/definitions/request.UnsubscribeChannel'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/response.Response'
summary: 退订频道
summary: 解锁频道
tags:
- 订阅管理
/role/delete: