swagger.yaml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. /Account/TokenCheck:
  122. get:
  123. consumes:
  124. - application/json
  125. produces:
  126. - application/json
  127. responses:
  128. "200":
  129. description: 操作成功
  130. schema:
  131. allOf:
  132. - $ref: '#/definitions/response.Response'
  133. - properties:
  134. msg:
  135. type: string
  136. type: object
  137. security:
  138. - ApiKeyAuth: []
  139. summary: Token校验
  140. tags:
  141. - 账户服务
  142. /MQ/SendMsgToMQ:
  143. post:
  144. consumes:
  145. - application/json
  146. parameters:
  147. - description: 入参
  148. in: body
  149. name: data
  150. required: true
  151. schema:
  152. $ref: '#/definitions/request.MQBodyReq'
  153. produces:
  154. - application/json
  155. responses:
  156. "200":
  157. description: 出参
  158. schema:
  159. allOf:
  160. - $ref: '#/definitions/response.Response'
  161. - properties:
  162. data:
  163. $ref: '#/definitions/response.MQBodyRsp'
  164. msg:
  165. type: string
  166. type: object
  167. security:
  168. - ApiKeyAuth: []
  169. summary: 总线业务
  170. tags:
  171. - 总线业务
  172. /MQ/SendNtfToMQ:
  173. post:
  174. consumes:
  175. - application/json
  176. parameters:
  177. - description: 入参
  178. in: body
  179. name: data
  180. required: true
  181. schema:
  182. $ref: '#/definitions/request.MQNtfReq'
  183. produces:
  184. - application/json
  185. responses:
  186. "200":
  187. description: 出参
  188. schema:
  189. allOf:
  190. - $ref: '#/definitions/response.Response'
  191. - properties:
  192. msg:
  193. type: string
  194. type: object
  195. summary: 总线通知
  196. tags:
  197. - 总线业务
  198. securityDefinitions:
  199. ApiKeyAuth:
  200. in: header
  201. name: x-token
  202. type: apiKey
  203. swagger: "2.0"