swagger.yaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. response.LoginRsp:
  38. properties:
  39. expiresAt:
  40. description: 过期时间
  41. type: integer
  42. loginId:
  43. description: 登录ID
  44. type: integer
  45. token:
  46. description: 新服务Token
  47. type: string
  48. userId:
  49. description: 用户ID
  50. type: integer
  51. type: object
  52. response.MQBodyRsp:
  53. properties:
  54. data:
  55. description: 请求数据
  56. type: string
  57. funcode:
  58. description: 回复功能码
  59. type: integer
  60. isEncrypted:
  61. description: 是否加密
  62. type: boolean
  63. type: object
  64. response.Response:
  65. properties:
  66. code:
  67. type: integer
  68. data: {}
  69. msg:
  70. type: string
  71. type: object
  72. info:
  73. contact: {}
  74. description: 新接入服务
  75. title: Swagger Example API
  76. version: 0.0.1
  77. paths:
  78. /Account/Login:
  79. post:
  80. consumes:
  81. - application/json
  82. parameters:
  83. - description: 登录入参
  84. in: body
  85. name: data
  86. required: true
  87. schema:
  88. $ref: '#/definitions/request.LoginReq'
  89. produces:
  90. - application/json
  91. responses:
  92. "200":
  93. description: 返回包括用户信息,token,过期时间
  94. schema:
  95. allOf:
  96. - $ref: '#/definitions/response.Response'
  97. - properties:
  98. data:
  99. $ref: '#/definitions/response.LoginRsp'
  100. msg:
  101. type: string
  102. type: object
  103. summary: 账户登录
  104. tags:
  105. - 账户服务
  106. /MQ/SendMsgToMQ:
  107. post:
  108. consumes:
  109. - application/json
  110. parameters:
  111. - description: 入参
  112. in: body
  113. name: data
  114. required: true
  115. schema:
  116. $ref: '#/definitions/request.MQBodyReq'
  117. produces:
  118. - application/json
  119. responses:
  120. "200":
  121. description: 出参
  122. schema:
  123. allOf:
  124. - $ref: '#/definitions/response.Response'
  125. - properties:
  126. data:
  127. $ref: '#/definitions/response.MQBodyRsp'
  128. msg:
  129. type: string
  130. type: object
  131. security:
  132. - ApiKeyAuth: []
  133. summary: 总线业务
  134. tags:
  135. - 总线业务
  136. securityDefinitions:
  137. ApiKeyAuth:
  138. in: header
  139. name: x-token
  140. type: apiKey
  141. swagger: "2.0"