payChannel.json 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713
  1. {
  2. "openapi": "3.0.1",
  3. "info": {
  4. "title": "默认模块",
  5. "description": "",
  6. "version": "1.0.0"
  7. },
  8. "tags": [],
  9. "paths": {
  10. "/paymentChannel/page": {
  11. "get": {
  12. "summary": "分页 payment_channel_page",
  13. "deprecated": false,
  14. "description": "",
  15. "tags": [],
  16. "parameters": [
  17. {
  18. "name": "records[0].key",
  19. "in": "query",
  20. "description": "",
  21. "required": false,
  22. "schema": {
  23. "type": ""
  24. }
  25. },
  26. {
  27. "name": "total",
  28. "in": "query",
  29. "description": "",
  30. "required": false,
  31. "schema": {
  32. "type": "integer",
  33. "format": "int64"
  34. }
  35. },
  36. {
  37. "name": "size",
  38. "in": "query",
  39. "description": "",
  40. "required": false,
  41. "schema": {
  42. "type": "integer",
  43. "format": "int64"
  44. }
  45. },
  46. {
  47. "name": "current",
  48. "in": "query",
  49. "description": "",
  50. "required": false,
  51. "schema": {
  52. "type": "integer",
  53. "format": "int64"
  54. }
  55. },
  56. {
  57. "name": "orders[0].column",
  58. "in": "query",
  59. "description": "",
  60. "required": false,
  61. "schema": {
  62. "type": "string"
  63. }
  64. },
  65. {
  66. "name": "orders[0].asc",
  67. "in": "query",
  68. "description": "",
  69. "required": false,
  70. "schema": {
  71. "type": "boolean"
  72. }
  73. },
  74. {
  75. "name": "optimizeCountSql",
  76. "in": "query",
  77. "description": "",
  78. "required": false,
  79. "schema": {
  80. "type": "boolean"
  81. }
  82. },
  83. {
  84. "name": "searchCount",
  85. "in": "query",
  86. "description": "",
  87. "required": false,
  88. "schema": {
  89. "type": "boolean"
  90. }
  91. },
  92. {
  93. "name": "optimizeJoinOfCountSql",
  94. "in": "query",
  95. "description": "",
  96. "required": false,
  97. "schema": {
  98. "type": "boolean"
  99. }
  100. },
  101. {
  102. "name": "maxLimit",
  103. "in": "query",
  104. "description": "",
  105. "required": false,
  106. "schema": {
  107. "type": "integer",
  108. "format": "int64"
  109. }
  110. },
  111. {
  112. "name": "countId",
  113. "in": "query",
  114. "description": "",
  115. "required": false,
  116. "schema": {
  117. "type": "string"
  118. }
  119. },
  120. {
  121. "name": "query",
  122. "in": "query",
  123. "description": "",
  124. "required": false,
  125. "schema": {
  126. "type": "string"
  127. }
  128. },
  129. {
  130. "name": "status",
  131. "in": "query",
  132. "description": "",
  133. "required": false,
  134. "schema": {
  135. "type": "boolean"
  136. }
  137. }
  138. ],
  139. "responses": {
  140. "200": {
  141. "description": "",
  142. "content": {
  143. "application/json": {
  144. "schema": {
  145. "$ref": "#/components/schemas/RPagePaymentChannelPageVO"
  146. },
  147. "example": {
  148. "code": 0,
  149. "msg": "",
  150. "data": {
  151. "records": [
  152. {
  153. "id": 0,
  154. "status": false,
  155. "channelName": "",
  156. "baseRechargeRate": 0,
  157. "riskControlStatus": false
  158. }
  159. ],
  160. "total": 0,
  161. "size": 0,
  162. "current": 0,
  163. "orders": [
  164. {
  165. "column": "",
  166. "asc": false
  167. }
  168. ],
  169. "optimizeCountSql": false,
  170. "searchCount": false,
  171. "optimizeJoinOfCountSql": false,
  172. "maxLimit": 0,
  173. "countId": ""
  174. }
  175. }
  176. }
  177. },
  178. "headers": {}
  179. }
  180. },
  181. "security": [
  182. {
  183. "bearer": []
  184. }
  185. ]
  186. }
  187. },
  188. "/paymentChannel/save": {
  189. "post": {
  190. "summary": "新增 payment_channel_save",
  191. "deprecated": false,
  192. "description": "",
  193. "tags": [],
  194. "parameters": [],
  195. "requestBody": {
  196. "content": {
  197. "application/json": {
  198. "schema": {
  199. "$ref": "#/components/schemas/PaymentChannelROAdd",
  200. "description": ""
  201. }
  202. }
  203. }
  204. },
  205. "responses": {
  206. "200": {
  207. "description": "",
  208. "content": {
  209. "application/json": {
  210. "schema": {
  211. "$ref": "#/components/schemas/R",
  212. "description": "响应信息主体"
  213. },
  214. "example": {
  215. "ok": false,
  216. "code": null,
  217. "msg": "",
  218. "data": {}
  219. }
  220. }
  221. },
  222. "headers": {}
  223. }
  224. },
  225. "security": [
  226. {
  227. "bearer": []
  228. }
  229. ]
  230. }
  231. },
  232. "/paymentChannel/info/{id:^\\d+$}": {
  233. "get": {
  234. "summary": "详情 payment_channel_info",
  235. "deprecated": false,
  236. "description": "",
  237. "tags": [],
  238. "parameters": [
  239. {
  240. "name": "id",
  241. "in": "path",
  242. "description": "",
  243. "required": true,
  244. "schema": {
  245. "type": "integer"
  246. }
  247. }
  248. ],
  249. "responses": {
  250. "200": {
  251. "description": "",
  252. "content": {
  253. "application/json": {
  254. "schema": {
  255. "$ref": "#/components/schemas/RPaymentChannel"
  256. },
  257. "example": {
  258. "code": 0,
  259. "msg": "",
  260. "data": {
  261. "id": 0,
  262. "status": false,
  263. "createBy": "",
  264. "updateBy": "",
  265. "createTime": "",
  266. "updateTime": "",
  267. "channelName": "",
  268. "baseRechargeRate": 0,
  269. "todayTotalAmount": 0,
  270. "singleMaxAmount": 0,
  271. "singleMinAmount": 0,
  272. "riskControlStatus": false
  273. }
  274. }
  275. }
  276. },
  277. "headers": {}
  278. }
  279. },
  280. "security": [
  281. {
  282. "bearer": []
  283. }
  284. ]
  285. }
  286. },
  287. "/paymentChannel/edit/{id:^\\d+$}": {
  288. "patch": {
  289. "summary": "编辑(不可修改状态) payment_channel_edit",
  290. "deprecated": false,
  291. "description": "",
  292. "tags": [],
  293. "parameters": [
  294. {
  295. "name": "id",
  296. "in": "path",
  297. "description": "",
  298. "required": true,
  299. "schema": {
  300. "type": "integer"
  301. }
  302. }
  303. ],
  304. "requestBody": {
  305. "content": {
  306. "application/json": {
  307. "schema": {
  308. "$ref": "#/components/schemas/PaymentChannelROEdit",
  309. "description": ""
  310. }
  311. }
  312. }
  313. },
  314. "responses": {
  315. "200": {
  316. "description": "",
  317. "content": {
  318. "application/json": {
  319. "schema": {
  320. "$ref": "#/components/schemas/R",
  321. "description": "响应信息主体"
  322. },
  323. "example": {
  324. "ok": false,
  325. "code": null,
  326. "msg": "",
  327. "data": {}
  328. }
  329. }
  330. },
  331. "headers": {}
  332. }
  333. },
  334. "security": [
  335. {
  336. "bearer": []
  337. }
  338. ]
  339. }
  340. },
  341. "/paymentChannel/changeStatus/{id:^\\d+$}": {
  342. "patch": {
  343. "summary": "修改状态 payment_channel_edit",
  344. "deprecated": false,
  345. "description": "",
  346. "tags": [],
  347. "parameters": [
  348. {
  349. "name": "id",
  350. "in": "path",
  351. "description": "",
  352. "required": true,
  353. "schema": {
  354. "type": "integer"
  355. }
  356. }
  357. ],
  358. "responses": {
  359. "200": {
  360. "description": "",
  361. "content": {
  362. "application/json": {
  363. "schema": {
  364. "$ref": "#/components/schemas/R",
  365. "description": "响应信息主体"
  366. },
  367. "example": {
  368. "ok": false,
  369. "code": null,
  370. "msg": "",
  371. "data": {}
  372. }
  373. }
  374. },
  375. "headers": {}
  376. }
  377. },
  378. "security": [
  379. {
  380. "bearer": []
  381. }
  382. ]
  383. }
  384. }
  385. },
  386. "components": {
  387. "schemas": {
  388. "PaymentChannelPageVO": {
  389. "type": "object",
  390. "properties": {
  391. "id": {
  392. "type": "integer",
  393. "description": "",
  394. "format": "int64"
  395. },
  396. "status": {
  397. "type": "boolean",
  398. "description": "启用状态"
  399. },
  400. "channelName": {
  401. "type": "string",
  402. "description": "通道名称"
  403. },
  404. "channelCode": {
  405. "type": "string",
  406. "description": "通道编码"
  407. },
  408. "baseRechargeRate": {
  409. "type": "number",
  410. "description": "基础费率(百分比)"
  411. },
  412. "riskControlStatus": {
  413. "type": "boolean",
  414. "description": "风控状态"
  415. }
  416. }
  417. },
  418. "PagePaymentChannelPageVO": {
  419. "type": "object",
  420. "properties": {
  421. "records": {
  422. "type": "array",
  423. "items": {
  424. "$ref": "#/components/schemas/PaymentChannelPageVO",
  425. "description": ""
  426. },
  427. "description": ""
  428. },
  429. "total": {
  430. "type": "integer",
  431. "description": "",
  432. "format": "int64"
  433. },
  434. "size": {
  435. "type": "integer",
  436. "description": "",
  437. "format": "int64"
  438. },
  439. "current": {
  440. "type": "integer",
  441. "description": "",
  442. "format": "int64"
  443. },
  444. "orders": {
  445. "type": "array",
  446. "items": {
  447. "$ref": "#/components/schemas/OrderItem",
  448. "description": "com.baomidou.mybatisplus.core.metadata.OrderItem"
  449. },
  450. "description": ""
  451. },
  452. "optimizeCountSql": {
  453. "type": "boolean",
  454. "description": ""
  455. },
  456. "searchCount": {
  457. "type": "boolean",
  458. "description": ""
  459. },
  460. "optimizeJoinOfCountSql": {
  461. "type": "boolean",
  462. "description": ""
  463. },
  464. "maxLimit": {
  465. "type": "integer",
  466. "description": "",
  467. "format": "int64"
  468. },
  469. "countId": {
  470. "type": "string",
  471. "description": ""
  472. }
  473. }
  474. },
  475. "RPagePaymentChannelPageVO": {
  476. "type": "object",
  477. "properties": {
  478. "code": {
  479. "type": "integer",
  480. "description": "返回标记:成功标记=0,失败标记=1"
  481. },
  482. "msg": {
  483. "type": "string",
  484. "description": "返回信息"
  485. },
  486. "data": {
  487. "$ref": "#/components/schemas/PagePaymentChannelPageVO",
  488. "description": "数据"
  489. }
  490. }
  491. },
  492. "R": {
  493. "type": "object",
  494. "properties": {
  495. "ok": {
  496. "type": "boolean"
  497. },
  498. "code": {
  499. "description": "返回标记:成功标记=0,失败标记=1",
  500. "type": "null"
  501. },
  502. "msg": {
  503. "type": "string",
  504. "description": "返回信息"
  505. },
  506. "data": {
  507. "type": "object",
  508. "properties": {},
  509. "description": "数据"
  510. }
  511. }
  512. },
  513. "PaymentChannelROAdd": {
  514. "type": "object",
  515. "properties": {
  516. "status": {
  517. "type": "boolean",
  518. "description": "启用状态"
  519. },
  520. "channelName": {
  521. "type": "string",
  522. "description": "通道名称"
  523. },
  524. "channelCode": {
  525. "type": "string",
  526. "description": "通道编码"
  527. },
  528. "baseRechargeRate": {
  529. "type": "number",
  530. "description": "基础费率(百分比)",
  531. "minimum": 0,
  532. "maximum": 100,
  533. "exclusiveMinimum": true,
  534. "exclusiveMaximum": true
  535. },
  536. "todayTotalAmount": {
  537. "type": "number",
  538. "description": "当天总金额",
  539. "minimum": 0,
  540. "maximum": 9999999999.99
  541. },
  542. "singleMaxAmount": {
  543. "type": "number",
  544. "description": "单比最大金额",
  545. "minimum": 0,
  546. "maximum": 9999999999.99
  547. },
  548. "singleMinAmount": {
  549. "type": "number",
  550. "description": "单比最小金额",
  551. "minimum": 0,
  552. "maximum": 9999999999.99
  553. },
  554. "riskControlStatus": {
  555. "type": "boolean",
  556. "description": "风控状态"
  557. }
  558. },
  559. "required": [
  560. "channelName",
  561. "channelCode"
  562. ]
  563. },
  564. "OrderItem": {
  565. "type": "object",
  566. "properties": {
  567. "column": {
  568. "type": "string",
  569. "description": ""
  570. },
  571. "asc": {
  572. "type": "boolean",
  573. "description": ""
  574. }
  575. }
  576. },
  577. "PaymentChannel": {
  578. "type": "object",
  579. "properties": {
  580. "id": {
  581. "type": "integer",
  582. "description": "",
  583. "format": "int64"
  584. },
  585. "status": {
  586. "type": "boolean",
  587. "description": "启用状态"
  588. },
  589. "createBy": {
  590. "type": "string",
  591. "description": "创建人"
  592. },
  593. "updateBy": {
  594. "type": "string",
  595. "description": "修改人"
  596. },
  597. "createTime": {
  598. "type": "string",
  599. "description": "创建时间"
  600. },
  601. "updateTime": {
  602. "type": "string",
  603. "description": "修改时间"
  604. },
  605. "channelName": {
  606. "type": "string",
  607. "description": "通道名称"
  608. },
  609. "channelCode": {
  610. "type": "string",
  611. "description": "通道编码"
  612. },
  613. "baseRechargeRate": {
  614. "type": "number",
  615. "description": "基础费率(百分比)"
  616. },
  617. "todayTotalAmount": {
  618. "type": "number",
  619. "description": "当天总金额"
  620. },
  621. "singleMaxAmount": {
  622. "type": "number",
  623. "description": "单比最大金额"
  624. },
  625. "singleMinAmount": {
  626. "type": "number",
  627. "description": "单比最小金额"
  628. },
  629. "riskControlStatus": {
  630. "type": "boolean",
  631. "description": "风控状态"
  632. }
  633. }
  634. },
  635. "RPaymentChannel": {
  636. "type": "object",
  637. "properties": {
  638. "code": {
  639. "type": "integer",
  640. "description": "返回标记:成功标记=0,失败标记=1"
  641. },
  642. "msg": {
  643. "type": "string",
  644. "description": "返回信息"
  645. },
  646. "data": {
  647. "$ref": "#/components/schemas/PaymentChannel",
  648. "description": "数据"
  649. }
  650. }
  651. },
  652. "PaymentChannelROEdit": {
  653. "type": "object",
  654. "properties": {
  655. "status": {
  656. "type": "boolean",
  657. "description": "启用状态"
  658. },
  659. "channelName": {
  660. "type": "string",
  661. "description": "通道名称"
  662. },
  663. "channelCode": {
  664. "type": "string",
  665. "description": "通道编码"
  666. },
  667. "baseRechargeRate": {
  668. "type": "number",
  669. "description": "基础费率(百分比)",
  670. "minimum": 0,
  671. "maximum": 100,
  672. "exclusiveMinimum": true,
  673. "exclusiveMaximum": true
  674. },
  675. "todayTotalAmount": {
  676. "type": "number",
  677. "description": "当天总金额",
  678. "minimum": 0,
  679. "maximum": 9999999999.99
  680. },
  681. "singleMaxAmount": {
  682. "type": "number",
  683. "description": "单比最大金额",
  684. "minimum": 0,
  685. "maximum": 9999999999.99
  686. },
  687. "singleMinAmount": {
  688. "type": "number",
  689. "description": "单比最小金额",
  690. "minimum": 0,
  691. "maximum": 9999999999.99
  692. },
  693. "riskControlStatus": {
  694. "type": "boolean",
  695. "description": "风控状态"
  696. }
  697. },
  698. "required": [
  699. "channelName",
  700. "channelCode"
  701. ]
  702. }
  703. },
  704. "securitySchemes": {
  705. "bearer": {
  706. "type": "http",
  707. "scheme": "bearer"
  708. }
  709. }
  710. },
  711. "servers": [],
  712. "security": []
  713. }