payType.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  1. {
  2. "openapi": "3.0.1",
  3. "info": {
  4. "title": "默认模块",
  5. "description": "",
  6. "version": "1.0.0"
  7. },
  8. "tags": [],
  9. "paths": {
  10. "/paymentType/list/{id:^\\d+$}": {
  11. "get": {
  12. "summary": "列表 payment_type_query",
  13. "deprecated": false,
  14. "description": "",
  15. "tags": [],
  16. "parameters": [
  17. {
  18. "name": "id",
  19. "in": "path",
  20. "description": "",
  21. "required": true,
  22. "schema": {
  23. "type": "integer"
  24. }
  25. },
  26. {
  27. "name": "query",
  28. "in": "query",
  29. "description": "",
  30. "required": false,
  31. "schema": {
  32. "type": "string"
  33. }
  34. },
  35. {
  36. "name": "status",
  37. "in": "query",
  38. "description": "",
  39. "required": false,
  40. "schema": {
  41. "type": "boolean"
  42. }
  43. },
  44. {
  45. "name": "paymentType",
  46. "in": "query",
  47. "description": " PAY :代付\nHARVEST :代收",
  48. "required": false,
  49. "schema": {
  50. "type": "string"
  51. }
  52. }
  53. ],
  54. "responses": {
  55. "200": {
  56. "description": "",
  57. "content": {
  58. "application/json": {
  59. "schema": {
  60. "$ref": "#/components/schemas/RListPaymentTypeListVO"
  61. },
  62. "example": {
  63. "code": 0,
  64. "msg": "",
  65. "data": [
  66. {
  67. "id": 0,
  68. "status": false,
  69. "paymentName": "",
  70. "paymentCode": "",
  71. "paymentType": ""
  72. }
  73. ]
  74. }
  75. }
  76. },
  77. "headers": {}
  78. }
  79. },
  80. "security": [
  81. {
  82. "bearer": []
  83. }
  84. ]
  85. }
  86. },
  87. "/paymentType/save": {
  88. "post": {
  89. "summary": "新增 payment_type_save",
  90. "deprecated": false,
  91. "description": "",
  92. "tags": [],
  93. "parameters": [],
  94. "requestBody": {
  95. "content": {
  96. "application/json": {
  97. "schema": {
  98. "$ref": "#/components/schemas/PaymentTypeROAdd",
  99. "description": ""
  100. }
  101. }
  102. }
  103. },
  104. "responses": {
  105. "200": {
  106. "description": "",
  107. "content": {
  108. "application/json": {
  109. "schema": {
  110. "$ref": "#/components/schemas/R",
  111. "description": "响应信息主体"
  112. },
  113. "example": {
  114. "ok": false,
  115. "code": null,
  116. "msg": "",
  117. "data": {}
  118. }
  119. }
  120. },
  121. "headers": {}
  122. }
  123. },
  124. "security": [
  125. {
  126. "bearer": []
  127. }
  128. ]
  129. }
  130. },
  131. "/paymentType/info/{id:^\\d+$}": {
  132. "get": {
  133. "summary": "详情 payment_type_info",
  134. "deprecated": false,
  135. "description": "",
  136. "tags": [],
  137. "parameters": [
  138. {
  139. "name": "id",
  140. "in": "path",
  141. "description": "",
  142. "required": true,
  143. "schema": {
  144. "type": "integer"
  145. }
  146. }
  147. ],
  148. "responses": {
  149. "200": {
  150. "description": "",
  151. "content": {
  152. "application/json": {
  153. "schema": {
  154. "$ref": "#/components/schemas/RPaymentType"
  155. },
  156. "example": {
  157. "code": 0,
  158. "msg": "",
  159. "data": {
  160. "id": 0,
  161. "status": false,
  162. "createBy": "",
  163. "updateBy": "",
  164. "createTime": "",
  165. "updateTime": "",
  166. "channelId": 0,
  167. "paymentName": "",
  168. "paymentCode": "",
  169. "paymentType": ""
  170. }
  171. }
  172. }
  173. },
  174. "headers": {}
  175. }
  176. },
  177. "security": [
  178. {
  179. "bearer": []
  180. }
  181. ]
  182. }
  183. },
  184. "/paymentType/edit/{id:^\\d+$}": {
  185. "patch": {
  186. "summary": "编辑(不可修改状态、不可修改类型) payment_type_edit",
  187. "deprecated": false,
  188. "description": "",
  189. "tags": [],
  190. "parameters": [
  191. {
  192. "name": "id",
  193. "in": "path",
  194. "description": "",
  195. "required": true,
  196. "schema": {
  197. "type": "integer"
  198. }
  199. }
  200. ],
  201. "requestBody": {
  202. "content": {
  203. "application/json": {
  204. "schema": {
  205. "$ref": "#/components/schemas/PaymentTypeROEdit",
  206. "description": ""
  207. }
  208. }
  209. }
  210. },
  211. "responses": {
  212. "200": {
  213. "description": "",
  214. "content": {
  215. "application/json": {
  216. "schema": {
  217. "$ref": "#/components/schemas/R",
  218. "description": "响应信息主体"
  219. },
  220. "example": {
  221. "ok": false,
  222. "code": null,
  223. "msg": "",
  224. "data": {}
  225. }
  226. }
  227. },
  228. "headers": {}
  229. }
  230. },
  231. "security": [
  232. {
  233. "bearer": []
  234. }
  235. ]
  236. }
  237. },
  238. "/paymentType/changeStatus/{id:^\\d+$}": {
  239. "patch": {
  240. "summary": "修改状态 payment_channel_edit",
  241. "deprecated": false,
  242. "description": "",
  243. "tags": [],
  244. "parameters": [
  245. {
  246. "name": "id",
  247. "in": "path",
  248. "description": "",
  249. "required": true,
  250. "schema": {
  251. "type": "integer"
  252. }
  253. }
  254. ],
  255. "responses": {
  256. "200": {
  257. "description": "",
  258. "content": {
  259. "application/json": {
  260. "schema": {
  261. "$ref": "#/components/schemas/R",
  262. "description": "响应信息主体"
  263. },
  264. "example": {
  265. "ok": false,
  266. "code": null,
  267. "msg": "",
  268. "data": {}
  269. }
  270. }
  271. },
  272. "headers": {}
  273. }
  274. },
  275. "security": [
  276. {
  277. "bearer": []
  278. }
  279. ]
  280. }
  281. }
  282. },
  283. "components": {
  284. "schemas": {
  285. "PaymentTypeListVO": {
  286. "type": "object",
  287. "properties": {
  288. "id": {
  289. "type": "integer",
  290. "description": "",
  291. "format": "int64"
  292. },
  293. "status": {
  294. "type": "boolean",
  295. "description": "启用状态"
  296. },
  297. "paymentName": {
  298. "type": "string",
  299. "description": "支付类型名称"
  300. },
  301. "paymentCode": {
  302. "type": "string",
  303. "description": "支付类型代码"
  304. },
  305. "paymentType": {
  306. "type": "string",
  307. "description": "支付类别",
  308. "enum": [
  309. "PAY",
  310. "HARVEST"
  311. ]
  312. }
  313. }
  314. },
  315. "RListPaymentTypeListVO": {
  316. "type": "object",
  317. "properties": {
  318. "code": {
  319. "type": "integer",
  320. "description": "返回标记:成功标记=0,失败标记=1"
  321. },
  322. "msg": {
  323. "type": "string",
  324. "description": "返回信息"
  325. },
  326. "data": {
  327. "type": "array",
  328. "items": {
  329. "$ref": "#/components/schemas/PaymentTypeListVO",
  330. "description": ""
  331. },
  332. "description": "数据"
  333. }
  334. }
  335. },
  336. "PaymentTypeROAdd": {
  337. "type": "object",
  338. "properties": {
  339. "status": {
  340. "type": "boolean",
  341. "description": "启用状态"
  342. },
  343. "channelId": {
  344. "type": "integer",
  345. "description": "通道id",
  346. "format": "int64"
  347. },
  348. "paymentName": {
  349. "type": "string",
  350. "description": "支付类型名称"
  351. },
  352. "paymentCode": {
  353. "type": "string",
  354. "description": "支付类型代码"
  355. },
  356. "paymentType": {
  357. "type": "string",
  358. "description": "支付类别",
  359. "enum": [
  360. "PAY",
  361. "HARVEST"
  362. ]
  363. }
  364. },
  365. "required": [
  366. "status",
  367. "channelId",
  368. "paymentName",
  369. "paymentCode",
  370. "paymentType"
  371. ]
  372. },
  373. "PaymentType": {
  374. "type": "object",
  375. "properties": {
  376. "id": {
  377. "type": "integer",
  378. "description": "",
  379. "format": "int64"
  380. },
  381. "status": {
  382. "type": "boolean",
  383. "description": "启用状态"
  384. },
  385. "createBy": {
  386. "type": "string",
  387. "description": "创建人"
  388. },
  389. "updateBy": {
  390. "type": "string",
  391. "description": "修改人"
  392. },
  393. "createTime": {
  394. "type": "string",
  395. "description": "创建时间"
  396. },
  397. "updateTime": {
  398. "type": "string",
  399. "description": "修改时间"
  400. },
  401. "channelId": {
  402. "type": "integer",
  403. "description": "通道id",
  404. "format": "int64"
  405. },
  406. "paymentName": {
  407. "type": "string",
  408. "description": "支付类型名称"
  409. },
  410. "paymentCode": {
  411. "type": "string",
  412. "description": "支付类型代码"
  413. },
  414. "paymentType": {
  415. "type": "string",
  416. "description": "支付类别",
  417. "enum": [
  418. "PAY",
  419. "HARVEST"
  420. ]
  421. }
  422. }
  423. },
  424. "R": {
  425. "type": "object",
  426. "properties": {
  427. "ok": {
  428. "type": "boolean"
  429. },
  430. "code": {
  431. "description": "返回标记:成功标记=0,失败标记=1",
  432. "type": "null"
  433. },
  434. "msg": {
  435. "type": "string",
  436. "description": "返回信息"
  437. },
  438. "data": {
  439. "type": "object",
  440. "properties": {},
  441. "description": "数据"
  442. }
  443. }
  444. },
  445. "RPaymentType": {
  446. "type": "object",
  447. "properties": {
  448. "code": {
  449. "type": "integer",
  450. "description": "返回标记:成功标记=0,失败标记=1"
  451. },
  452. "msg": {
  453. "type": "string",
  454. "description": "返回信息"
  455. },
  456. "data": {
  457. "$ref": "#/components/schemas/PaymentType",
  458. "description": "数据"
  459. }
  460. }
  461. },
  462. "PaymentTypeROEdit": {
  463. "type": "object",
  464. "properties": {
  465. "status": {
  466. "type": "boolean",
  467. "description": "启用状态"
  468. },
  469. "channelId": {
  470. "type": "integer",
  471. "description": "通道id",
  472. "format": "int64"
  473. },
  474. "paymentName": {
  475. "type": "string",
  476. "description": "支付类型名称"
  477. },
  478. "paymentCode": {
  479. "type": "string",
  480. "description": "支付类型代码"
  481. },
  482. "paymentType": {
  483. "type": "string",
  484. "description": "支付类别",
  485. "enum": [
  486. "PAY",
  487. "HARVEST"
  488. ]
  489. }
  490. },
  491. "required": [
  492. "channelId",
  493. "paymentName",
  494. "paymentCode"
  495. ]
  496. }
  497. },
  498. "securitySchemes": {
  499. "bearer": {
  500. "type": "http",
  501. "scheme": "bearer"
  502. }
  503. }
  504. },
  505. "servers": [],
  506. "security": []
  507. }