docs.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  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/Loginout": {
  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": "用户登出请求",
  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. "/Account/TokenCheck": {
  105. "get": {
  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": "Token校验",
  121. "responses": {
  122. "200": {
  123. "description": "操作成功",
  124. "schema": {
  125. "allOf": [
  126. {
  127. "$ref": "#/definitions/response.Response"
  128. },
  129. {
  130. "type": "object",
  131. "properties": {
  132. "msg": {
  133. "type": "string"
  134. }
  135. }
  136. }
  137. ]
  138. }
  139. }
  140. }
  141. }
  142. },
  143. "/MQ/SendMsgToMQ": {
  144. "post": {
  145. "security": [
  146. {
  147. "ApiKeyAuth": []
  148. }
  149. ],
  150. "consumes": [
  151. "application/json"
  152. ],
  153. "produces": [
  154. "application/json"
  155. ],
  156. "tags": [
  157. "总线业务"
  158. ],
  159. "summary": "总线业务",
  160. "parameters": [
  161. {
  162. "description": "入参",
  163. "name": "data",
  164. "in": "body",
  165. "required": true,
  166. "schema": {
  167. "$ref": "#/definitions/request.MQBodyReq"
  168. }
  169. }
  170. ],
  171. "responses": {
  172. "200": {
  173. "description": "出参",
  174. "schema": {
  175. "allOf": [
  176. {
  177. "$ref": "#/definitions/response.Response"
  178. },
  179. {
  180. "type": "object",
  181. "properties": {
  182. "data": {
  183. "$ref": "#/definitions/response.MQBodyRsp"
  184. },
  185. "msg": {
  186. "type": "string"
  187. }
  188. }
  189. }
  190. ]
  191. }
  192. }
  193. }
  194. }
  195. },
  196. "/MQ/SendNtfToMQ": {
  197. "post": {
  198. "consumes": [
  199. "application/json"
  200. ],
  201. "produces": [
  202. "application/json"
  203. ],
  204. "tags": [
  205. "总线业务"
  206. ],
  207. "summary": "总线通知",
  208. "parameters": [
  209. {
  210. "description": "入参",
  211. "name": "data",
  212. "in": "body",
  213. "required": true,
  214. "schema": {
  215. "$ref": "#/definitions/request.MQNtfReq"
  216. }
  217. }
  218. ],
  219. "responses": {
  220. "200": {
  221. "description": "出参",
  222. "schema": {
  223. "allOf": [
  224. {
  225. "$ref": "#/definitions/response.Response"
  226. },
  227. {
  228. "type": "object",
  229. "properties": {
  230. "msg": {
  231. "type": "string"
  232. }
  233. }
  234. }
  235. ]
  236. }
  237. }
  238. }
  239. }
  240. },
  241. "/Quote/QuoteSubscribe": {
  242. "post": {
  243. "security": [
  244. {
  245. "ApiKeyAuth": []
  246. }
  247. ],
  248. "consumes": [
  249. "application/json"
  250. ],
  251. "produces": [
  252. "application/json"
  253. ],
  254. "tags": [
  255. "实时行情"
  256. ],
  257. "summary": "订阅商品实时行情请求",
  258. "parameters": [
  259. {
  260. "description": "入参1",
  261. "name": "data",
  262. "in": "body",
  263. "required": true,
  264. "schema": {
  265. "$ref": "#/definitions/request.QuoteSubscribeReq"
  266. }
  267. }
  268. ],
  269. "responses": {
  270. "200": {
  271. "description": "出参",
  272. "schema": {
  273. "allOf": [
  274. {
  275. "$ref": "#/definitions/response.Response"
  276. },
  277. {
  278. "type": "object",
  279. "properties": {
  280. "msg": {
  281. "type": "string"
  282. }
  283. }
  284. }
  285. ]
  286. }
  287. }
  288. }
  289. }
  290. }
  291. },
  292. "definitions": {
  293. "request.LoginReq": {
  294. "type": "object",
  295. "required": [
  296. "clientType",
  297. "password",
  298. "userName"
  299. ],
  300. "properties": {
  301. "clientType": {
  302. "description": "客户端类型,2-PC交易端 3-手机客户端_安卓 4-网页客户端 5-微信客户端 6-手机客户端_苹果",
  303. "type": "integer"
  304. },
  305. "password": {
  306. "description": "密码",
  307. "type": "string"
  308. },
  309. "userName": {
  310. "description": "用户名,可以是LoginID/LoginCode/手机号码",
  311. "type": "string"
  312. }
  313. }
  314. },
  315. "request.MQBodyReq": {
  316. "type": "object",
  317. "required": [
  318. "data",
  319. "funCodeReq",
  320. "isEncrypted"
  321. ],
  322. "properties": {
  323. "data": {
  324. "description": "请求数据",
  325. "type": "string"
  326. },
  327. "funCodeReq": {
  328. "description": "请求功能码",
  329. "type": "integer"
  330. },
  331. "funCodeRsp": {
  332. "description": "回复功能码",
  333. "type": "integer"
  334. },
  335. "isEncrypted": {
  336. "description": "是否加密",
  337. "type": "boolean"
  338. }
  339. }
  340. },
  341. "request.MQNtfReq": {
  342. "type": "object",
  343. "required": [
  344. "data",
  345. "funCode"
  346. ],
  347. "properties": {
  348. "data": {
  349. "description": "数据",
  350. "type": "string"
  351. },
  352. "funCode": {
  353. "description": "功能码",
  354. "type": "integer"
  355. },
  356. "topic": {
  357. "description": "主题",
  358. "type": "string"
  359. }
  360. }
  361. },
  362. "request.QuoteGoods": {
  363. "type": "object",
  364. "properties": {
  365. "exchangeId": {
  366. "description": "交易所代码,一般写死250",
  367. "type": "integer"
  368. },
  369. "goodsCode": {
  370. "description": "商品代码,全大写",
  371. "type": "string"
  372. }
  373. }
  374. },
  375. "request.QuoteSubscribeReq": {
  376. "type": "object",
  377. "properties": {
  378. "quoteGoodses": {
  379. "description": "待订阅商品信息",
  380. "type": "array",
  381. "items": {
  382. "$ref": "#/definitions/request.QuoteGoods"
  383. }
  384. }
  385. }
  386. },
  387. "response.LoginRsp": {
  388. "type": "object",
  389. "properties": {
  390. "expiresAt": {
  391. "description": "过期时间",
  392. "type": "integer"
  393. },
  394. "loginId": {
  395. "description": "登录ID",
  396. "type": "integer"
  397. },
  398. "token": {
  399. "description": "新服务Token",
  400. "type": "string"
  401. },
  402. "userId": {
  403. "description": "用户ID",
  404. "type": "integer"
  405. }
  406. }
  407. },
  408. "response.MQBodyRsp": {
  409. "type": "object",
  410. "properties": {
  411. "data": {
  412. "description": "请求数据",
  413. "type": "string"
  414. },
  415. "funcode": {
  416. "description": "回复功能码",
  417. "type": "integer"
  418. },
  419. "isEncrypted": {
  420. "description": "是否加密",
  421. "type": "boolean"
  422. }
  423. }
  424. },
  425. "response.Response": {
  426. "type": "object",
  427. "properties": {
  428. "code": {
  429. "type": "integer"
  430. },
  431. "data": {},
  432. "msg": {
  433. "type": "string"
  434. }
  435. }
  436. }
  437. },
  438. "securityDefinitions": {
  439. "ApiKeyAuth": {
  440. "type": "apiKey",
  441. "name": "x-token",
  442. "in": "header"
  443. }
  444. }
  445. }`
  446. // SwaggerInfo holds exported Swagger Info so clients can modify it
  447. var SwaggerInfo = &swag.Spec{
  448. Version: "0.0.1",
  449. Host: "",
  450. BasePath: "",
  451. Schemes: []string{},
  452. Title: "Swagger Example API",
  453. Description: "新接入服务",
  454. InfoInstanceName: "swagger",
  455. SwaggerTemplate: docTemplate,
  456. }
  457. func init() {
  458. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  459. }