docs.go 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. // Package docs GENERATED BY SWAG; DO NOT EDIT
  2. // This file was generated by swaggo/swag
  3. package docs
  4. import "github.com/swaggo/swag"
  5. const docTemplate = `{
  6. "schemes": {{ marshal .Schemes }},
  7. "swagger": "2.0",
  8. "info": {
  9. "description": "{{escape .Description}}",
  10. "title": "{{.Title}}",
  11. "contact": {},
  12. "version": "{{.Version}}"
  13. },
  14. "host": "{{.Host}}",
  15. "basePath": "{{.BasePath}}",
  16. "paths": {
  17. "/Account/Login": {
  18. "post": {
  19. "consumes": [
  20. "application/json"
  21. ],
  22. "produces": [
  23. "application/json"
  24. ],
  25. "tags": [
  26. "账户服务"
  27. ],
  28. "summary": "账户登录",
  29. "parameters": [
  30. {
  31. "description": "登录入参",
  32. "name": "data",
  33. "in": "body",
  34. "required": true,
  35. "schema": {
  36. "$ref": "#/definitions/request.LoginReq"
  37. }
  38. }
  39. ],
  40. "responses": {
  41. "200": {
  42. "description": "返回包括用户信息,token,过期时间",
  43. "schema": {
  44. "allOf": [
  45. {
  46. "$ref": "#/definitions/response.Response"
  47. },
  48. {
  49. "type": "object",
  50. "properties": {
  51. "data": {
  52. "$ref": "#/definitions/response.LoginRsp"
  53. },
  54. "msg": {
  55. "type": "string"
  56. }
  57. }
  58. }
  59. ]
  60. }
  61. }
  62. }
  63. }
  64. },
  65. "/MQ/SendMsgToMQ": {
  66. "post": {
  67. "security": [
  68. {
  69. "ApiKeyAuth": []
  70. }
  71. ],
  72. "consumes": [
  73. "application/json"
  74. ],
  75. "produces": [
  76. "application/json"
  77. ],
  78. "tags": [
  79. "总线业务"
  80. ],
  81. "summary": "总线业务",
  82. "parameters": [
  83. {
  84. "description": "入参",
  85. "name": "data",
  86. "in": "body",
  87. "required": true,
  88. "schema": {
  89. "$ref": "#/definitions/request.MQBodyReq"
  90. }
  91. }
  92. ],
  93. "responses": {
  94. "200": {
  95. "description": "出参",
  96. "schema": {
  97. "allOf": [
  98. {
  99. "$ref": "#/definitions/response.Response"
  100. },
  101. {
  102. "type": "object",
  103. "properties": {
  104. "data": {
  105. "$ref": "#/definitions/response.MQBodyRsp"
  106. },
  107. "msg": {
  108. "type": "string"
  109. }
  110. }
  111. }
  112. ]
  113. }
  114. }
  115. }
  116. }
  117. }
  118. },
  119. "definitions": {
  120. "request.LoginReq": {
  121. "type": "object",
  122. "required": [
  123. "clientType",
  124. "password",
  125. "userName"
  126. ],
  127. "properties": {
  128. "clientType": {
  129. "description": "客户端类型,2-PC交易端 3-手机客户端_安卓 4-网页客户端 5-微信客户端 6-手机客户端_苹果",
  130. "type": "integer"
  131. },
  132. "password": {
  133. "description": "密码",
  134. "type": "string"
  135. },
  136. "userName": {
  137. "description": "用户名,可以是LoginID/LoginCode/手机号码",
  138. "type": "string"
  139. }
  140. }
  141. },
  142. "request.MQBodyReq": {
  143. "type": "object",
  144. "required": [
  145. "data",
  146. "funCodeReq",
  147. "isEncrypted"
  148. ],
  149. "properties": {
  150. "data": {
  151. "description": "请求数据",
  152. "type": "string"
  153. },
  154. "funCodeReq": {
  155. "description": "请求功能码",
  156. "type": "integer"
  157. },
  158. "funCodeRsp": {
  159. "description": "回复功能码",
  160. "type": "integer"
  161. },
  162. "isEncrypted": {
  163. "description": "是否加密",
  164. "type": "boolean"
  165. }
  166. }
  167. },
  168. "response.LoginRsp": {
  169. "type": "object",
  170. "properties": {
  171. "expiresAt": {
  172. "description": "过期时间",
  173. "type": "integer"
  174. },
  175. "loginId": {
  176. "description": "登录ID",
  177. "type": "integer"
  178. },
  179. "token": {
  180. "description": "新服务Token",
  181. "type": "string"
  182. },
  183. "userId": {
  184. "description": "用户ID",
  185. "type": "integer"
  186. }
  187. }
  188. },
  189. "response.MQBodyRsp": {
  190. "type": "object",
  191. "properties": {
  192. "data": {
  193. "description": "请求数据",
  194. "type": "string"
  195. },
  196. "funcode": {
  197. "description": "回复功能码",
  198. "type": "integer"
  199. },
  200. "isEncrypted": {
  201. "description": "是否加密",
  202. "type": "boolean"
  203. }
  204. }
  205. },
  206. "response.Response": {
  207. "type": "object",
  208. "properties": {
  209. "code": {
  210. "type": "integer"
  211. },
  212. "data": {},
  213. "msg": {
  214. "type": "string"
  215. }
  216. }
  217. }
  218. },
  219. "securityDefinitions": {
  220. "ApiKeyAuth": {
  221. "type": "apiKey",
  222. "name": "x-token",
  223. "in": "header"
  224. }
  225. }
  226. }`
  227. // SwaggerInfo holds exported Swagger Info so clients can modify it
  228. var SwaggerInfo = &swag.Spec{
  229. Version: "0.0.1",
  230. Host: "",
  231. BasePath: "",
  232. Schemes: []string{},
  233. Title: "Swagger Example API",
  234. Description: "新接入服务",
  235. InfoInstanceName: "swagger",
  236. SwaggerTemplate: docTemplate,
  237. }
  238. func init() {
  239. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  240. }