bmd.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. {
  2. "openapi": "3.0.1",
  3. "info": {
  4. "title": "默认模块",
  5. "description": "",
  6. "version": "1.0.0"
  7. },
  8. "tags": [],
  9. "paths": {
  10. "/merchant/getWhitelist": {
  11. "get": {
  12. "summary": "查看白名单",
  13. "deprecated": false,
  14. "description": "",
  15. "tags": [],
  16. "parameters": [],
  17. "responses": {
  18. "200": {
  19. "description": "",
  20. "content": {
  21. "application/json": {
  22. "schema": {
  23. "$ref": "#/components/schemas/RString"
  24. },
  25. "example": {
  26. "code": 0,
  27. "msg": "",
  28. "data": ""
  29. }
  30. }
  31. },
  32. "headers": {}
  33. }
  34. },
  35. "security": [
  36. {
  37. "bearer": []
  38. }
  39. ]
  40. }
  41. },
  42. "/merchant/editWhitelist": {
  43. "patch": {
  44. "summary": "设置白名单",
  45. "deprecated": false,
  46. "description": "",
  47. "tags": [],
  48. "parameters": [],
  49. "requestBody": {
  50. "content": {
  51. "application/json": {
  52. "schema": {
  53. "$ref": "#/components/schemas/EditMerchantSafeRO",
  54. "description": ""
  55. }
  56. }
  57. }
  58. },
  59. "responses": {
  60. "200": {
  61. "description": "",
  62. "content": {
  63. "application/json": {
  64. "schema": {
  65. "$ref": "#/components/schemas/R",
  66. "description": "响应信息主体"
  67. },
  68. "example": {
  69. "ok": false,
  70. "code": 0,
  71. "msg": "",
  72. "data": {}
  73. }
  74. }
  75. },
  76. "headers": {}
  77. }
  78. },
  79. "security": [
  80. {
  81. "bearer": []
  82. }
  83. ]
  84. }
  85. },
  86. "/merchant/editSecondaryPwd": {
  87. "patch": {
  88. "summary": "设置二级密码",
  89. "deprecated": false,
  90. "description": "",
  91. "tags": [],
  92. "parameters": [],
  93. "requestBody": {
  94. "content": {
  95. "application/json": {
  96. "schema": {
  97. "$ref": "#/components/schemas/EditMerchantSafeRO",
  98. "description": ""
  99. }
  100. }
  101. }
  102. },
  103. "responses": {
  104. "200": {
  105. "description": "",
  106. "content": {
  107. "application/json": {
  108. "schema": {
  109. "$ref": "#/components/schemas/R",
  110. "description": "响应信息主体"
  111. },
  112. "example": {
  113. "ok": false,
  114. "code": 0,
  115. "msg": "",
  116. "data": {}
  117. }
  118. }
  119. },
  120. "headers": {}
  121. }
  122. },
  123. "security": [
  124. {
  125. "bearer": []
  126. }
  127. ]
  128. }
  129. }
  130. },
  131. "components": {
  132. "schemas": {
  133. "RString": {
  134. "type": "object",
  135. "properties": {
  136. "code": {
  137. "type": "integer",
  138. "description": "返回标记:成功标记=0,失败标记=1"
  139. },
  140. "msg": {
  141. "type": "string",
  142. "description": "返回信息"
  143. },
  144. "data": {
  145. "type": "string",
  146. "description": "数据"
  147. }
  148. }
  149. },
  150. "EditMerchantSafeRO": {
  151. "type": "object",
  152. "properties": {
  153. "whitelist": {
  154. "type": "string",
  155. "description": "白名单"
  156. },
  157. "secondaryPwd": {
  158. "type": "string",
  159. "description": "二级密码"
  160. },
  161. "oldSecondaryPwd": {
  162. "type": "string",
  163. "description": "旧二级密码"
  164. }
  165. }
  166. },
  167. "R": {
  168. "type": "object",
  169. "properties": {
  170. "ok": {
  171. "type": "boolean"
  172. },
  173. "code": {
  174. "type": "integer",
  175. "description": "返回标记:成功标记=0,失败标记=1"
  176. },
  177. "msg": {
  178. "type": "string",
  179. "description": "返回信息"
  180. },
  181. "data": {
  182. "type": "object",
  183. "properties": {},
  184. "description": "数据"
  185. }
  186. }
  187. }
  188. },
  189. "securitySchemes": {
  190. "bearer": {
  191. "type": "http",
  192. "scheme": "bearer"
  193. }
  194. }
  195. },
  196. "servers": [],
  197. "security": []
  198. }