swagger.yaml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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. request.QuoteGoods:
  53. properties:
  54. exchangeId:
  55. description: 交易所代码,一般写死250
  56. type: integer
  57. goodsCode:
  58. description: 商品代码,全大写
  59. type: string
  60. type: object
  61. request.QuoteSubscribeReq:
  62. properties:
  63. quoteGoodses:
  64. description: 待订阅商品信息
  65. items:
  66. $ref: '#/definitions/request.QuoteGoods'
  67. type: array
  68. type: object
  69. response.LoginRsp:
  70. properties:
  71. expiresAt:
  72. description: 过期时间
  73. type: integer
  74. loginId:
  75. description: 登录ID
  76. type: integer
  77. token:
  78. description: 新服务Token
  79. type: string
  80. userId:
  81. description: 用户ID
  82. type: integer
  83. type: object
  84. response.MQBodyRsp:
  85. properties:
  86. data:
  87. description: 请求数据
  88. type: string
  89. funcode:
  90. description: 回复功能码
  91. type: integer
  92. isEncrypted:
  93. description: 是否加密
  94. type: boolean
  95. type: object
  96. response.Response:
  97. properties:
  98. code:
  99. type: integer
  100. data: {}
  101. msg:
  102. type: string
  103. type: object
  104. info:
  105. contact: {}
  106. description: 新接入服务
  107. title: Swagger Example API
  108. version: 0.0.1
  109. paths:
  110. /Account/Login:
  111. post:
  112. consumes:
  113. - application/json
  114. parameters:
  115. - description: 登录入参
  116. in: body
  117. name: data
  118. required: true
  119. schema:
  120. $ref: '#/definitions/request.LoginReq'
  121. produces:
  122. - application/json
  123. responses:
  124. "200":
  125. description: 返回包括用户信息,token,过期时间
  126. schema:
  127. allOf:
  128. - $ref: '#/definitions/response.Response'
  129. - properties:
  130. data:
  131. $ref: '#/definitions/response.LoginRsp'
  132. msg:
  133. type: string
  134. type: object
  135. summary: 账户登录
  136. tags:
  137. - 账户服务
  138. /Account/TokenCheck:
  139. get:
  140. consumes:
  141. - application/json
  142. produces:
  143. - application/json
  144. responses:
  145. "200":
  146. description: 操作成功
  147. schema:
  148. allOf:
  149. - $ref: '#/definitions/response.Response'
  150. - properties:
  151. msg:
  152. type: string
  153. type: object
  154. security:
  155. - ApiKeyAuth: []
  156. summary: Token校验
  157. tags:
  158. - 账户服务
  159. /MQ/SendMsgToMQ:
  160. post:
  161. consumes:
  162. - application/json
  163. parameters:
  164. - description: 入参
  165. in: body
  166. name: data
  167. required: true
  168. schema:
  169. $ref: '#/definitions/request.MQBodyReq'
  170. produces:
  171. - application/json
  172. responses:
  173. "200":
  174. description: 出参
  175. schema:
  176. allOf:
  177. - $ref: '#/definitions/response.Response'
  178. - properties:
  179. data:
  180. $ref: '#/definitions/response.MQBodyRsp'
  181. msg:
  182. type: string
  183. type: object
  184. security:
  185. - ApiKeyAuth: []
  186. summary: 总线业务
  187. tags:
  188. - 总线业务
  189. /MQ/SendNtfToMQ:
  190. post:
  191. consumes:
  192. - application/json
  193. parameters:
  194. - description: 入参
  195. in: body
  196. name: data
  197. required: true
  198. schema:
  199. $ref: '#/definitions/request.MQNtfReq'
  200. produces:
  201. - application/json
  202. responses:
  203. "200":
  204. description: 出参
  205. schema:
  206. allOf:
  207. - $ref: '#/definitions/response.Response'
  208. - properties:
  209. msg:
  210. type: string
  211. type: object
  212. summary: 总线通知
  213. tags:
  214. - 总线业务
  215. /Quote/QuoteSubscribe:
  216. post:
  217. consumes:
  218. - application/json
  219. parameters:
  220. - description: 入参1
  221. in: body
  222. name: data
  223. required: true
  224. schema:
  225. $ref: '#/definitions/request.QuoteSubscribeReq'
  226. produces:
  227. - application/json
  228. responses:
  229. "200":
  230. description: 出参
  231. schema:
  232. allOf:
  233. - $ref: '#/definitions/response.Response'
  234. - properties:
  235. msg:
  236. type: string
  237. type: object
  238. security:
  239. - ApiKeyAuth: []
  240. summary: 实时行情
  241. tags:
  242. - 实时行情
  243. securityDefinitions:
  244. ApiKeyAuth:
  245. in: header
  246. name: x-token
  247. type: apiKey
  248. swagger: "2.0"