docs.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  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. "/Quote/QuoteSubscribe": {
  203. "post": {
  204. "security": [
  205. {
  206. "ApiKeyAuth": []
  207. }
  208. ],
  209. "consumes": [
  210. "application/json"
  211. ],
  212. "produces": [
  213. "application/json"
  214. ],
  215. "tags": [
  216. "实时行情"
  217. ],
  218. "summary": "实时行情",
  219. "parameters": [
  220. {
  221. "description": "入参",
  222. "name": "data",
  223. "in": "body",
  224. "required": true,
  225. "schema": {
  226. "type": "array",
  227. "items": {
  228. "$ref": "#/definitions/request.QuoteSubscribeReq"
  229. }
  230. }
  231. }
  232. ],
  233. "responses": {
  234. "200": {
  235. "description": "出参",
  236. "schema": {
  237. "allOf": [
  238. {
  239. "$ref": "#/definitions/response.Response"
  240. },
  241. {
  242. "type": "object",
  243. "properties": {
  244. "msg": {
  245. "type": "string"
  246. }
  247. }
  248. }
  249. ]
  250. }
  251. }
  252. }
  253. }
  254. }
  255. },
  256. "definitions": {
  257. "request.LoginReq": {
  258. "type": "object",
  259. "required": [
  260. "clientType",
  261. "password",
  262. "userName"
  263. ],
  264. "properties": {
  265. "clientType": {
  266. "description": "客户端类型,2-PC交易端 3-手机客户端_安卓 4-网页客户端 5-微信客户端 6-手机客户端_苹果",
  267. "type": "integer"
  268. },
  269. "password": {
  270. "description": "密码",
  271. "type": "string"
  272. },
  273. "userName": {
  274. "description": "用户名,可以是LoginID/LoginCode/手机号码",
  275. "type": "string"
  276. }
  277. }
  278. },
  279. "request.MQBodyReq": {
  280. "type": "object",
  281. "required": [
  282. "data",
  283. "funCodeReq",
  284. "isEncrypted"
  285. ],
  286. "properties": {
  287. "data": {
  288. "description": "请求数据",
  289. "type": "string"
  290. },
  291. "funCodeReq": {
  292. "description": "请求功能码",
  293. "type": "integer"
  294. },
  295. "funCodeRsp": {
  296. "description": "回复功能码",
  297. "type": "integer"
  298. },
  299. "isEncrypted": {
  300. "description": "是否加密",
  301. "type": "boolean"
  302. }
  303. }
  304. },
  305. "request.MQNtfReq": {
  306. "type": "object",
  307. "required": [
  308. "data",
  309. "funCode"
  310. ],
  311. "properties": {
  312. "data": {
  313. "description": "数据",
  314. "type": "string"
  315. },
  316. "funCode": {
  317. "description": "功能码",
  318. "type": "integer"
  319. },
  320. "topic": {
  321. "description": "主题",
  322. "type": "string"
  323. }
  324. }
  325. },
  326. "request.QuoteGoods": {
  327. "type": "object",
  328. "properties": {
  329. "exchangeId": {
  330. "description": "交易所代码,一般写死250",
  331. "type": "integer"
  332. },
  333. "goodsCode": {
  334. "description": "商品代码,全大写",
  335. "type": "string"
  336. }
  337. }
  338. },
  339. "request.QuoteSubscribeReq": {
  340. "type": "object",
  341. "properties": {
  342. "quoteGoodses": {
  343. "description": "待订阅商品信息",
  344. "type": "array",
  345. "items": {
  346. "$ref": "#/definitions/request.QuoteGoods"
  347. }
  348. }
  349. }
  350. },
  351. "response.LoginRsp": {
  352. "type": "object",
  353. "properties": {
  354. "expiresAt": {
  355. "description": "过期时间",
  356. "type": "integer"
  357. },
  358. "loginId": {
  359. "description": "登录ID",
  360. "type": "integer"
  361. },
  362. "token": {
  363. "description": "新服务Token",
  364. "type": "string"
  365. },
  366. "userId": {
  367. "description": "用户ID",
  368. "type": "integer"
  369. }
  370. }
  371. },
  372. "response.MQBodyRsp": {
  373. "type": "object",
  374. "properties": {
  375. "data": {
  376. "description": "请求数据",
  377. "type": "string"
  378. },
  379. "funcode": {
  380. "description": "回复功能码",
  381. "type": "integer"
  382. },
  383. "isEncrypted": {
  384. "description": "是否加密",
  385. "type": "boolean"
  386. }
  387. }
  388. },
  389. "response.Response": {
  390. "type": "object",
  391. "properties": {
  392. "code": {
  393. "type": "integer"
  394. },
  395. "data": {},
  396. "msg": {
  397. "type": "string"
  398. }
  399. }
  400. }
  401. },
  402. "securityDefinitions": {
  403. "ApiKeyAuth": {
  404. "type": "apiKey",
  405. "name": "x-token",
  406. "in": "header"
  407. }
  408. }
  409. }`
  410. // SwaggerInfo holds exported Swagger Info so clients can modify it
  411. var SwaggerInfo = &swag.Spec{
  412. Version: "0.0.1",
  413. Host: "",
  414. BasePath: "",
  415. Schemes: []string{},
  416. Title: "Swagger Example API",
  417. Description: "新接入服务",
  418. InfoInstanceName: "swagger",
  419. SwaggerTemplate: docTemplate,
  420. }
  421. func init() {
  422. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  423. }