feat: 支付闭环
This commit is contained in:
+116
-93
@@ -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": [
|
||||
|
||||
+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": [
|
||||
|
||||
+75
-62
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user