order.json 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867
  1. {
  2. "openapi": "3.0.1",
  3. "info": {
  4. "title": "默认模块",
  5. "description": "",
  6. "version": "1.0.0"
  7. },
  8. "tags": [],
  9. "paths": {
  10. "/admin/payOrder/page": {
  11. "post": {
  12. "summary": "分页查询列表",
  13. "deprecated": false,
  14. "description": "",
  15. "tags": [],
  16. "parameters": [],
  17. "requestBody": {
  18. "content": {
  19. "application/json": {
  20. "schema": {
  21. "$ref": "#/components/schemas/PayOrderPageDTO",
  22. "description": "参数集"
  23. }
  24. }
  25. }
  26. },
  27. "responses": {
  28. "200": {
  29. "description": "",
  30. "content": {
  31. "application/json": {
  32. "schema": {
  33. "$ref": "#/components/schemas/RIPagePayOrder",
  34. "description": "用户集合"
  35. },
  36. "example": {
  37. "ok": false,
  38. "code": 0,
  39. "msg": "",
  40. "data": {}
  41. }
  42. }
  43. },
  44. "headers": {}
  45. }
  46. },
  47. "security": []
  48. }
  49. },
  50. "/admin/payOrder/statistics": {
  51. "post": {
  52. "summary": "代付列表统计",
  53. "deprecated": false,
  54. "description": "",
  55. "tags": [],
  56. "parameters": [],
  57. "requestBody": {
  58. "content": {
  59. "application/json": {
  60. "schema": {
  61. "$ref": "#/components/schemas/PayOrderPageDTO",
  62. "description": "参数集"
  63. }
  64. }
  65. }
  66. },
  67. "responses": {
  68. "200": {
  69. "description": "",
  70. "content": {
  71. "application/json": {
  72. "schema": {
  73. "$ref": "#/components/schemas/RPayOrderStatisticsRO",
  74. "description": "用户集合"
  75. },
  76. "example": {
  77. "ok": false,
  78. "code": 0,
  79. "msg": "",
  80. "data": {}
  81. }
  82. }
  83. },
  84. "headers": {}
  85. }
  86. },
  87. "security": []
  88. }
  89. },
  90. "/admin/withdrawOrder/page": {
  91. "post": {
  92. "summary": "分页查询列表",
  93. "deprecated": false,
  94. "description": "",
  95. "tags": [],
  96. "parameters": [],
  97. "requestBody": {
  98. "content": {
  99. "application/json": {
  100. "schema": {
  101. "$ref": "#/components/schemas/WithdrawOrderPageDTO",
  102. "description": "参数集"
  103. }
  104. }
  105. }
  106. },
  107. "responses": {
  108. "200": {
  109. "description": "",
  110. "content": {
  111. "application/json": {
  112. "schema": {
  113. "$ref": "#/components/schemas/RIPageWithdrawOrder",
  114. "description": "用户集合"
  115. },
  116. "example": {
  117. "ok": false,
  118. "code": 0,
  119. "msg": "",
  120. "data": {}
  121. }
  122. }
  123. },
  124. "headers": {}
  125. }
  126. },
  127. "security": []
  128. }
  129. }
  130. },
  131. "components": {
  132. "schemas": {
  133. "PayOrder": {
  134. "type": "object",
  135. "properties": {
  136. "id": {
  137. "type": "integer",
  138. "description": "",
  139. "format": "int64"
  140. },
  141. "createTime": {
  142. "type": "string",
  143. "description": "创建时间"
  144. },
  145. "updateTime": {
  146. "type": "string",
  147. "description": "修改时间"
  148. },
  149. "appId": {
  150. "type": "string",
  151. "description": "appId"
  152. },
  153. "mchOrderNo": {
  154. "type": "string",
  155. "description": "商户订单号"
  156. },
  157. "orderStatus": {
  158. "type": "string",
  159. "description": "订单状态",
  160. "enum": [
  161. "CREATE_ORDER",
  162. "PAY_SUCCESS",
  163. "PAY_FAIL",
  164. "CANCEL_ORDER",
  165. "PAY_TIMEOUT"
  166. ]
  167. },
  168. "currency": {
  169. "type": "string",
  170. "description": "币种"
  171. },
  172. "amount": {
  173. "type": "number",
  174. "description": "订单原始金额"
  175. },
  176. "clientIp": {
  177. "type": "string",
  178. "description": "客户端IP"
  179. },
  180. "device": {
  181. "type": "string",
  182. "description": "设备"
  183. },
  184. "returnUrl": {
  185. "type": "string",
  186. "description": "支付结果前端跳转URL"
  187. },
  188. "notifyUrl": {
  189. "type": "string",
  190. "description": "支付结果后台回调URL"
  191. },
  192. "subject": {
  193. "type": "string",
  194. "description": "主题"
  195. },
  196. "body": {
  197. "type": "string",
  198. "description": "内容不能为空"
  199. },
  200. "extra": {
  201. "type": "string",
  202. "description": "扩展参数"
  203. },
  204. "reqTime": {
  205. "type": "string",
  206. "description": "请求时间"
  207. },
  208. "merchantUserId": {
  209. "type": "integer",
  210. "description": "商户id",
  211. "format": "int64"
  212. },
  213. "agentUserId": {
  214. "type": "integer",
  215. "description": "代理商id",
  216. "format": "int64"
  217. },
  218. "paymentTypeId": {
  219. "type": "integer",
  220. "description": "通道类型id",
  221. "format": "int64"
  222. },
  223. "paymentChannelId": {
  224. "type": "integer",
  225. "description": "支付通道id",
  226. "format": "int64"
  227. },
  228. "paymentChannelName": {
  229. "type": "string",
  230. "description": "支付通道名称"
  231. },
  232. "feeStatus": {
  233. "type": "boolean",
  234. "description": "获取通道费率成功标识"
  235. },
  236. "mFeeType": {
  237. "type": "string",
  238. "description": "平台手续费类型",
  239. "enum": [
  240. "PERCENTAGE",
  241. "FIXED",
  242. "MIXED"
  243. ]
  244. },
  245. "mFeeRate": {
  246. "type": "number",
  247. "description": "平台手续费比例(百分比)"
  248. },
  249. "mFeeEvery": {
  250. "type": "number",
  251. "description": "平台手续费固定金额"
  252. },
  253. "mFee": {
  254. "type": "number",
  255. "description": "平台手续费"
  256. },
  257. "aFeeType": {
  258. "type": "string",
  259. "description": "代理商手续费类型",
  260. "enum": [
  261. "PERCENTAGE",
  262. "FIXED",
  263. "MIXED"
  264. ]
  265. },
  266. "aFeeRate": {
  267. "type": "number",
  268. "description": "代理商手续费比例(百分比)"
  269. },
  270. "aFeeEvery": {
  271. "type": "number",
  272. "description": "代理商手续费固定金额"
  273. },
  274. "aFee": {
  275. "type": "number",
  276. "description": "代理商手续"
  277. },
  278. "noticeDatetime": {
  279. "type": "string",
  280. "description": "支付完成时间"
  281. },
  282. "noticeAmount": {
  283. "type": "number",
  284. "description": "实际支付金额"
  285. },
  286. "noticeMFee": {
  287. "type": "number",
  288. "description": "实际平台手续费"
  289. },
  290. "noticeAFee": {
  291. "type": "number",
  292. "description": "实际平台手续费"
  293. },
  294. "transactionId": {
  295. "type": "string",
  296. "description": "上游三方支付流水号"
  297. }
  298. }
  299. },
  300. "WithdrawOrder": {
  301. "type": "object",
  302. "properties": {
  303. "id": {
  304. "type": "integer",
  305. "description": "",
  306. "format": "int64"
  307. },
  308. "createTime": {
  309. "type": "string",
  310. "description": "创建时间"
  311. },
  312. "updateTime": {
  313. "type": "string",
  314. "description": "修改时间"
  315. },
  316. "appId": {
  317. "type": "string",
  318. "description": "appId"
  319. },
  320. "mchOrderNo": {
  321. "type": "string",
  322. "description": "商户订单号"
  323. },
  324. "orderStatus": {
  325. "type": "string",
  326. "description": "订单状态",
  327. "enum": [
  328. "CREATE_ORDER",
  329. "WITHDRAW_SUCCESS",
  330. "WITHDRAW_FAIL"
  331. ]
  332. },
  333. "currencyType": {
  334. "type": "string",
  335. "description": "币种"
  336. },
  337. "amount": {
  338. "type": "number",
  339. "description": "订单原始金额"
  340. },
  341. "notifyUrl": {
  342. "type": "string",
  343. "description": "支付结果后台回调URL"
  344. },
  345. "subject": {
  346. "type": "string",
  347. "description": "主题"
  348. },
  349. "payUsername": {
  350. "type": "string",
  351. "description": "用户姓名"
  352. },
  353. "payBankNumber": {
  354. "type": "string",
  355. "description": "银行账号"
  356. },
  357. "payBankName": {
  358. "type": "string",
  359. "description": "银行名称"
  360. },
  361. "payAttach": {
  362. "type": "string",
  363. "description": "扩展参数"
  364. },
  365. "payEmail": {
  366. "type": "string",
  367. "description": "用户邮箱"
  368. },
  369. "payMobile": {
  370. "type": "string",
  371. "description": "用户电话"
  372. },
  373. "reqTime": {
  374. "type": "string",
  375. "description": "请求时间"
  376. },
  377. "merchantUserId": {
  378. "type": "integer",
  379. "description": "商户id",
  380. "format": "int64"
  381. },
  382. "paymentTypeId": {
  383. "type": "integer",
  384. "description": "通道类型id",
  385. "format": "int64"
  386. },
  387. "paymentChannelId": {
  388. "type": "integer",
  389. "description": "支付通道id",
  390. "format": "int64"
  391. },
  392. "feeStatus": {
  393. "type": "boolean",
  394. "description": "获取通道费率成功标识"
  395. },
  396. "mFeeType": {
  397. "type": "string",
  398. "description": "平台手续费类型",
  399. "enum": [
  400. "PERCENTAGE",
  401. "FIXED",
  402. "MIXED"
  403. ]
  404. },
  405. "mFeeRate": {
  406. "type": "number",
  407. "description": "平台手续费比例(百分比)"
  408. },
  409. "mFeeEvery": {
  410. "type": "number",
  411. "description": "平台手续费固定金额"
  412. },
  413. "mFee": {
  414. "type": "number",
  415. "description": "平台手续费"
  416. },
  417. "aFeeType": {
  418. "type": "string",
  419. "description": "代理商手续费类型",
  420. "enum": [
  421. "PERCENTAGE",
  422. "FIXED",
  423. "MIXED"
  424. ]
  425. },
  426. "aFeeRate": {
  427. "type": "number",
  428. "description": "代理商手续费比例(百分比)"
  429. },
  430. "aFeeEvery": {
  431. "type": "number",
  432. "description": "代理商手续费固定金额"
  433. },
  434. "aFee": {
  435. "type": "number",
  436. "description": "代理商手续"
  437. },
  438. "noticeDatetime": {
  439. "type": "string",
  440. "description": "支付完成时间"
  441. },
  442. "noticeAmount": {
  443. "type": "number",
  444. "description": "实际支付金额"
  445. },
  446. "noticeMFee": {
  447. "type": "number",
  448. "description": "实际平台手续费"
  449. },
  450. "noticeAFee": {
  451. "type": "number",
  452. "description": "实际平台手续费"
  453. },
  454. "transactionId": {
  455. "type": "string",
  456. "description": "上游三方支付流水号"
  457. }
  458. }
  459. },
  460. "": {
  461. "type": "object",
  462. "properties": {}
  463. },
  464. "IPagePayOrder": {
  465. "type": "object",
  466. "properties": {
  467. "records": {
  468. "type": "array",
  469. "items": {
  470. "$ref": "#/components/schemas/PayOrder",
  471. "description": ""
  472. },
  473. "description": ""
  474. },
  475. "total": {
  476. "type": "integer",
  477. "description": "",
  478. "format": "int64"
  479. },
  480. "size": {
  481. "type": "integer",
  482. "description": "",
  483. "format": "int64"
  484. },
  485. "current": {
  486. "type": "integer",
  487. "description": "",
  488. "format": "int64"
  489. },
  490. "orders": {
  491. "type": "array",
  492. "items": {
  493. "$ref": "#/components/schemas/OrderItem",
  494. "description": "com.baomidou.mybatisplus.core.metadata.OrderItem"
  495. },
  496. "description": ""
  497. },
  498. "optimizeCountSql": {
  499. "type": "boolean",
  500. "description": ""
  501. },
  502. "searchCount": {
  503. "type": "boolean",
  504. "description": ""
  505. },
  506. "optimizeJoinOfCountSql": {
  507. "type": "boolean",
  508. "description": ""
  509. },
  510. "maxLimit": {
  511. "type": "integer",
  512. "description": "",
  513. "format": "int64"
  514. },
  515. "countId": {
  516. "type": "string",
  517. "description": ""
  518. },
  519. "pages": {
  520. "type": "integer",
  521. "format": "int64"
  522. }
  523. }
  524. },
  525. "IPageWithdrawOrder": {
  526. "type": "object",
  527. "properties": {
  528. "records": {
  529. "type": "array",
  530. "items": {
  531. "$ref": "#/components/schemas/WithdrawOrder",
  532. "description": ""
  533. },
  534. "description": ""
  535. },
  536. "total": {
  537. "type": "integer",
  538. "description": "",
  539. "format": "int64"
  540. },
  541. "size": {
  542. "type": "integer",
  543. "description": "",
  544. "format": "int64"
  545. },
  546. "current": {
  547. "type": "integer",
  548. "description": "",
  549. "format": "int64"
  550. },
  551. "orders": {
  552. "type": "array",
  553. "items": {
  554. "$ref": "#/components/schemas/OrderItem",
  555. "description": "com.baomidou.mybatisplus.core.metadata.OrderItem"
  556. },
  557. "description": ""
  558. },
  559. "optimizeCountSql": {
  560. "type": "boolean",
  561. "description": ""
  562. },
  563. "searchCount": {
  564. "type": "boolean",
  565. "description": ""
  566. },
  567. "optimizeJoinOfCountSql": {
  568. "type": "boolean",
  569. "description": ""
  570. },
  571. "maxLimit": {
  572. "type": "integer",
  573. "description": "",
  574. "format": "int64"
  575. },
  576. "countId": {
  577. "type": "string",
  578. "description": ""
  579. },
  580. "pages": {
  581. "type": "integer",
  582. "format": "int64"
  583. }
  584. }
  585. },
  586. "PayOrderPageDTO": {
  587. "type": "object",
  588. "properties": {
  589. "records": {
  590. "type": "array",
  591. "items": {
  592. "$ref": "#/components/schemas/1"
  593. },
  594. "description": ""
  595. },
  596. "total": {
  597. "type": "integer",
  598. "description": "",
  599. "format": "int64"
  600. },
  601. "size": {
  602. "type": "integer",
  603. "description": "",
  604. "format": "int64"
  605. },
  606. "current": {
  607. "type": "integer",
  608. "description": "",
  609. "format": "int64"
  610. },
  611. "orders": {
  612. "type": "array",
  613. "items": {
  614. "$ref": "#/components/schemas/OrderItem",
  615. "description": "com.baomidou.mybatisplus.core.metadata.OrderItem"
  616. },
  617. "description": ""
  618. },
  619. "optimizeCountSql": {
  620. "type": "boolean",
  621. "description": ""
  622. },
  623. "searchCount": {
  624. "type": "boolean",
  625. "description": ""
  626. },
  627. "optimizeJoinOfCountSql": {
  628. "type": "boolean",
  629. "description": ""
  630. },
  631. "maxLimit": {
  632. "type": "integer",
  633. "description": "",
  634. "format": "int64"
  635. },
  636. "countId": {
  637. "type": "string",
  638. "description": ""
  639. },
  640. "mchOrderNo": {
  641. "type": "string",
  642. "description": "商户单号"
  643. },
  644. "transactionId": {
  645. "type": "string",
  646. "description": "支付单号"
  647. },
  648. "orderStatus": {
  649. "type": "string",
  650. "description": "订单状态",
  651. "enum": [
  652. "CREATE_ORDER",
  653. "PAY_SUCCESS",
  654. "PAY_FAIL",
  655. "CANCEL_ORDER",
  656. "PAY_TIMEOUT"
  657. ]
  658. },
  659. "startTime": {
  660. "type": "string",
  661. "description": "开始时间"
  662. },
  663. "endTime": {
  664. "type": "string",
  665. "description": "结束时间"
  666. },
  667. "paymentChannelId": {
  668. "type": "integer",
  669. "description": "支付通道id",
  670. "format": "int64"
  671. }
  672. }
  673. },
  674. "WithdrawOrderPageDTO": {
  675. "type": "object",
  676. "properties": {
  677. "records": {
  678. "type": "array",
  679. "items": {
  680. "$ref": "#/components/schemas/1"
  681. },
  682. "description": ""
  683. },
  684. "total": {
  685. "type": "integer",
  686. "description": "",
  687. "format": "int64"
  688. },
  689. "size": {
  690. "type": "integer",
  691. "description": "",
  692. "format": "int64"
  693. },
  694. "current": {
  695. "type": "integer",
  696. "description": "",
  697. "format": "int64"
  698. },
  699. "orders": {
  700. "type": "array",
  701. "items": {
  702. "$ref": "#/components/schemas/OrderItem",
  703. "description": "com.baomidou.mybatisplus.core.metadata.OrderItem"
  704. },
  705. "description": ""
  706. },
  707. "optimizeCountSql": {
  708. "type": "boolean",
  709. "description": ""
  710. },
  711. "searchCount": {
  712. "type": "boolean",
  713. "description": ""
  714. },
  715. "optimizeJoinOfCountSql": {
  716. "type": "boolean",
  717. "description": ""
  718. },
  719. "maxLimit": {
  720. "type": "integer",
  721. "description": "",
  722. "format": "int64"
  723. },
  724. "countId": {
  725. "type": "string",
  726. "description": ""
  727. },
  728. "mchOrderNo": {
  729. "type": "string",
  730. "description": "商户单号"
  731. },
  732. "transactionId": {
  733. "type": "string",
  734. "description": "支付单号"
  735. },
  736. "orderStatus": {
  737. "type": "string",
  738. "description": "订单状态",
  739. "enum": [
  740. "CREATE_ORDER",
  741. "WITHDRAW_SUCCESS",
  742. "WITHDRAW_FAIL"
  743. ]
  744. },
  745. "startTime": {
  746. "type": "string",
  747. "description": "开始时间"
  748. },
  749. "endTime": {
  750. "type": "string",
  751. "description": "结束时间"
  752. }
  753. }
  754. },
  755. "RIPagePayOrder": {
  756. "type": "object",
  757. "properties": {
  758. "ok": {
  759. "type": "boolean"
  760. },
  761. "code": {
  762. "type": "integer",
  763. "description": "返回标记:成功标记=0,失败标记=1"
  764. },
  765. "msg": {
  766. "type": "string",
  767. "description": "返回信息"
  768. },
  769. "data": {
  770. "$ref": "#/components/schemas/IPagePayOrder",
  771. "description": "数据"
  772. }
  773. }
  774. },
  775. "RIPageWithdrawOrder": {
  776. "type": "object",
  777. "properties": {
  778. "ok": {
  779. "type": "boolean"
  780. },
  781. "code": {
  782. "type": "integer",
  783. "description": "返回标记:成功标记=0,失败标记=1"
  784. },
  785. "msg": {
  786. "type": "string",
  787. "description": "返回信息"
  788. },
  789. "data": {
  790. "$ref": "#/components/schemas/IPageWithdrawOrder",
  791. "description": "数据"
  792. }
  793. }
  794. },
  795. "OrderItem": {
  796. "type": "object",
  797. "properties": {
  798. "column": {
  799. "type": "string",
  800. "description": ""
  801. },
  802. "asc": {
  803. "type": "boolean",
  804. "description": ""
  805. }
  806. }
  807. },
  808. "PayOrderStatisticsRO": {
  809. "type": "object",
  810. "properties": {
  811. "numberOrders": {
  812. "type": "integer",
  813. "description": "提交订单数"
  814. },
  815. "totalOrderAmount": {
  816. "type": "number",
  817. "description": "订单总金额"
  818. },
  819. "paidOrders": {
  820. "type": "integer",
  821. "description": "已付订单数"
  822. },
  823. "totalAmountPaid": {
  824. "type": "number",
  825. "description": "已付总金额"
  826. },
  827. "totalMerchantAmount": {
  828. "type": "number",
  829. "description": "商户总收入"
  830. },
  831. "totalAgentAmount": {
  832. "type": "number",
  833. "description": "代理商总收入"
  834. },
  835. "unpaidOrders": {
  836. "type": "integer",
  837. "description": "未付订单数"
  838. },
  839. "totalAmountUnpaid": {
  840. "type": "number",
  841. "description": "未付总金额"
  842. }
  843. }
  844. },
  845. "RPayOrderStatisticsRO": {
  846. "type": "object",
  847. "properties": {
  848. "code": {
  849. "type": "integer",
  850. "description": "返回标记:成功标记=0,失败标记=1"
  851. },
  852. "msg": {
  853. "type": "string",
  854. "description": "返回信息"
  855. },
  856. "data": {
  857. "$ref": "#/components/schemas/PayOrderStatisticsRO",
  858. "description": "数据"
  859. }
  860. }
  861. }
  862. },
  863. "securitySchemes": {}
  864. },
  865. "servers": [],
  866. "security": []
  867. }