swagger.yaml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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/Loginout:
  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: 用户登出请求
  157. tags:
  158. - 账户服务
  159. /Account/TokenCheck:
  160. get:
  161. consumes:
  162. - application/json
  163. produces:
  164. - application/json
  165. responses:
  166. "200":
  167. description: 操作成功
  168. schema:
  169. allOf:
  170. - $ref: '#/definitions/response.Response'
  171. - properties:
  172. msg:
  173. type: string
  174. type: object
  175. security:
  176. - ApiKeyAuth: []
  177. summary: Token校验
  178. tags:
  179. - 账户服务
  180. /MQ/SendMsgToMQ:
  181. post:
  182. consumes:
  183. - application/json
  184. parameters:
  185. - description: 入参
  186. in: body
  187. name: data
  188. required: true
  189. schema:
  190. $ref: '#/definitions/request.MQBodyReq'
  191. produces:
  192. - application/json
  193. responses:
  194. "200":
  195. description: 出参
  196. schema:
  197. allOf:
  198. - $ref: '#/definitions/response.Response'
  199. - properties:
  200. data:
  201. $ref: '#/definitions/response.MQBodyRsp'
  202. msg:
  203. type: string
  204. type: object
  205. security:
  206. - ApiKeyAuth: []
  207. summary: 总线业务
  208. tags:
  209. - 总线业务
  210. /MQ/SendNtfToMQ:
  211. post:
  212. consumes:
  213. - application/json
  214. parameters:
  215. - description: 入参
  216. in: body
  217. name: data
  218. required: true
  219. schema:
  220. $ref: '#/definitions/request.MQNtfReq'
  221. produces:
  222. - application/json
  223. responses:
  224. "200":
  225. description: 出参
  226. schema:
  227. allOf:
  228. - $ref: '#/definitions/response.Response'
  229. - properties:
  230. msg:
  231. type: string
  232. type: object
  233. summary: 总线通知
  234. tags:
  235. - 总线业务
  236. /Quote/QuoteSubscribe:
  237. post:
  238. consumes:
  239. - application/json
  240. parameters:
  241. - description: 入参1
  242. in: body
  243. name: data
  244. required: true
  245. schema:
  246. $ref: '#/definitions/request.QuoteSubscribeReq'
  247. produces:
  248. - application/json
  249. responses:
  250. "200":
  251. description: 出参
  252. schema:
  253. allOf:
  254. - $ref: '#/definitions/response.Response'
  255. - properties:
  256. msg:
  257. type: string
  258. type: object
  259. security:
  260. - ApiKeyAuth: []
  261. summary: 订阅商品实时行情请求
  262. tags:
  263. - 实时行情
  264. securityDefinitions:
  265. ApiKeyAuth:
  266. in: header
  267. name: x-token
  268. type: apiKey
  269. swagger: "2.0"