docs.go 11 KB

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