添加订单
:::tips
- URL:
[/api/order/auth/save/{courseId}](http://139.198.34.216:8105/swagger-ui.html#!/order45api45controller/saveUsingPOST) - Method:POST
 - 需要登录:是
 - 需要鉴权:是
:::
请求参数
| Parameter | Description | Data-type | Parameter-type | Default-value | | —- | —- | —- | —- | —- | | token | 令牌 | string | header | (required) | | curseId | 课程id | string | path | (required) | 
请求示例
成功响应
:::tips
条件:请求参数合法,并且用户身份校验通过。
状态码:200 OK
响应示例:返回订单id
:::
{"success": true,"code": 200,"message": "成功","data": {"orderId": "1572167234279890946"}}
获取订单信息
:::tips
- URL:
[/api/order/auth/get/{orderId}](http://139.198.34.216:8105/swagger-ui.html#!/order45api45controller/getUsingGET_1) - Method:GET
 - 需要登录:是
 - 需要鉴权:是
:::
请求参数
| Parameter | Description | Data-type | Parameter-type | Default-value | | —- | —- | —- | —- | —- | | token | 令牌 | string | header | (required) | | orderId | 订单id | string | path | (required) | 
请求示例
成功响应
:::tips
条件:请求参数合法,并且用户身份校验通过。
状态码:200 OK
响应示例:返回订单信息
:::
{"success": true,"code": 200,"message": "成功","data": {"item": {"id": "1572167234279890946","gmtCreate": "2022-09-20 18:14:13","gmtModified": "2022-09-20 18:14:13","deleted": false,"orderNo": "20220920181412208","courseId": "1424998113121001473","courseTitle": "Spark","courseCover": "https://online-teach-file.oss-cn-beijing.aliyuncs.com/cover/2021/08/10/39e51c23-e2fa-4a8a-9239-3c0d5268f34d.jpg","teacherName": "宋老师","memberId": "1570595491228569601","nickname": "朽木白","mobile": "","totalFee": 21800.00,"payType": 1,"status": 0}}}
支付
:::tips
- URL:
[/api/order/webChat/createJsapi/{orderNo}](http://139.198.34.216:8105/swagger-ui.html#!/web45chat45pay45api45controller/createJsapiUsingGET) - Method:GET
 - 需要登录:是
 - 需要鉴权:是
:::
请求参数
| Parameter | Description | Data-type | Parameter-type | Default-value | | —- | —- | —- | —- | —- | | token | 令牌 | string | header | (required) | | orderNo | 订单No | string | path | (required) | 
请求示例
成功响应
:::tips
条件:请求参数合法,并且用户身份校验通过。
状态码:200 OK
响应示例:返回支付参数信息
:::
{"success": true,"code": 200,"message": "成功","data": {"timeStamp": "1663669599908","package": "prepay_id=wx20182639834130a3db6b6ebb9a21820000","paySign": "EFBCB1DE48242C6AE49F59BC8C2DA2ED","signType": "MD5","nonceStr": "tYXxnOmckGNPE0ZR"}}
获取支付状态
:::tips
- URL:
[/api/order/webChat/queryPayStatus/{orderNo}](http://139.198.34.216:8105/swagger-ui.html#!/web45chat45pay45api45controller/queryPayStatusUsingGET) - Method:GET
 - 需要登录:是
 - 需要鉴权:是
:::
请求参数
| Parameter | Description | Data-type | Parameter-type | Default-value | | —- | —- | —- | —- | —- | | token | 令牌 | string | header | (required) | | orderNo | 订单No | string | path | (required) | 
请求示例
成功响应
:::tips
条件:请求参数合法,并且用户身份校验通过。
状态码:200 OK
响应示例:返回支付状态
:::
{"code": 200,"data": {},"message": "string","success": false}
订单列表
:::tips
- URL:
[/api/order/auth/{page}/{limit}](http://139.198.34.216:8105/swagger-ui.html#!/order45api45controller/indexUsingGET_1) - Method:GET
 - 需要登录:是
 - 需要鉴权:是
:::
请求参数
| Parameter | Description | Data-type | Parameter-type | Default-value | | —- | —- | —- | —- | —- | | page | 当前页码 | long | path | (required)1 | | limit | 每页记录数 | long | path | (required)10 | 
请求示例
成功响应
:::tips
条件:请求参数合法,并且用户身份校验通过。
状态码:200 OK
响应示例:返回课程列表数据
:::
{"success": true,"code": 200,"message": "成功","data": {"current": 1,"total": 68,"pages": 7,"size": 10,"hasPrevious": false,"hasNext": true,"items": [{"id": "1572051923245391874","gmtCreate": "2022-09-20 10:36:00","gmtModified": "2022-09-20 10:36:00","deleted": null,"orderNo": "20220920103600534","courseId": "1424998113121001473","courseTitle": "Spark","courseCover": "https://online-teach-file.oss-cn-beijing.aliyuncs.com/cover/2021/08/10/39e51c23-e2fa-4a8a-9239-3c0d5268f34d.jpg","teacherName": "宋老师","memberId": "1570595491228569601","nickname": "朽木白","mobile": "","totalFee": 21800.00,"payType": null,"status": 0},{"id": "1572038678472220673","gmtCreate": "2022-09-20 09:43:23","gmtModified": "2022-09-20 09:43:23","deleted": null,"orderNo": "20220920094322901","courseId": "1424997480087281666","courseTitle": "大数据Scala入门到精通(新版)","courseCover": "https://online-teach-file.oss-cn-beijing.aliyuncs.com/cover/2021/08/10/f2cd321f-6378-4e92-8515-0b8f42f2770b.jpg","teacherName": "宋老师","memberId": "1570595491228569601","nickname": "朽木白","mobile": "","totalFee": 23800.00,"payType": null,"status": 0},{"id": "1570991912066932738","gmtCreate": "2022-09-17 12:23:54","gmtModified": "2022-09-17 12:23:54","deleted": null,"orderNo": "20220917122354068","courseId": "1424639169998168065","courseTitle": "尚硅谷大数据技术之Flume(2019新版)","courseCover": "https://online-teach-file.oss-cn-beijing.aliyuncs.com/cover/2021/08/09/806572e0-6d85-485e-8784-d2cb4716a881.jpg","teacherName": "缪老师","memberId": "1570595491228569601","nickname": "朽木白","mobile": "","totalFee": 20800.00,"payType": null,"status": 0}]}}
