dls.json 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. {
  2. "openapi": "3.0.1",
  3. "info": {
  4. "title": "默认模块",
  5. "description": "",
  6. "version": "1.0.0"
  7. },
  8. "tags": [],
  9. "paths": {
  10. "/agentPaymentType/list": {
  11. "get": {
  12. "summary": "列表-代收或代付 agent_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": "agentUserId",
  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/RListAgentPaymentTypeListVO"
  48. },
  49. "example": {
  50. "code": 0,
  51. "msg": "",
  52. "data": [
  53. {
  54. "agentPaymentTypeId": 0,
  55. "paymentTypeId": 0,
  56. "channelName": "",
  57. "channelCode": "",
  58. "paymentName": "",
  59. "paymentCode": "",
  60. "status": false,
  61. "feeType": "",
  62. "feeRate": 0,
  63. "feeEvery": 0
  64. }
  65. ]
  66. }
  67. }
  68. },
  69. "headers": {}
  70. }
  71. },
  72. "security": [
  73. {
  74. "bearer": []
  75. }
  76. ]
  77. }
  78. },
  79. "/agentPaymentType/edit": {
  80. "post": {
  81. "summary": "编辑配置 agent_payment_type_edit",
  82. "deprecated": false,
  83. "description": "",
  84. "tags": [],
  85. "parameters": [],
  86. "requestBody": {
  87. "content": {
  88. "application/json": {
  89. "schema": {
  90. "$ref": "#/components/schemas/EditAgentPaymentROEdit",
  91. "description": ""
  92. }
  93. }
  94. }
  95. },
  96. "responses": {
  97. "200": {
  98. "description": "",
  99. "content": {
  100. "application/json": {
  101. "schema": {
  102. "$ref": "#/components/schemas/R",
  103. "description": "响应信息主体"
  104. },
  105. "example": {
  106. "ok": false,
  107. "code": null,
  108. "msg": "",
  109. "data": {}
  110. }
  111. }
  112. },
  113. "headers": {}
  114. }
  115. },
  116. "security": [
  117. {
  118. "bearer": []
  119. }
  120. ]
  121. }
  122. }
  123. },
  124. "components": {
  125. "schemas": {
  126. "AgentPaymentTypeListVO": {
  127. "type": "object",
  128. "properties": {
  129. "agentPaymentTypeId": {
  130. "type": "integer",
  131. "description": "配置id",
  132. "format": "int64"
  133. },
  134. "paymentTypeId": {
  135. "type": "integer",
  136. "description": "支付类型id",
  137. "format": "int64"
  138. },
  139. "channelName": {
  140. "type": "string",
  141. "description": "通道名称"
  142. },
  143. "channelCode": {
  144. "type": "string",
  145. "description": "通道编码"
  146. },
  147. "paymentName": {
  148. "type": "string",
  149. "description": "支付类型名称"
  150. },
  151. "paymentCode": {
  152. "type": "string",
  153. "description": "支付类型代码"
  154. },
  155. "status": {
  156. "type": "boolean",
  157. "description": "启用状态"
  158. },
  159. "feeType": {
  160. "type": "string",
  161. "description": "手续费类型",
  162. "enum": [
  163. "PERCENTAGE",
  164. "FIXED",
  165. "MIXED"
  166. ]
  167. },
  168. "feeRate": {
  169. "type": "number",
  170. "description": "手续费比例(百分比)"
  171. },
  172. "feeEvery": {
  173. "type": "number",
  174. "description": "手续费固定金额"
  175. }
  176. }
  177. },
  178. "RListAgentPaymentTypeListVO": {
  179. "type": "object",
  180. "properties": {
  181. "code": {
  182. "type": "integer",
  183. "description": "返回标记:成功标记=0,失败标记=1"
  184. },
  185. "msg": {
  186. "type": "string",
  187. "description": "返回信息"
  188. },
  189. "data": {
  190. "type": "array",
  191. "items": {
  192. "$ref": "#/components/schemas/AgentPaymentTypeListVO",
  193. "description": ""
  194. },
  195. "description": "数据"
  196. }
  197. }
  198. },
  199. "EditAgentPaymentROEdit": {
  200. "type": "object",
  201. "properties": {
  202. "agentPaymentTypeId": {
  203. "type": "integer",
  204. "description": "配置id",
  205. "format": "int64"
  206. },
  207. "paymentType": {
  208. "type": "string",
  209. "description": "通道类型",
  210. "enum": [
  211. "PAY",
  212. "HARVEST"
  213. ]
  214. },
  215. "paymentTypeId": {
  216. "type": "integer",
  217. "description": "支付类型id",
  218. "format": "int64"
  219. },
  220. "agentUserId": {
  221. "type": "integer",
  222. "description": "代理商id",
  223. "format": "int64"
  224. },
  225. "feeType": {
  226. "type": "string",
  227. "description": "手续费类型",
  228. "enum": [
  229. "PERCENTAGE",
  230. "FIXED",
  231. "MIXED"
  232. ]
  233. },
  234. "feeRate": {
  235. "type": "number",
  236. "description": "手续费比例(百分比)"
  237. },
  238. "feeEvery": {
  239. "type": "number",
  240. "description": "手续费固定金额"
  241. },
  242. "status": {
  243. "type": "boolean",
  244. "description": "启用状态"
  245. }
  246. },
  247. "required": [
  248. "paymentType",
  249. "paymentTypeId",
  250. "agentUserId",
  251. "feeType",
  252. "status"
  253. ]
  254. },
  255. "R": {
  256. "type": "object",
  257. "properties": {
  258. "ok": {
  259. "type": "boolean"
  260. },
  261. "code": {
  262. "description": "返回标记:成功标记=0,失败标记=1",
  263. "type": "null"
  264. },
  265. "msg": {
  266. "type": "string",
  267. "description": "返回信息"
  268. },
  269. "data": {
  270. "type": "object",
  271. "properties": {},
  272. "description": "数据"
  273. }
  274. }
  275. }
  276. },
  277. "securitySchemes": {
  278. "bearer": {
  279. "type": "http",
  280. "scheme": "bearer"
  281. }
  282. }
  283. },
  284. "servers": [],
  285. "security": []
  286. }