feat: 支付闭环
This commit is contained in:
+116
-93
@@ -1015,6 +1015,75 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/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": [
|
||||
@@ -1267,6 +1336,39 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/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": [
|
||||
@@ -1790,36 +1892,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/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": [
|
||||
@@ -1853,54 +1925,29 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/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": {
|
||||
@@ -3050,18 +3097,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.SubscribeChannel": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"channelId"
|
||||
],
|
||||
"properties": {
|
||||
"channelId": {
|
||||
"description": "频道ID",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.ToggleLike": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -3074,18 +3109,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.UnsubscribeChannel": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"channelId"
|
||||
],
|
||||
"properties": {
|
||||
"channelId": {
|
||||
"description": "频道ID",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"request.UpdateCategory": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
||||
Reference in New Issue
Block a user