swagger.yaml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. definitions:
  2. request.LoginReq:
  3. properties:
  4. clientType:
  5. description: 客户端类型,2-PC交易端 3-手机客户端_安卓 4-网页客户端 5-微信客户端 6-手机客户端_苹果
  6. type: integer
  7. password:
  8. description: 密码
  9. type: string
  10. userName:
  11. description: 用户名,可以是LoginID/LoginCode/手机号码
  12. type: string
  13. required:
  14. - clientType
  15. - password
  16. - userName
  17. type: object
  18. request.MQBodyReq:
  19. properties:
  20. data:
  21. description: 请求数据
  22. type: string
  23. funCodeReq:
  24. description: 请求功能码
  25. type: integer
  26. funCodeRsp:
  27. description: 回复功能码
  28. type: integer
  29. isEncrypted:
  30. description: 是否加密
  31. type: boolean
  32. required:
  33. - data
  34. - funCodeReq
  35. - isEncrypted
  36. type: object
  37. request.MQNtfReq:
  38. properties:
  39. data:
  40. description: 数据
  41. type: string
  42. funCode:
  43. description: 功能码
  44. type: integer
  45. topic:
  46. description: 主题
  47. type: string
  48. required:
  49. - data
  50. - funCode
  51. type: object
  52. response.LoginRsp:
  53. properties:
  54. expiresAt:
  55. description: 过期时间
  56. type: integer
  57. loginId:
  58. description: 登录ID
  59. type: integer
  60. token:
  61. description: 新服务Token
  62. type: string
  63. userId:
  64. description: 用户ID
  65. type: integer
  66. type: object
  67. response.MQBodyRsp:
  68. properties:
  69. data:
  70. description: 请求数据
  71. type: string
  72. funcode:
  73. description: 回复功能码
  74. type: integer
  75. isEncrypted:
  76. description: 是否加密
  77. type: boolean
  78. type: object
  79. response.Response:
  80. properties:
  81. code:
  82. type: integer
  83. data: {}
  84. msg:
  85. type: string
  86. type: object
  87. info:
  88. contact: {}
  89. description: 新接入服务
  90. title: Swagger Example API
  91. version: 0.0.1
  92. paths:
  93. /Account/Login:
  94. post:
  95. consumes:
  96. - application/json
  97. parameters:
  98. - description: 登录入参
  99. in: body
  100. name: data
  101. required: true
  102. schema:
  103. $ref: '#/definitions/request.LoginReq'
  104. produces:
  105. - application/json
  106. responses:
  107. "200":
  108. description: 返回包括用户信息,token,过期时间
  109. schema:
  110. allOf:
  111. - $ref: '#/definitions/response.Response'
  112. - properties:
  113. data:
  114. $ref: '#/definitions/response.LoginRsp'
  115. msg:
  116. type: string
  117. type: object
  118. summary: 账户登录
  119. tags:
  120. - 账户服务
  121. /MQ/SendMsgToMQ:
  122. post:
  123. consumes:
  124. - application/json
  125. parameters:
  126. - description: 入参
  127. in: body
  128. name: data
  129. required: true
  130. schema:
  131. $ref: '#/definitions/request.MQBodyReq'
  132. produces:
  133. - application/json
  134. responses:
  135. "200":
  136. description: 出参
  137. schema:
  138. allOf:
  139. - $ref: '#/definitions/response.Response'
  140. - properties:
  141. data:
  142. $ref: '#/definitions/response.MQBodyRsp'
  143. msg:
  144. type: string
  145. type: object
  146. security:
  147. - ApiKeyAuth: []
  148. summary: 总线业务
  149. tags:
  150. - 总线业务
  151. /MQ/SendNtfToMQ:
  152. post:
  153. consumes:
  154. - application/json
  155. parameters:
  156. - description: 入参
  157. in: body
  158. name: data
  159. required: true
  160. schema:
  161. $ref: '#/definitions/request.MQNtfReq'
  162. produces:
  163. - application/json
  164. responses:
  165. "200":
  166. description: 出参
  167. schema:
  168. allOf:
  169. - $ref: '#/definitions/response.Response'
  170. - properties:
  171. msg:
  172. type: string
  173. type: object
  174. summary: 总线通知
  175. tags:
  176. - 总线业务
  177. securityDefinitions:
  178. ApiKeyAuth:
  179. in: header
  180. name: x-token
  181. type: apiKey
  182. swagger: "2.0"