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
+116 -93
View File
@@ -1022,6 +1022,75 @@ const docTemplate = `{
}
}
},
"/pay/prePay": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"微信支付"
],
"summary": "支付",
"parameters": [
{
"type": "string",
"description": "支付",
"name": "orderId",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"支付成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/pay/query": {
"get": {
"security": [
{
"BasicAuth": []
}
],
"produces": [
"application/json"
],
"tags": [
"微信支付"
],
"summary": "支付",
"parameters": [
{
"type": "string",
"description": "支付",
"name": "orderId",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "{\"success\":true,\"data\":{},\"msg\":\"支付成功\"}",
"schema": {
"type": "string"
}
}
}
}
},
"/radio/category/delete": {
"post": {
"produces": [
@@ -1274,6 +1343,39 @@ const docTemplate = `{
}
}
},
"/radio/channel/freeList": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"频道管理"
],
"summary": "获取频道列表",
"parameters": [
{
"description": "分页查询",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.GetChannelList"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/channel/list": {
"post": {
"consumes": [
@@ -1797,36 +1899,6 @@ const docTemplate = `{
}
}
},
"/radio/subscription/can-subscribe": {
"post": {
"produces": [
"application/json"
],
"tags": [
"订阅管理"
],
"summary": "检查是否可以订阅",
"parameters": [
{
"description": "频道ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.SubscribeChannel"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/subscription/list": {
"post": {
"consumes": [
@@ -1860,54 +1932,29 @@ const docTemplate = `{
}
}
},
"/radio/subscription/subscribe": {
"post": {
"/radio/subscription/unlock": {
"get": {
"produces": [
"application/json"
],
"tags": [
"订阅管理"
],
"summary": "订阅频道",
"summary": "解锁频道",
"parameters": [
{
"description": "频道ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.SubscribeChannel"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/radio/subscription/unsubscribe": {
"post": {
"produces": [
"application/json"
],
"tags": [
"订阅管理"
],
"summary": "退订频道",
"parameters": [
"type": "string",
"description": "id",
"name": "id",
"in": "query",
"required": true
},
{
"description": "频道ID",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.UnsubscribeChannel"
}
"type": "string",
"description": "eventType",
"name": "eventType",
"in": "query",
"required": true
}
],
"responses": {
@@ -3057,18 +3104,6 @@ const docTemplate = `{
}
}
},
"request.SubscribeChannel": {
"type": "object",
"required": [
"channelId"
],
"properties": {
"channelId": {
"description": "频道ID",
"type": "string"
}
}
},
"request.ToggleLike": {
"type": "object",
"required": [
@@ -3081,18 +3116,6 @@ const docTemplate = `{
}
}
},
"request.UnsubscribeChannel": {
"type": "object",
"required": [
"channelId"
],
"properties": {
"channelId": {
"description": "频道ID",
"type": "string"
}
}
},
"request.UpdateCategory": {
"type": "object",
"required": [