docs.go 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  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. "/MQ/SendNtfToMQ": {
  119. "post": {
  120. "consumes": [
  121. "application/json"
  122. ],
  123. "produces": [
  124. "application/json"
  125. ],
  126. "tags": [
  127. "总线业务"
  128. ],
  129. "summary": "总线通知",
  130. "parameters": [
  131. {
  132. "description": "入参",
  133. "name": "data",
  134. "in": "body",
  135. "required": true,
  136. "schema": {
  137. "$ref": "#/definitions/request.MQNtfReq"
  138. }
  139. }
  140. ],
  141. "responses": {
  142. "200": {
  143. "description": "出参",
  144. "schema": {
  145. "allOf": [
  146. {
  147. "$ref": "#/definitions/response.Response"
  148. },
  149. {
  150. "type": "object",
  151. "properties": {
  152. "msg": {
  153. "type": "string"
  154. }
  155. }
  156. }
  157. ]
  158. }
  159. }
  160. }
  161. }
  162. }
  163. },
  164. "definitions": {
  165. "request.LoginReq": {
  166. "type": "object",
  167. "required": [
  168. "clientType",
  169. "password",
  170. "userName"
  171. ],
  172. "properties": {
  173. "clientType": {
  174. "description": "客户端类型,2-PC交易端 3-手机客户端_安卓 4-网页客户端 5-微信客户端 6-手机客户端_苹果",
  175. "type": "integer"
  176. },
  177. "password": {
  178. "description": "密码",
  179. "type": "string"
  180. },
  181. "userName": {
  182. "description": "用户名,可以是LoginID/LoginCode/手机号码",
  183. "type": "string"
  184. }
  185. }
  186. },
  187. "request.MQBodyReq": {
  188. "type": "object",
  189. "required": [
  190. "data",
  191. "funCodeReq",
  192. "isEncrypted"
  193. ],
  194. "properties": {
  195. "data": {
  196. "description": "请求数据",
  197. "type": "string"
  198. },
  199. "funCodeReq": {
  200. "description": "请求功能码",
  201. "type": "integer"
  202. },
  203. "funCodeRsp": {
  204. "description": "回复功能码",
  205. "type": "integer"
  206. },
  207. "isEncrypted": {
  208. "description": "是否加密",
  209. "type": "boolean"
  210. }
  211. }
  212. },
  213. "request.MQNtfReq": {
  214. "type": "object",
  215. "required": [
  216. "data",
  217. "funCode"
  218. ],
  219. "properties": {
  220. "data": {
  221. "description": "数据",
  222. "type": "string"
  223. },
  224. "funCode": {
  225. "description": "功能码",
  226. "type": "integer"
  227. },
  228. "topic": {
  229. "description": "主题",
  230. "type": "string"
  231. }
  232. }
  233. },
  234. "response.LoginRsp": {
  235. "type": "object",
  236. "properties": {
  237. "expiresAt": {
  238. "description": "过期时间",
  239. "type": "integer"
  240. },
  241. "loginId": {
  242. "description": "登录ID",
  243. "type": "integer"
  244. },
  245. "token": {
  246. "description": "新服务Token",
  247. "type": "string"
  248. },
  249. "userId": {
  250. "description": "用户ID",
  251. "type": "integer"
  252. }
  253. }
  254. },
  255. "response.MQBodyRsp": {
  256. "type": "object",
  257. "properties": {
  258. "data": {
  259. "description": "请求数据",
  260. "type": "string"
  261. },
  262. "funcode": {
  263. "description": "回复功能码",
  264. "type": "integer"
  265. },
  266. "isEncrypted": {
  267. "description": "是否加密",
  268. "type": "boolean"
  269. }
  270. }
  271. },
  272. "response.Response": {
  273. "type": "object",
  274. "properties": {
  275. "code": {
  276. "type": "integer"
  277. },
  278. "data": {},
  279. "msg": {
  280. "type": "string"
  281. }
  282. }
  283. }
  284. },
  285. "securityDefinitions": {
  286. "ApiKeyAuth": {
  287. "type": "apiKey",
  288. "name": "x-token",
  289. "in": "header"
  290. }
  291. }
  292. }`
  293. // SwaggerInfo holds exported Swagger Info so clients can modify it
  294. var SwaggerInfo = &swag.Spec{
  295. Version: "0.0.1",
  296. Host: "",
  297. BasePath: "",
  298. Schemes: []string{},
  299. Title: "Swagger Example API",
  300. Description: "新接入服务",
  301. InfoInstanceName: "swagger",
  302. SwaggerTemplate: docTemplate,
  303. }
  304. func init() {
  305. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  306. }