docs.go 13 KB

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