shtd.json 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. {
  2. "openapi": "3.0.1",
  3. "info": {
  4. "title": "默认模块",
  5. "description": "",
  6. "version": "1.0.0"
  7. },
  8. "tags": [],
  9. "paths": {
  10. "/merchantPaymentType/list": {
  11. "get": {
  12. "summary": "列表-代收或代付 merchant_payment_type_query",
  13. "deprecated": false,
  14. "description": "",
  15. "tags": [],
  16. "parameters": [
  17. {
  18. "name": "paymentType",
  19. "in": "query",
  20. "description": "通道类型\nPAY :代付\nHARVEST :代收",
  21. "required": true,
  22. "schema": {
  23. "type": "string",
  24. "enum": [
  25. "PAY",
  26. "HARVEST"
  27. ]
  28. }
  29. },
  30. {
  31. "name": "merchantUserId",
  32. "in": "query",
  33. "description": "商户id",
  34. "required": true,
  35. "schema": {
  36. "type": "integer",
  37. "format": "int64"
  38. }
  39. }
  40. ],
  41. "responses": {
  42. "200": {
  43. "description": "",
  44. "content": {
  45. "application/json": {
  46. "schema": {
  47. "$ref": "#/components/schemas/RListMerchantPaymentTypeListVO"
  48. },
  49. "example": {
  50. "code": 0,
  51. "msg": "",
  52. "data": [
  53. {
  54. "merchantPaymentTypeId": 0,
  55. "paymentTypeId": 0,
  56. "channelName": "",
  57. "channelCode": "",
  58. "paymentName": "",
  59. "paymentCode": "",
  60. "status": false,
  61. "agentUserRate": 0,
  62. "merchantUserRate": 0,
  63. "singleMaxAmount": 0,
  64. "singleMinAmount": 0,
  65. "baseSingleMaxAmount": 0,
  66. "baseSingleMinAmount": 0
  67. }
  68. ]
  69. }
  70. }
  71. },
  72. "headers": {}
  73. }
  74. },
  75. "security": [
  76. {
  77. "bearer": []
  78. }
  79. ]
  80. }
  81. },
  82. "/merchantPaymentType/edit": {
  83. "post": {
  84. "summary": "编辑配置 merchant_payment_type_edit",
  85. "deprecated": false,
  86. "description": "",
  87. "tags": [],
  88. "parameters": [],
  89. "requestBody": {
  90. "content": {
  91. "application/json": {
  92. "schema": {
  93. "$ref": "#/components/schemas/EditMerchantPaymentROEdit",
  94. "description": ""
  95. }
  96. }
  97. }
  98. },
  99. "responses": {
  100. "200": {
  101. "description": "",
  102. "content": {
  103. "application/json": {
  104. "schema": {
  105. "$ref": "#/components/schemas/R",
  106. "description": "响应信息主体"
  107. },
  108. "example": {
  109. "ok": false,
  110. "code": null,
  111. "msg": "",
  112. "data": {}
  113. }
  114. }
  115. },
  116. "headers": {}
  117. }
  118. },
  119. "security": [
  120. {
  121. "bearer": []
  122. }
  123. ]
  124. }
  125. }
  126. },
  127. "components": {
  128. "schemas": {
  129. "MerchantPaymentTypeListVO": {
  130. "type": "object",
  131. "properties": {
  132. "merchantPaymentTypeId": {
  133. "type": "integer",
  134. "description": "配置id",
  135. "format": "int64"
  136. },
  137. "paymentTypeId": {
  138. "type": "integer",
  139. "description": "支付类型id",
  140. "format": "int64"
  141. },
  142. "channelName": {
  143. "type": "string",
  144. "description": "通道名称"
  145. },
  146. "channelCode": {
  147. "type": "string",
  148. "description": "通道编码"
  149. },
  150. "paymentName": {
  151. "type": "string",
  152. "description": "支付类型名称"
  153. },
  154. "paymentCode": {
  155. "type": "string",
  156. "description": "支付类型代码"
  157. },
  158. "status": {
  159. "type": "boolean",
  160. "description": "启用状态"
  161. },
  162. "agentUserRate": {
  163. "type": "number",
  164. "description": "代理商费率"
  165. },
  166. "merchantUserRate": {
  167. "type": "number",
  168. "description": "商户费率"
  169. },
  170. "singleMaxAmount": {
  171. "type": "number",
  172. "description": "单比最大金额"
  173. },
  174. "singleMinAmount": {
  175. "type": "number",
  176. "description": "单比最小金额"
  177. },
  178. "baseSingleMaxAmount": {
  179. "type": "number",
  180. "description": "通道单比最大金额"
  181. },
  182. "baseSingleMinAmount": {
  183. "type": "number",
  184. "description": "通道单比最小金额"
  185. }
  186. }
  187. },
  188. "RListMerchantPaymentTypeListVO": {
  189. "type": "object",
  190. "properties": {
  191. "code": {
  192. "type": "integer",
  193. "description": "返回标记:成功标记=0,失败标记=1"
  194. },
  195. "msg": {
  196. "type": "string",
  197. "description": "返回信息"
  198. },
  199. "data": {
  200. "type": "array",
  201. "items": {
  202. "$ref": "#/components/schemas/MerchantPaymentTypeListVO",
  203. "description": ""
  204. },
  205. "description": "数据"
  206. }
  207. }
  208. },
  209. "EditMerchantPaymentROEdit": {
  210. "type": "object",
  211. "properties": {
  212. "merchantPaymentTypeId": {
  213. "type": "integer",
  214. "description": "配置id",
  215. "format": "int64"
  216. },
  217. "paymentType": {
  218. "type": "string",
  219. "description": "通道类型",
  220. "enum": [
  221. "PAY",
  222. "HARVEST"
  223. ]
  224. },
  225. "paymentTypeId": {
  226. "type": "integer",
  227. "description": "支付类型id",
  228. "format": "int64"
  229. },
  230. "merchantUserId": {
  231. "type": "integer",
  232. "description": "商户id",
  233. "format": "int64"
  234. },
  235. "agentUserRate": {
  236. "type": "number",
  237. "description": "代理商费率"
  238. },
  239. "merchantUserRate": {
  240. "type": "number",
  241. "description": "商户费率"
  242. },
  243. "status": {
  244. "type": "boolean",
  245. "description": "启用状态"
  246. },
  247. "singleMaxAmount": {
  248. "type": "number",
  249. "description": "单比最大金额"
  250. },
  251. "singleMinAmount": {
  252. "type": "number",
  253. "description": "单比最小金额"
  254. }
  255. },
  256. "required": [
  257. "paymentType",
  258. "paymentTypeId",
  259. "merchantUserId",
  260. "status"
  261. ]
  262. },
  263. "R": {
  264. "type": "object",
  265. "properties": {
  266. "ok": {
  267. "type": "boolean"
  268. },
  269. "code": {
  270. "description": "返回标记:成功标记=0,失败标记=1",
  271. "type": "null"
  272. },
  273. "msg": {
  274. "type": "string",
  275. "description": "返回信息"
  276. },
  277. "data": {
  278. "type": "object",
  279. "properties": {},
  280. "description": "数据"
  281. }
  282. }
  283. }
  284. },
  285. "securitySchemes": {
  286. "bearer": {
  287. "type": "http",
  288. "scheme": "bearer"
  289. }
  290. }
  291. },
  292. "servers": [],
  293. "security": []
  294. }