docs.go 84 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398
  1. // GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
  2. // This file was generated by swaggo/swag
  3. package docs
  4. import (
  5. "bytes"
  6. "encoding/json"
  7. "strings"
  8. "github.com/alecthomas/template"
  9. "github.com/swaggo/swag"
  10. )
  11. var doc = `{
  12. "schemes": {{ marshal .Schemes }},
  13. "swagger": "2.0",
  14. "info": {
  15. "description": "{{.Description}}",
  16. "title": "{{.Title}}",
  17. "termsOfService": "http://muchinfo.cn",
  18. "contact": {},
  19. "license": {},
  20. "version": "{{.Version}}"
  21. },
  22. "host": "{{.Host}}",
  23. "basePath": "{{.BasePath}}",
  24. "paths": {
  25. "/CPTrade/QueryCPTradeMyBidInfos": {
  26. "get": {
  27. "security": [
  28. {
  29. "ApiKeyAuth": []
  30. }
  31. ],
  32. "produces": [
  33. "application/json"
  34. ],
  35. "tags": [
  36. "产能预售"
  37. ],
  38. "summary": "查询产能预售我的出价信息",
  39. "parameters": [
  40. {
  41. "type": "integer",
  42. "description": "资金账户",
  43. "name": "accountid",
  44. "in": "query",
  45. "required": true
  46. },
  47. {
  48. "type": "integer",
  49. "description": "预售市场ID",
  50. "name": "marketid",
  51. "in": "query"
  52. },
  53. {
  54. "type": "integer",
  55. "description": "预售商品ID",
  56. "name": "goodsid",
  57. "in": "query"
  58. }
  59. ],
  60. "responses": {
  61. "200": {
  62. "description": "OK",
  63. "schema": {
  64. "$ref": "#/definitions/cptrade.QueryCPTradeMyBidRsp"
  65. }
  66. },
  67. "500": {
  68. "description": "Internal Server Error",
  69. "schema": {
  70. "$ref": "#/definitions/app.Response"
  71. }
  72. }
  73. }
  74. }
  75. },
  76. "/CPTrade/QueryCPTradeOrderDetail": {
  77. "get": {
  78. "security": [
  79. {
  80. "ApiKeyAuth": []
  81. }
  82. ],
  83. "produces": [
  84. "application/json"
  85. ],
  86. "tags": [
  87. "产能预售"
  88. ],
  89. "summary": "查询产能预售委托单信息",
  90. "parameters": [
  91. {
  92. "type": "integer",
  93. "description": "预售商品ID",
  94. "name": "goodsid",
  95. "in": "query"
  96. },
  97. {
  98. "type": "integer",
  99. "description": "预售市场ID",
  100. "name": "marketid",
  101. "in": "query"
  102. },
  103. {
  104. "type": "string",
  105. "description": "预售商品ID列表 - 格式:1,2,3",
  106. "name": "goodsids",
  107. "in": "query"
  108. }
  109. ],
  110. "responses": {
  111. "200": {
  112. "description": "OK",
  113. "schema": {
  114. "$ref": "#/definitions/cptrade.QueryCPTradeOrderDetailRsq"
  115. }
  116. },
  117. "500": {
  118. "description": "Internal Server Error",
  119. "schema": {
  120. "$ref": "#/definitions/app.Response"
  121. }
  122. }
  123. }
  124. }
  125. },
  126. "/CPTrade/QueryMyCPTradeGoods": {
  127. "get": {
  128. "security": [
  129. {
  130. "ApiKeyAuth": []
  131. }
  132. ],
  133. "produces": [
  134. "application/json"
  135. ],
  136. "tags": [
  137. "产能预售"
  138. ],
  139. "summary": "查询我的预售信息",
  140. "parameters": [
  141. {
  142. "type": "integer",
  143. "description": "资金账户",
  144. "name": "accountid",
  145. "in": "query",
  146. "required": true
  147. }
  148. ],
  149. "responses": {
  150. "200": {
  151. "description": "OK",
  152. "schema": {
  153. "$ref": "#/definitions/cptrade.QueryMyCPTradeGoodsRsp"
  154. }
  155. },
  156. "500": {
  157. "description": "Internal Server Error",
  158. "schema": {
  159. "$ref": "#/definitions/app.Response"
  160. }
  161. }
  162. }
  163. }
  164. },
  165. "/CPTrade/QueryPositionCancel": {
  166. "get": {
  167. "security": [
  168. {
  169. "ApiKeyAuth": []
  170. }
  171. ],
  172. "produces": [
  173. "application/json"
  174. ],
  175. "tags": [
  176. "产能预售"
  177. ],
  178. "summary": "查询远期订单注销申请信息",
  179. "parameters": [
  180. {
  181. "type": "integer",
  182. "description": "账户ID",
  183. "name": "userid",
  184. "in": "query",
  185. "required": true
  186. },
  187. {
  188. "type": "integer",
  189. "description": "注销ID",
  190. "name": "cancelid",
  191. "in": "query"
  192. },
  193. {
  194. "type": "integer",
  195. "description": "资金账户ID",
  196. "name": "accountid",
  197. "in": "query"
  198. }
  199. ],
  200. "responses": {
  201. "200": {
  202. "description": "OK",
  203. "schema": {
  204. "$ref": "#/definitions/cptrade.Cptradepositioncancel"
  205. }
  206. },
  207. "500": {
  208. "description": "Internal Server Error",
  209. "schema": {
  210. "$ref": "#/definitions/app.Response"
  211. }
  212. }
  213. }
  214. }
  215. },
  216. "/CPTrade/QueryPreasleApply": {
  217. "get": {
  218. "security": [
  219. {
  220. "ApiKeyAuth": []
  221. }
  222. ],
  223. "produces": [
  224. "application/json"
  225. ],
  226. "tags": [
  227. "产能预售"
  228. ],
  229. "summary": "查询产能预售申请信息",
  230. "parameters": [
  231. {
  232. "type": "integer",
  233. "description": "账户ID",
  234. "name": "userid",
  235. "in": "query",
  236. "required": true
  237. },
  238. {
  239. "type": "integer",
  240. "description": "申请ID",
  241. "name": "applyid",
  242. "in": "query"
  243. },
  244. {
  245. "type": "integer",
  246. "description": "资金账户ID",
  247. "name": "accountid",
  248. "in": "query"
  249. }
  250. ],
  251. "responses": {
  252. "200": {
  253. "description": "OK",
  254. "schema": {
  255. "$ref": "#/definitions/cptrade.Cptradepresaleapply"
  256. }
  257. },
  258. "500": {
  259. "description": "Internal Server Error",
  260. "schema": {
  261. "$ref": "#/definitions/app.Response"
  262. }
  263. }
  264. }
  265. }
  266. },
  267. "/CPTrade/QueryPresaleGoodsEx": {
  268. "get": {
  269. "security": [
  270. {
  271. "ApiKeyAuth": []
  272. }
  273. ],
  274. "produces": [
  275. "application/json"
  276. ],
  277. "tags": [
  278. "产能预售"
  279. ],
  280. "summary": "查询产能预售商品扩展信息",
  281. "parameters": [
  282. {
  283. "type": "integer",
  284. "description": "预售商品ID",
  285. "name": "goodsid",
  286. "in": "query"
  287. },
  288. {
  289. "type": "integer",
  290. "description": "预售市场ID",
  291. "name": "marketid",
  292. "in": "query"
  293. },
  294. {
  295. "type": "integer",
  296. "description": "预售模式 - 1:一口价 2:大宗式竞拍",
  297. "name": "presalemode",
  298. "in": "query"
  299. },
  300. {
  301. "type": "string",
  302. "description": "预售商品ID列表 - 格式:1,2,3",
  303. "name": "goodsids",
  304. "in": "query"
  305. },
  306. {
  307. "type": "string",
  308. "description": "预售商品代码",
  309. "name": "goodscode",
  310. "in": "query"
  311. }
  312. ],
  313. "responses": {
  314. "200": {
  315. "description": "OK",
  316. "schema": {
  317. "$ref": "#/definitions/cptrade.QueryPresaleGoodsExRsp"
  318. }
  319. },
  320. "500": {
  321. "description": "Internal Server Error",
  322. "schema": {
  323. "$ref": "#/definitions/app.Response"
  324. }
  325. }
  326. }
  327. }
  328. },
  329. "/CPTrade/QueryUserGoodsData": {
  330. "get": {
  331. "security": [
  332. {
  333. "ApiKeyAuth": []
  334. }
  335. ],
  336. "produces": [
  337. "application/json"
  338. ],
  339. "tags": [
  340. "产能预售"
  341. ],
  342. "summary": "查询远期订单信息",
  343. "parameters": [
  344. {
  345. "type": "integer",
  346. "description": "资金账户ID",
  347. "name": "accountid",
  348. "in": "query",
  349. "required": true
  350. }
  351. ],
  352. "responses": {
  353. "200": {
  354. "description": "OK",
  355. "schema": {
  356. "$ref": "#/definitions/cptrade.Cptradeusergoodsdata"
  357. }
  358. },
  359. "500": {
  360. "description": "Internal Server Error",
  361. "schema": {
  362. "$ref": "#/definitions/app.Response"
  363. }
  364. }
  365. }
  366. }
  367. },
  368. "/Common/QueryTableColumnConfig": {
  369. "get": {
  370. "security": [
  371. {
  372. "ApiKeyAuth": []
  373. }
  374. ],
  375. "produces": [
  376. "application/json"
  377. ],
  378. "tags": [
  379. "通用"
  380. ],
  381. "summary": "查询交易端列表头信息",
  382. "parameters": [
  383. {
  384. "type": "string",
  385. "description": "表key",
  386. "name": "TableKey",
  387. "in": "query"
  388. }
  389. ],
  390. "responses": {
  391. "200": {
  392. "description": "OK",
  393. "schema": {
  394. "$ref": "#/definitions/models.Tablecolumnconfig"
  395. }
  396. },
  397. "500": {
  398. "description": "Internal Server Error",
  399. "schema": {
  400. "$ref": "#/definitions/app.Response"
  401. }
  402. }
  403. }
  404. }
  405. },
  406. "/Common/QueryTraderMenu": {
  407. "get": {
  408. "security": [
  409. {
  410. "ApiKeyAuth": []
  411. }
  412. ],
  413. "produces": [
  414. "application/json"
  415. ],
  416. "tags": [
  417. "通用"
  418. ],
  419. "summary": "查询交易端菜单",
  420. "parameters": [
  421. {
  422. "type": "integer",
  423. "description": "登录账号",
  424. "name": "loginid",
  425. "in": "query",
  426. "required": true
  427. }
  428. ],
  429. "responses": {
  430. "200": {
  431. "description": "OK",
  432. "schema": {
  433. "$ref": "#/definitions/common.QueryTraderMenuRsp"
  434. }
  435. },
  436. "500": {
  437. "description": "Internal Server Error",
  438. "schema": {
  439. "$ref": "#/definitions/app.Response"
  440. }
  441. }
  442. }
  443. }
  444. },
  445. "/Delivery/QueryDeliveryRelation": {
  446. "get": {
  447. "security": [
  448. {
  449. "ApiKeyAuth": []
  450. }
  451. ],
  452. "produces": [
  453. "application/json"
  454. ],
  455. "tags": [
  456. "交割服务"
  457. ],
  458. "summary": "查询商品交割关系表",
  459. "parameters": [
  460. {
  461. "type": "integer",
  462. "description": "商品ID",
  463. "name": "goodsid",
  464. "in": "query"
  465. },
  466. {
  467. "type": "integer",
  468. "description": "品种ID",
  469. "name": "deliverygoodsid",
  470. "in": "query"
  471. },
  472. {
  473. "type": "integer",
  474. "description": "市场ID",
  475. "name": "marketid",
  476. "in": "query"
  477. }
  478. ],
  479. "responses": {
  480. "200": {
  481. "description": "OK",
  482. "schema": {
  483. "$ref": "#/definitions/delivery.QueryDeliveryRelationRsp"
  484. }
  485. },
  486. "500": {
  487. "description": "Internal Server Error",
  488. "schema": {
  489. "$ref": "#/definitions/app.Response"
  490. }
  491. }
  492. }
  493. }
  494. },
  495. "/Erms2/QueryArbitrageStrategy": {
  496. "get": {
  497. "security": [
  498. {
  499. "ApiKeyAuth": []
  500. }
  501. ],
  502. "produces": [
  503. "application/json"
  504. ],
  505. "tags": [
  506. "风险管理"
  507. ],
  508. "summary": "查询期现套利策略表信息(指定资金账户、未结束的)",
  509. "parameters": [
  510. {
  511. "type": "integer",
  512. "description": "账户ID",
  513. "name": "userid",
  514. "in": "query",
  515. "required": true
  516. },
  517. {
  518. "type": "string",
  519. "description": "商品组ID(品种ID)",
  520. "name": "goodsgroupid",
  521. "in": "query"
  522. }
  523. ],
  524. "responses": {
  525. "200": {
  526. "description": "OK",
  527. "schema": {
  528. "$ref": "#/definitions/erms2.QueryArbitrageStrategyRsp"
  529. }
  530. },
  531. "500": {
  532. "description": "Internal Server Error",
  533. "schema": {
  534. "$ref": "#/definitions/app.Response"
  535. }
  536. }
  537. }
  538. }
  539. },
  540. "/Erms2/QueryInnerTradeDetail": {
  541. "get": {
  542. "security": [
  543. {
  544. "ApiKeyAuth": []
  545. }
  546. ],
  547. "produces": [
  548. "application/json"
  549. ],
  550. "tags": [
  551. "风险管理"
  552. ],
  553. "summary": "查询内部成交单信息",
  554. "parameters": [
  555. {
  556. "type": "integer",
  557. "description": "资金账户",
  558. "name": "accountid",
  559. "in": "query",
  560. "required": true
  561. }
  562. ],
  563. "responses": {
  564. "200": {
  565. "description": "OK",
  566. "schema": {
  567. "$ref": "#/definitions/erms2.QueryInnerTradeDetailRsp"
  568. }
  569. },
  570. "500": {
  571. "description": "Internal Server Error",
  572. "schema": {
  573. "$ref": "#/definitions/app.Response"
  574. }
  575. }
  576. }
  577. }
  578. },
  579. "/Erms2/QuerySpotContract": {
  580. "get": {
  581. "security": [
  582. {
  583. "ApiKeyAuth": []
  584. }
  585. ],
  586. "produces": [
  587. "application/json"
  588. ],
  589. "tags": [
  590. "风险管理"
  591. ],
  592. "summary": "查询现货合同表信息(指定策略ID、未结束的)",
  593. "parameters": [
  594. {
  595. "type": "integer",
  596. "description": "策略申请ID",
  597. "name": "asapplyid",
  598. "in": "query",
  599. "required": true
  600. },
  601. {
  602. "type": "integer",
  603. "description": "现货合同ID",
  604. "name": "spotcontractid",
  605. "in": "query"
  606. }
  607. ],
  608. "responses": {
  609. "200": {
  610. "description": "OK",
  611. "schema": {
  612. "$ref": "#/definitions/erms2.QuerySpotContractRsp"
  613. }
  614. },
  615. "500": {
  616. "description": "Internal Server Error",
  617. "schema": {
  618. "$ref": "#/definitions/app.Response"
  619. }
  620. }
  621. }
  622. }
  623. },
  624. "/Login/GetLoginID": {
  625. "get": {
  626. "produces": [
  627. "application/json"
  628. ],
  629. "tags": [
  630. "登录"
  631. ],
  632. "summary": "获取登录ID",
  633. "parameters": [
  634. {
  635. "type": "string",
  636. "description": "登录代码",
  637. "name": "username",
  638. "in": "query",
  639. "required": true
  640. }
  641. ],
  642. "responses": {
  643. "200": {
  644. "description": "OK",
  645. "schema": {
  646. "$ref": "#/definitions/app.Response"
  647. }
  648. },
  649. "500": {
  650. "description": "Internal Server Error",
  651. "schema": {
  652. "$ref": "#/definitions/app.Response"
  653. }
  654. }
  655. }
  656. }
  657. },
  658. "/WRTrade/GetAllDeliveryGoods": {
  659. "get": {
  660. "security": [
  661. {
  662. "ApiKeyAuth": []
  663. }
  664. ],
  665. "produces": [
  666. "application/json"
  667. ],
  668. "tags": [
  669. "仓单贸易"
  670. ],
  671. "summary": "获取带仓单分类的种类信息",
  672. "responses": {
  673. "200": {
  674. "description": "OK",
  675. "schema": {
  676. "$ref": "#/definitions/app.Response"
  677. }
  678. },
  679. "500": {
  680. "description": "Internal Server Error",
  681. "schema": {
  682. "$ref": "#/definitions/app.Response"
  683. }
  684. }
  685. }
  686. }
  687. }
  688. },
  689. "definitions": {
  690. "app.Response": {
  691. "type": "object",
  692. "properties": {
  693. "code": {
  694. "type": "integer"
  695. },
  696. "data": {
  697. "type": "object"
  698. },
  699. "msg": {
  700. "type": "string"
  701. }
  702. }
  703. },
  704. "common.OperationPrimaryMenu": {
  705. "type": "object",
  706. "properties": {
  707. "Children": {
  708. "description": "二级功能菜单",
  709. "type": "array",
  710. "items": {
  711. "$ref": "#/definitions/common.OperationSecondaryMenu"
  712. }
  713. },
  714. "Key": {
  715. "description": "菜单KEY",
  716. "type": "string"
  717. },
  718. "Label": {
  719. "description": "菜单标题",
  720. "type": "string"
  721. }
  722. }
  723. },
  724. "common.OperationSecondaryMenu": {
  725. "type": "object",
  726. "properties": {
  727. "Key": {
  728. "description": "菜单KEY",
  729. "type": "string"
  730. },
  731. "Label": {
  732. "description": "菜单标题",
  733. "type": "string"
  734. },
  735. "TabList": {
  736. "description": "三级功能菜单",
  737. "type": "array",
  738. "items": {
  739. "$ref": "#/definitions/common.OperationTabMenu"
  740. }
  741. }
  742. }
  743. },
  744. "common.OperationTabMenu": {
  745. "type": "object",
  746. "properties": {
  747. "Key": {
  748. "description": "菜单KEY",
  749. "type": "string"
  750. },
  751. "Label": {
  752. "description": "菜单标题",
  753. "type": "string"
  754. }
  755. }
  756. },
  757. "common.QueryTraderMenuRsp": {
  758. "type": "object",
  759. "properties": {
  760. "OperationMenu": {
  761. "description": "功能菜单",
  762. "type": "array",
  763. "items": {
  764. "$ref": "#/definitions/common.OperationPrimaryMenu"
  765. }
  766. },
  767. "QuoteMenu": {
  768. "description": "报价牌分类菜单",
  769. "type": "array",
  770. "items": {
  771. "$ref": "#/definitions/common.QuotePrimaryMenu"
  772. }
  773. }
  774. }
  775. },
  776. "common.QuotePrimaryMenu": {
  777. "type": "object",
  778. "properties": {
  779. "Index": {
  780. "description": "序号",
  781. "type": "integer"
  782. },
  783. "Key": {
  784. "description": "键名",
  785. "type": "string"
  786. },
  787. "Name": {
  788. "description": "菜单名称",
  789. "type": "string"
  790. },
  791. "SubMenus": {
  792. "description": "子菜单",
  793. "type": "array",
  794. "items": {
  795. "$ref": "#/definitions/common.QuoteSecondaryMenu"
  796. }
  797. },
  798. "SubTitleType": {
  799. "description": "子菜单标题模式:0-市场名称;1-外部交易所名称",
  800. "type": "integer"
  801. },
  802. "TradeModes": {
  803. "description": "包含市场交易类型",
  804. "type": "string"
  805. }
  806. }
  807. },
  808. "common.QuoteSecondaryMenu": {
  809. "type": "object",
  810. "properties": {
  811. "ExExchangeCode": {
  812. "description": "外部交易所代码",
  813. "type": "string"
  814. },
  815. "ExExchangeID": {
  816. "description": "外部交易所ID",
  817. "type": "integer"
  818. },
  819. "GoodsGroupIDs": {
  820. "description": "商品组ID列表",
  821. "type": "array",
  822. "items": {
  823. "type": "integer"
  824. }
  825. },
  826. "Index": {
  827. "description": "序号",
  828. "type": "integer"
  829. },
  830. "MarketID": {
  831. "description": "市场ID",
  832. "type": "integer"
  833. },
  834. "MenuTitle": {
  835. "description": "菜单标题(市场名称或外部交易所名称)",
  836. "type": "string"
  837. },
  838. "TradeMode": {
  839. "description": "交易模式",
  840. "type": "integer"
  841. }
  842. }
  843. },
  844. "cptrade.Cptradepositioncancel": {
  845. "type": "object",
  846. "required": [
  847. "cancelid"
  848. ],
  849. "properties": {
  850. "accountid": {
  851. "description": "申请人账户ID",
  852. "type": "integer"
  853. },
  854. "applystatus": {
  855. "description": "申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销",
  856. "type": "integer"
  857. },
  858. "applytime": {
  859. "description": "申请时间",
  860. "type": "string"
  861. },
  862. "cancelid": {
  863. "description": "注销ID(SEQ_CPTRADE_POSITIONCANCEL)",
  864. "type": "integer"
  865. },
  866. "cancelqty": {
  867. "description": "注销数量",
  868. "type": "integer"
  869. },
  870. "createtime": {
  871. "description": "创建时间",
  872. "type": "string"
  873. },
  874. "creatorid": {
  875. "description": "创建人ID",
  876. "type": "integer"
  877. },
  878. "creatorname": {
  879. "description": "创建人",
  880. "type": "string"
  881. },
  882. "goodscode": {
  883. "description": "订单商品代码",
  884. "type": "string"
  885. },
  886. "goodsid": {
  887. "description": "商品ID",
  888. "type": "integer"
  889. },
  890. "goodsname": {
  891. "description": "订单商品名称",
  892. "type": "string"
  893. },
  894. "goodunit": {
  895. "description": "报价单位",
  896. "type": "string"
  897. },
  898. "handlestatus": {
  899. "description": "处理状态",
  900. "type": "integer"
  901. },
  902. "marketid": {
  903. "description": "市场ID",
  904. "type": "integer"
  905. },
  906. "marketname": {
  907. "description": "市场名称",
  908. "type": "string"
  909. },
  910. "tradedate": {
  911. "description": "交易日(yyyyMMdd)",
  912. "type": "string"
  913. },
  914. "userid": {
  915. "description": "申请人ID",
  916. "type": "integer"
  917. }
  918. }
  919. },
  920. "cptrade.Cptradepresaleapply": {
  921. "type": "object",
  922. "required": [
  923. "applyid"
  924. ],
  925. "properties": {
  926. "accountid": {
  927. "description": "申请人账户ID",
  928. "type": "integer"
  929. },
  930. "applyid": {
  931. "description": "申请ID(181+Unix秒时间戳(10位)+xxxxxx)",
  932. "type": "integer"
  933. },
  934. "applyremark": {
  935. "description": "申请备注",
  936. "type": "string"
  937. },
  938. "applystatus": {
  939. "description": "申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销",
  940. "type": "integer"
  941. },
  942. "applytime": {
  943. "description": "申请时间",
  944. "type": "string"
  945. },
  946. "attachmenturl": {
  947. "description": "附件地址",
  948. "type": "string"
  949. },
  950. "endtime": {
  951. "description": "预售结束时间",
  952. "type": "string"
  953. },
  954. "goodscode": {
  955. "description": "商品代码",
  956. "type": "string"
  957. },
  958. "goodsid": {
  959. "description": "商品ID",
  960. "type": "integer"
  961. },
  962. "goodsname": {
  963. "description": "商品名称",
  964. "type": "string"
  965. },
  966. "goodunit": {
  967. "description": "报价单位",
  968. "type": "string"
  969. },
  970. "handlestatus": {
  971. "description": "处理状态",
  972. "type": "integer"
  973. },
  974. "marketid": {
  975. "description": "预售市场ID",
  976. "type": "integer"
  977. },
  978. "marketname": {
  979. "description": "预售市场名称",
  980. "type": "string"
  981. },
  982. "presaleqty": {
  983. "description": "预售数量",
  984. "type": "integer"
  985. },
  986. "relatedgoodscode": {
  987. "description": "关联交易合约代码",
  988. "type": "string"
  989. },
  990. "relatedgoodsid": {
  991. "description": "关联交易合约ID",
  992. "type": "integer"
  993. },
  994. "relatedgoodsname": {
  995. "description": "关联交易合约名称",
  996. "type": "string"
  997. },
  998. "starttime": {
  999. "description": "预售开始时间",
  1000. "type": "string"
  1001. },
  1002. "tradedate": {
  1003. "description": "交易日(yyyyMMdd)",
  1004. "type": "string"
  1005. },
  1006. "trademode": {
  1007. "description": "交易模式 - 16:挂牌点选 21:大宗竞拍",
  1008. "type": "integer"
  1009. },
  1010. "userid": {
  1011. "description": "申请人ID",
  1012. "type": "integer"
  1013. }
  1014. }
  1015. },
  1016. "cptrade.Cptradeusergoodsdata": {
  1017. "type": "object",
  1018. "required": [
  1019. "accountid",
  1020. "goodsid"
  1021. ],
  1022. "properties": {
  1023. "EnabledQty": {
  1024. "description": "可用量",
  1025. "type": "integer"
  1026. },
  1027. "GoodsCode": {
  1028. "description": "订单商品代码",
  1029. "type": "string"
  1030. },
  1031. "GoodsName": {
  1032. "description": "订单商品名称",
  1033. "type": "string"
  1034. },
  1035. "WRStandardCode": {
  1036. "description": "仓单标准代码",
  1037. "type": "string"
  1038. },
  1039. "WRStandardName": {
  1040. "description": "仓单标准名称",
  1041. "type": "string"
  1042. },
  1043. "accountid": {
  1044. "description": "账户ID",
  1045. "type": "integer"
  1046. },
  1047. "cancelqty": {
  1048. "description": "注销量",
  1049. "type": "integer"
  1050. },
  1051. "curpresaleqty": {
  1052. "description": "当前预售量",
  1053. "type": "integer"
  1054. },
  1055. "deliveryqty": {
  1056. "description": "交割量",
  1057. "type": "integer"
  1058. },
  1059. "freezeamount": {
  1060. "description": "冻结金额",
  1061. "type": "number"
  1062. },
  1063. "goodsid": {
  1064. "description": "商品ID",
  1065. "type": "integer"
  1066. },
  1067. "goodunit": {
  1068. "description": "报价单位",
  1069. "type": "string"
  1070. },
  1071. "hasspotfreeze": {
  1072. "description": "是否有现货冻结 - 0:否 1:有",
  1073. "type": "integer"
  1074. },
  1075. "inqty": {
  1076. "description": "转入量(总数量)",
  1077. "type": "integer"
  1078. },
  1079. "marketid": {
  1080. "description": "市场ID",
  1081. "type": "integer"
  1082. },
  1083. "presaledamount": {
  1084. "description": "已预售总金额",
  1085. "type": "integer"
  1086. },
  1087. "presaledqty": {
  1088. "description": "已预售量",
  1089. "type": "integer"
  1090. },
  1091. "userid": {
  1092. "description": "用户ID",
  1093. "type": "integer"
  1094. },
  1095. "wrstandardid": {
  1096. "description": "仓单标准ID",
  1097. "type": "integer"
  1098. }
  1099. }
  1100. },
  1101. "cptrade.QueryCPTradeMyBidRsp": {
  1102. "type": "object",
  1103. "required": [
  1104. "accountid",
  1105. "goodsid",
  1106. "marketid",
  1107. "orderid",
  1108. "orderqty",
  1109. "ordertime",
  1110. "tradeprice",
  1111. "tradeqty"
  1112. ],
  1113. "properties": {
  1114. "accountid": {
  1115. "description": "账户ID[报价币种]",
  1116. "type": "integer"
  1117. },
  1118. "goodsid": {
  1119. "description": "商品ID",
  1120. "type": "integer"
  1121. },
  1122. "goodunit": {
  1123. "description": "报价单位",
  1124. "type": "string"
  1125. },
  1126. "marketid": {
  1127. "description": "市场ID",
  1128. "type": "integer"
  1129. },
  1130. "orderid": {
  1131. "description": "委托单号(100+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)",
  1132. "type": "integer"
  1133. },
  1134. "orderprice": {
  1135. "description": "委托价格",
  1136. "type": "number"
  1137. },
  1138. "orderqty": {
  1139. "description": "委托数量",
  1140. "type": "integer"
  1141. },
  1142. "ordertime": {
  1143. "description": "委托时间",
  1144. "type": "string"
  1145. },
  1146. "ordertotalprice": {
  1147. "description": "货款金额(委托总价格=委托价格*委托数量*合约单位)",
  1148. "type": "number"
  1149. },
  1150. "ordertotalweight": {
  1151. "description": "竞拍总重量(委托总重量=委托数量*合约单位)",
  1152. "type": "integer"
  1153. },
  1154. "totaltotalprice": {
  1155. "description": "成交货款金额(成交总价格=成交价格*成交数量*合约单位)",
  1156. "type": "number"
  1157. },
  1158. "tradeprice": {
  1159. "description": "成交价格",
  1160. "type": "number"
  1161. },
  1162. "tradeqty": {
  1163. "description": "成交数量",
  1164. "type": "integer"
  1165. }
  1166. }
  1167. },
  1168. "cptrade.QueryCPTradeOrderDetailRsq": {
  1169. "type": "object",
  1170. "required": [
  1171. "accountid",
  1172. "buildtype",
  1173. "buyorsell",
  1174. "goodsid",
  1175. "marketid",
  1176. "memberuserid",
  1177. "operatetype",
  1178. "orderqty",
  1179. "ordertime",
  1180. "pricemode",
  1181. "strorderid",
  1182. "tradedate",
  1183. "validtype"
  1184. ],
  1185. "properties": {
  1186. "accountid": {
  1187. "description": "账户ID[报价币种]",
  1188. "type": "integer"
  1189. },
  1190. "buildtype": {
  1191. "description": "委托单据类型 - 1:建仓 2:平仓 3:先平后建",
  1192. "type": "integer"
  1193. },
  1194. "buyorsell": {
  1195. "description": "买卖 - 0:买 1:卖",
  1196. "type": "integer"
  1197. },
  1198. "cancelorderid": {
  1199. "description": "撤单单号(撤单时填写)",
  1200. "type": "integer"
  1201. },
  1202. "cancelqty": {
  1203. "description": "撤单数量",
  1204. "type": "integer"
  1205. },
  1206. "clientordertime": {
  1207. "description": "客户端委托时间",
  1208. "type": "string"
  1209. },
  1210. "clientticket": {
  1211. "description": "客户端流水号",
  1212. "type": "string"
  1213. },
  1214. "clienttype": {
  1215. "description": "客户端类型 - 0:保留为未填终端类型 1:PC管理端 2:PC交易端 3:手机客户端_安卓 4:网页客户端 5:微信客户端 6:手机客户端_苹果 7:网上开户客户端 8:无效终端编号 9:报价终端(中江)",
  1216. "type": "integer"
  1217. },
  1218. "closeexchagechargevalue": {
  1219. "description": "平仓交易所手续费设置值",
  1220. "type": "number"
  1221. },
  1222. "closefeealgorithm": {
  1223. "description": "平仓手续费收取方式 1:比率 2:固定",
  1224. "type": "integer"
  1225. },
  1226. "closefreezecharge": {
  1227. "description": "平仓冻结手续费(先建后平操作,需要记录)",
  1228. "type": "number"
  1229. },
  1230. "closememberchargevalue": {
  1231. "description": "平仓会员手续费设置值",
  1232. "type": "number"
  1233. },
  1234. "closeqty": {
  1235. "description": "平仓数量(先建后平操作 需要记录)",
  1236. "type": "integer"
  1237. },
  1238. "closetradeqty": {
  1239. "description": "平仓成交数量(先建后平操作,需要记录)",
  1240. "type": "integer"
  1241. },
  1242. "closeunfreezecharge": {
  1243. "description": "平仓解冻手续费(先建后平操作,需要记录)",
  1244. "type": "number"
  1245. },
  1246. "delistingtype": {
  1247. "description": "摘牌类型 - 1:价格最优 2:点选成交",
  1248. "type": "integer"
  1249. },
  1250. "freezecharge": {
  1251. "description": "冻结手续费",
  1252. "type": "number"
  1253. },
  1254. "freezemargin": {
  1255. "description": "冻结保证金(冻结交易金额)",
  1256. "type": "number"
  1257. },
  1258. "gcaccountid": {
  1259. "description": "账户ID[合约币种]",
  1260. "type": "integer"
  1261. },
  1262. "goodsid": {
  1263. "description": "商品ID",
  1264. "type": "integer"
  1265. },
  1266. "isconfirmexercise": {
  1267. "description": "是否确认行权- 0:否 1:是",
  1268. "type": "integer"
  1269. },
  1270. "ispreexercise": {
  1271. "description": "是否预申报- 0:否 1:是",
  1272. "type": "integer"
  1273. },
  1274. "listingselecttype": {
  1275. "description": "挂牌点选类型 - 1:挂牌 2:摘牌 3:先摘后挂",
  1276. "type": "integer"
  1277. },
  1278. "marginalgorithm": {
  1279. "description": "保证金收取方式 1:比率 2:固定",
  1280. "type": "integer"
  1281. },
  1282. "marginvalue": {
  1283. "description": "即市保证金设置值",
  1284. "type": "number"
  1285. },
  1286. "marketid": {
  1287. "description": "市场ID",
  1288. "type": "integer"
  1289. },
  1290. "marketmaxsub": {
  1291. "description": "市价最大偏移范围",
  1292. "type": "number"
  1293. },
  1294. "memberuserid": {
  1295. "description": "所属会员UserID",
  1296. "type": "integer"
  1297. },
  1298. "openexchagechargevalue": {
  1299. "description": "建仓交易所手续费设置值",
  1300. "type": "number"
  1301. },
  1302. "openfeealgorithm": {
  1303. "description": "建仓手续费收取方式 1:比率 2:固定",
  1304. "type": "integer"
  1305. },
  1306. "openfreezecharge": {
  1307. "description": "开仓冻结手续费(先建后平操作,需要记录)",
  1308. "type": "number"
  1309. },
  1310. "openmemberchargevalue": {
  1311. "description": "建仓会员手续费设置值",
  1312. "type": "number"
  1313. },
  1314. "openqty": {
  1315. "description": "开仓数量(先建后平操作,需要记录)",
  1316. "type": "integer"
  1317. },
  1318. "opentradeqty": {
  1319. "description": "开仓成交数量(先建后平操作,需要记录)",
  1320. "type": "integer"
  1321. },
  1322. "openunfreezecharge": {
  1323. "description": "开仓解冻手续费(先建后平操作,需要记录)",
  1324. "type": "number"
  1325. },
  1326. "operatetype": {
  1327. "description": "操作类型 - 1:正常下单 2:斩仓 3:转单 4:结算撤单 5:系统卖出(适用于先平后建的卖出) 6:行情源报价 7:(结算)到期强平 8:(结算)协议转让 9:系统对冲单 10:(结算)到期无效 11:交割协议转让 12:交割协议平仓 13:交割成交(所有权) 14:管理端强行平仓 15:管理端协议转让",
  1328. "type": "integer"
  1329. },
  1330. "operatorid": {
  1331. "description": "登录账号(LoginID)",
  1332. "type": "integer"
  1333. },
  1334. "optiontype": {
  1335. "description": "期权类型 - 1:认购(看涨) 2:认沽(看跌)",
  1336. "type": "integer"
  1337. },
  1338. "orderprice": {
  1339. "description": "委托价格",
  1340. "type": "number"
  1341. },
  1342. "orderqty": {
  1343. "description": "委托数量",
  1344. "type": "integer"
  1345. },
  1346. "ordersrc": {
  1347. "description": "委托来源 - 1:客户端 2:管理端 3:风控服务 4:交割服务 5:交易服务 6:交易日结 7:商品强平 8:管理端商品退市强平 9:交易接口 10:交割服务商被动(受托竞价) 11:预埋触发",
  1348. "type": "integer"
  1349. },
  1350. "orderstatus": {
  1351. "description": "委托状态 - 1: 委托请求 2:待冻结 3:委托成功 4: 委托失败 5:配对成功 6: 已撤销 7:部分成交 8:已成交 9:部成部撤 10:成交失败 11:已拒绝 12:经过摘牌(先摘后挂专用-先摘后挂已摘过) 13:冻结成功(通道交易专用) 14:通道已撤 15:通道部成部撤 16:成交失败违约(荷兰式竞拍专用)",
  1352. "type": "integer"
  1353. },
  1354. "ordertime": {
  1355. "description": "委托时间",
  1356. "type": "string"
  1357. },
  1358. "preexerciseprice": {
  1359. "description": "预申报价格",
  1360. "type": "number"
  1361. },
  1362. "premium": {
  1363. "description": "权利金",
  1364. "type": "number"
  1365. },
  1366. "preorderid": {
  1367. "description": "关联预埋单号(止盈止损单时填写)",
  1368. "type": "integer"
  1369. },
  1370. "pricemode": {
  1371. "description": "取价方式 - 1:市价 2: 限价",
  1372. "type": "integer"
  1373. },
  1374. "quoteid": {
  1375. "description": "报价单ID",
  1376. "type": "integer"
  1377. },
  1378. "relatedid": {
  1379. "description": "关联单号(交割单)",
  1380. "type": "integer"
  1381. },
  1382. "retcode": {
  1383. "description": "错误代码",
  1384. "type": "integer"
  1385. },
  1386. "sessionid": {
  1387. "description": "会话ID",
  1388. "type": "integer"
  1389. },
  1390. "strorderid": {
  1391. "description": "委托单号",
  1392. "type": "string"
  1393. },
  1394. "tradedate": {
  1395. "description": "交易日(yyyyMMdd)",
  1396. "type": "string"
  1397. },
  1398. "tradeproperty": {
  1399. "description": "交易属性",
  1400. "type": "integer"
  1401. },
  1402. "tradeqty": {
  1403. "description": "成交数量",
  1404. "type": "integer"
  1405. },
  1406. "unfreezecharge": {
  1407. "description": "解冻手续费",
  1408. "type": "number"
  1409. },
  1410. "unfreezemargin": {
  1411. "description": "解冻保证金",
  1412. "type": "number"
  1413. },
  1414. "updatetime": {
  1415. "description": "更新时间",
  1416. "type": "string"
  1417. },
  1418. "uuid": {
  1419. "description": "发起端唯一id",
  1420. "type": "string"
  1421. },
  1422. "validtime": {
  1423. "description": "有效期限",
  1424. "type": "string"
  1425. },
  1426. "validtype": {
  1427. "description": "有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效 5指定时间有效",
  1428. "type": "integer"
  1429. },
  1430. "volumetype": {
  1431. "description": "当时间有效类型为 “立即执行否则取消 IOC” 时,需要此项 - 0:任意量 1:最小量(暂时不支持) 2:全部量",
  1432. "type": "integer"
  1433. }
  1434. }
  1435. },
  1436. "cptrade.QueryMyCPTradeGoodsRsp": {
  1437. "type": "object",
  1438. "required": [
  1439. "goodscode",
  1440. "goodsid",
  1441. "goodsname",
  1442. "marketid",
  1443. "relatedgoodscode",
  1444. "relatedgoodsname"
  1445. ],
  1446. "properties": {
  1447. "accountid": {
  1448. "description": "卖方账户ID",
  1449. "type": "integer"
  1450. },
  1451. "agreeunit": {
  1452. "description": "合约单位",
  1453. "type": "number"
  1454. },
  1455. "applyid": {
  1456. "description": "关联申请ID",
  1457. "type": "integer"
  1458. },
  1459. "attachmenturl": {
  1460. "description": "附件地址",
  1461. "type": "string"
  1462. },
  1463. "createtime": {
  1464. "description": "创建时间",
  1465. "type": "string"
  1466. },
  1467. "currencyid": {
  1468. "description": "报价货币ID",
  1469. "type": "integer"
  1470. },
  1471. "decimalplace": {
  1472. "description": "报价小数位",
  1473. "type": "integer"
  1474. },
  1475. "endtime": {
  1476. "description": "预售结束时间",
  1477. "type": "string"
  1478. },
  1479. "floorprice": {
  1480. "description": "底价[大宗式竞拍]",
  1481. "type": "number"
  1482. },
  1483. "goodscode": {
  1484. "description": "商品代码(预售)",
  1485. "type": "string"
  1486. },
  1487. "goodsdetail": {
  1488. "description": "详情[大宗]",
  1489. "type": "string"
  1490. },
  1491. "goodsid": {
  1492. "description": "商品ID(自增ID SEQ_GOODS)",
  1493. "type": "integer"
  1494. },
  1495. "goodsname": {
  1496. "description": "商品名称(预售)",
  1497. "type": "string"
  1498. },
  1499. "goodunit": {
  1500. "description": "报价单位",
  1501. "type": "string"
  1502. },
  1503. "goodunitid": {
  1504. "description": "报价单位ID",
  1505. "type": "integer"
  1506. },
  1507. "marketid": {
  1508. "description": "所属市场ID",
  1509. "type": "integer"
  1510. },
  1511. "marketname": {
  1512. "description": "预售市场名称",
  1513. "type": "string"
  1514. },
  1515. "presaledamount": {
  1516. "description": "已预售总金额(预售结束时更新)",
  1517. "type": "number"
  1518. },
  1519. "presaledqty": {
  1520. "description": "已预售量(预售结束时更新)",
  1521. "type": "integer"
  1522. },
  1523. "presalemode": {
  1524. "description": "预售模式 - 1:一口价 2:大宗式竞拍",
  1525. "type": "integer"
  1526. },
  1527. "presaleqty": {
  1528. "description": "预售数量",
  1529. "type": "integer"
  1530. },
  1531. "refprice": {
  1532. "description": "参考价格[一口价]",
  1533. "type": "number"
  1534. },
  1535. "relatedgoodscode": {
  1536. "description": "商品代码(订单)",
  1537. "type": "string"
  1538. },
  1539. "relatedgoodsid": {
  1540. "description": "关联交易合约ID",
  1541. "type": "integer"
  1542. },
  1543. "relatedgoodsname": {
  1544. "description": "商品名称(订单)",
  1545. "type": "string"
  1546. },
  1547. "relatedmarketid": {
  1548. "description": "关联交易合约市场ID",
  1549. "type": "integer"
  1550. },
  1551. "sellstatus": {
  1552. "description": "卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理",
  1553. "type": "integer"
  1554. },
  1555. "startprice": {
  1556. "description": "起拍价[大宗式竞拍]",
  1557. "type": "number"
  1558. },
  1559. "starttime": {
  1560. "description": "预售开始时间",
  1561. "type": "string"
  1562. },
  1563. "tradedate": {
  1564. "description": "交易日(yyyyMMdd)",
  1565. "type": "string"
  1566. },
  1567. "tradeprice": {
  1568. "description": "成交价[大宗]",
  1569. "type": "number"
  1570. },
  1571. "userid": {
  1572. "description": "卖方用户ID",
  1573. "type": "integer"
  1574. }
  1575. }
  1576. },
  1577. "cptrade.QueryPresaleGoodsExRsp": {
  1578. "type": "object",
  1579. "required": [
  1580. "goodsid"
  1581. ],
  1582. "properties": {
  1583. "attachmenturl": {
  1584. "description": "附件地址",
  1585. "type": "string"
  1586. },
  1587. "createtime": {
  1588. "description": "创建时间",
  1589. "type": "string"
  1590. },
  1591. "endtime": {
  1592. "description": "预售结束时间",
  1593. "type": "string"
  1594. },
  1595. "floorprice": {
  1596. "description": "底价[大宗式竞拍]",
  1597. "type": "number"
  1598. },
  1599. "goodsdetail": {
  1600. "description": "详情[大宗]",
  1601. "type": "string"
  1602. },
  1603. "goodsid": {
  1604. "description": "商品ID(预售)",
  1605. "type": "integer"
  1606. },
  1607. "goodunit": {
  1608. "description": "报价单位",
  1609. "type": "string"
  1610. },
  1611. "marketid": {
  1612. "description": "预售市场ID - 根据预售模式选择市场",
  1613. "type": "integer"
  1614. },
  1615. "presaledamount": {
  1616. "description": "已预售总金额(预售结束时更新)",
  1617. "type": "number"
  1618. },
  1619. "presaledqty": {
  1620. "description": "已预售量(预售结束时更新)",
  1621. "type": "integer"
  1622. },
  1623. "presalemode": {
  1624. "description": "预售模式 - 1:一口价 2:大宗式竞拍",
  1625. "type": "integer"
  1626. },
  1627. "presaleqty": {
  1628. "description": "预售数量",
  1629. "type": "integer"
  1630. },
  1631. "refprice": {
  1632. "description": "参考价格[一口价]",
  1633. "type": "number"
  1634. },
  1635. "relatedgoodsid": {
  1636. "description": "关联交易合约ID",
  1637. "type": "integer"
  1638. },
  1639. "relatedmarketid": {
  1640. "description": "关联交易合约市场ID",
  1641. "type": "integer"
  1642. },
  1643. "sellstatus": {
  1644. "description": "卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理",
  1645. "type": "integer"
  1646. },
  1647. "startprice": {
  1648. "description": "起拍价[大宗式竞拍]",
  1649. "type": "number"
  1650. },
  1651. "starttime": {
  1652. "description": "预售开始时间",
  1653. "type": "string"
  1654. },
  1655. "tradedate": {
  1656. "description": "交易日(yyyyMMdd)",
  1657. "type": "string"
  1658. },
  1659. "tradeprice": {
  1660. "description": "成交价[大宗]",
  1661. "type": "number"
  1662. }
  1663. }
  1664. },
  1665. "delivery.QueryDeliveryRelationRsp": {
  1666. "type": "object",
  1667. "required": [
  1668. "begindate",
  1669. "enddate",
  1670. "goodsid",
  1671. "mindeliveryqty",
  1672. "xdeliveryratio"
  1673. ],
  1674. "properties": {
  1675. "begindate": {
  1676. "description": "起始日期(yyyyMMdd)",
  1677. "type": "string"
  1678. },
  1679. "buytemplateid": {
  1680. "description": "买履约计划模板ID",
  1681. "type": "integer"
  1682. },
  1683. "deliverygoodscode": {
  1684. "description": "品种代码",
  1685. "type": "string"
  1686. },
  1687. "deliverygoodsid": {
  1688. "description": "交割商品",
  1689. "type": "integer"
  1690. },
  1691. "deliverygoodsname": {
  1692. "description": "品种名称",
  1693. "type": "string"
  1694. },
  1695. "deliverymode": {
  1696. "description": "交割方式 - 1:点选式 2:申报式",
  1697. "type": "integer"
  1698. },
  1699. "deliverypricerule": {
  1700. "description": "交割价规则- 1:行情价 2:建仓价",
  1701. "type": "integer"
  1702. },
  1703. "deliverytype": {
  1704. "description": "交割模式 - 1:X交割 2:X+P交割 3:X+C交割 4:X+P+C交割",
  1705. "type": "integer"
  1706. },
  1707. "enddate": {
  1708. "description": "结束日期(yyyyMMdd)",
  1709. "type": "string"
  1710. },
  1711. "goodscode": {
  1712. "description": "商品代码",
  1713. "type": "string"
  1714. },
  1715. "goodsid": {
  1716. "description": "交易合约ID",
  1717. "type": "integer"
  1718. },
  1719. "goodsname": {
  1720. "description": "商品名称",
  1721. "type": "string"
  1722. },
  1723. "marketid": {
  1724. "description": "市场ID",
  1725. "type": "integer"
  1726. },
  1727. "mindeliveryqty": {
  1728. "description": "最小交割系数(K)",
  1729. "type": "integer"
  1730. },
  1731. "p2deliveryprice": {
  1732. "description": "P2合约价格(商品价时填写0,固定值时填写固定值)",
  1733. "type": "number"
  1734. },
  1735. "p2deliveryratio": {
  1736. "description": "P2合约系数(p)",
  1737. "type": "integer"
  1738. },
  1739. "p2goodsid": {
  1740. "description": "P2合约ID",
  1741. "type": "integer"
  1742. },
  1743. "p2pricemode": {
  1744. "description": "P2合约价格方式 - 1:商品价 2:固定值",
  1745. "type": "integer"
  1746. },
  1747. "pdeliveryprice": {
  1748. "description": "P合约价格(商品价时填写0,固定值时填写固定值)",
  1749. "type": "number"
  1750. },
  1751. "pdeliveryratio": {
  1752. "description": "P合约系数(n)",
  1753. "type": "integer"
  1754. },
  1755. "pgoodsid": {
  1756. "description": "P合约ID",
  1757. "type": "integer"
  1758. },
  1759. "ppricemode": {
  1760. "description": "P合约价格方式 - 1:商品价 2:固定值",
  1761. "type": "integer"
  1762. },
  1763. "rratio": {
  1764. "description": "兑换系数(R)",
  1765. "type": "integer"
  1766. },
  1767. "rratio1": {
  1768. "description": "兑换系数(交易合约)(R1)",
  1769. "type": "integer"
  1770. },
  1771. "rratio2": {
  1772. "description": "兑换系数(仓单标准)(R2)",
  1773. "type": "integer"
  1774. },
  1775. "selltemplateid": {
  1776. "description": "卖履约计划模板ID",
  1777. "type": "integer"
  1778. },
  1779. "wrstandardid": {
  1780. "description": "仓单标准ID",
  1781. "type": "integer"
  1782. },
  1783. "xdeliveryratio": {
  1784. "description": "交易合约系数(m)",
  1785. "type": "integer"
  1786. }
  1787. }
  1788. },
  1789. "erms2.QueryArbitrageStrategyRsp": {
  1790. "type": "object",
  1791. "required": [
  1792. "asapplyid"
  1793. ],
  1794. "properties": {
  1795. "applybasis": {
  1796. "description": "申请基差",
  1797. "type": "number"
  1798. },
  1799. "asapplyid": {
  1800. "description": "策略申请ID(702+Unix秒时间戳(10位)+xxxxxx)",
  1801. "type": "string"
  1802. },
  1803. "asname": {
  1804. "description": "策略名称",
  1805. "type": "string"
  1806. },
  1807. "asno": {
  1808. "description": "策略编号",
  1809. "type": "string"
  1810. },
  1811. "basischangepl": {
  1812. "description": "基差变动损益[结算更新]",
  1813. "type": "number"
  1814. },
  1815. "biztype": {
  1816. "description": "业务类型 - 1:正向套利 -1:反向套利",
  1817. "type": "integer"
  1818. },
  1819. "closetradedate": {
  1820. "description": "完结交易日(yyyyMMdd)",
  1821. "type": "string"
  1822. },
  1823. "curbasis": {
  1824. "description": "当前基差[结算更新]",
  1825. "type": "number"
  1826. },
  1827. "deliverygoodsid": {
  1828. "description": "现货品种ID",
  1829. "type": "integer"
  1830. },
  1831. "futureavgprice": {
  1832. "description": "期货建仓均价",
  1833. "type": "number"
  1834. },
  1835. "futurecloseamount": {
  1836. "description": "期货平仓金额",
  1837. "type": "number"
  1838. },
  1839. "futurecloseqty": {
  1840. "description": "期货平仓数量",
  1841. "type": "number"
  1842. },
  1843. "futureopenamount": {
  1844. "description": "期货开仓金额",
  1845. "type": "number"
  1846. },
  1847. "futureopenqty": {
  1848. "description": "期货开仓数量",
  1849. "type": "number"
  1850. },
  1851. "futurepl": {
  1852. "description": "期货总盈亏[结算更新]",
  1853. "type": "number"
  1854. },
  1855. "futureqty": {
  1856. "description": "期货持仓数量",
  1857. "type": "number"
  1858. },
  1859. "futurequote": {
  1860. "description": "期货额度",
  1861. "type": "number"
  1862. },
  1863. "goodsgroupid": {
  1864. "description": "期货品种ID",
  1865. "type": "integer"
  1866. },
  1867. "marketid": {
  1868. "description": "市场ID",
  1869. "type": "integer"
  1870. },
  1871. "netexposure": {
  1872. "description": "单笔业务头寸净敞口 = 期货持仓数量 + 已定价现货不含税数量",
  1873. "type": "number"
  1874. },
  1875. "netexposurepl": {
  1876. "description": "净敞口损益 = TotalPL - BasisChangePL[结算更新]",
  1877. "type": "number"
  1878. },
  1879. "netexposurerate": {
  1880. "description": "净敞口比例 - 0:未结束 = (NetExposure/PriceSpotQtyNoTax) ; 已结束为0",
  1881. "type": "number"
  1882. },
  1883. "openbasis": {
  1884. "description": "建仓基差",
  1885. "type": "number"
  1886. },
  1887. "pricedspotqty": {
  1888. "description": "已定价现货数量",
  1889. "type": "number"
  1890. },
  1891. "pricedspotqtynotax": {
  1892. "description": "已定价现货不含税数量",
  1893. "type": "number"
  1894. },
  1895. "remark": {
  1896. "description": "备注",
  1897. "type": "string"
  1898. },
  1899. "spotavgprice": {
  1900. "description": "现货均价",
  1901. "type": "number"
  1902. },
  1903. "spotbuyamount": {
  1904. "description": "现货采购金额",
  1905. "type": "number"
  1906. },
  1907. "spotbuyqty": {
  1908. "description": "现货采购数量",
  1909. "type": "number"
  1910. },
  1911. "spotpl": {
  1912. "description": "现货总盈亏[结算更新]",
  1913. "type": "number"
  1914. },
  1915. "spotquota": {
  1916. "description": "现货额度",
  1917. "type": "number"
  1918. },
  1919. "spotsellamount": {
  1920. "description": "现货销售金额",
  1921. "type": "number"
  1922. },
  1923. "spotsellqty": {
  1924. "description": "现货销售数量",
  1925. "type": "number"
  1926. },
  1927. "spotusedquota": {
  1928. "description": "现货占用资金",
  1929. "type": "number"
  1930. },
  1931. "strategystatus": {
  1932. "description": "策略状态 - 0:未结束 1:已结束",
  1933. "type": "integer"
  1934. },
  1935. "totalpl": {
  1936. "description": "业务合计损益 = FuturePL + SpotPL [结算更新]",
  1937. "type": "number"
  1938. },
  1939. "tradedate": {
  1940. "description": "交易日(yyyyMMdd)",
  1941. "type": "string"
  1942. },
  1943. "updatetime": {
  1944. "description": "更新时间",
  1945. "type": "string"
  1946. },
  1947. "usedquota": {
  1948. "description": "已占用资金",
  1949. "type": "number"
  1950. },
  1951. "userid": {
  1952. "description": "所属机构",
  1953. "type": "integer"
  1954. }
  1955. }
  1956. },
  1957. "erms2.QueryInnerTradeDetailRsp": {
  1958. "type": "object",
  1959. "required": [
  1960. "asapplyid",
  1961. "buyorsell",
  1962. "goodscode",
  1963. "goodsgroupid",
  1964. "goodsgroupname",
  1965. "goodsname",
  1966. "tradeid"
  1967. ],
  1968. "properties": {
  1969. "accountid": {
  1970. "description": "账号ID",
  1971. "type": "integer"
  1972. },
  1973. "agreeunit": {
  1974. "description": "合约单位",
  1975. "type": "number"
  1976. },
  1977. "asapplyid": {
  1978. "description": "策略申请ID",
  1979. "type": "integer"
  1980. },
  1981. "asname": {
  1982. "description": "策略名称",
  1983. "type": "string"
  1984. },
  1985. "asno": {
  1986. "description": "策略编号",
  1987. "type": "string"
  1988. },
  1989. "buyorsell": {
  1990. "description": "方向 - 0:买 1:卖",
  1991. "type": "integer"
  1992. },
  1993. "channelbuildtype": {
  1994. "description": "委托单据类型 0:无 1:建仓 2:平仓",
  1995. "type": "integer"
  1996. },
  1997. "closetype": {
  1998. "description": "平仓方式 - 0:无 1:平今 2:平昨",
  1999. "type": "integer"
  2000. },
  2001. "decimalplace": {
  2002. "description": "报价小数位",
  2003. "type": "integer"
  2004. },
  2005. "detailtype": {
  2006. "description": "明细类型 - 1:套利对冲 2:期货换月 3:期货仓位调整",
  2007. "type": "integer"
  2008. },
  2009. "exexchangecode": {
  2010. "description": "外部交易所代码",
  2011. "type": "string"
  2012. },
  2013. "exexchangename": {
  2014. "description": "外部交易所名称",
  2015. "type": "string"
  2016. },
  2017. "goodscode": {
  2018. "description": "商品代码(合约)",
  2019. "type": "string"
  2020. },
  2021. "goodsgroupid": {
  2022. "description": "商品组ID(品种ID)",
  2023. "type": "integer"
  2024. },
  2025. "goodsgroupname": {
  2026. "description": "商品组名称(品种)",
  2027. "type": "string"
  2028. },
  2029. "goodsid": {
  2030. "description": "商品ID",
  2031. "type": "integer"
  2032. },
  2033. "goodsname": {
  2034. "description": "商品名称(合约)",
  2035. "type": "string"
  2036. },
  2037. "goodunit": {
  2038. "description": "报价单位",
  2039. "type": "string"
  2040. },
  2041. "marketid": {
  2042. "description": "市场ID",
  2043. "type": "integer"
  2044. },
  2045. "orderid": {
  2046. "description": "委托单号",
  2047. "type": "string"
  2048. },
  2049. "outgoodscode": {
  2050. "description": "商品代码(外部)",
  2051. "type": "string"
  2052. },
  2053. "relatedouttradeid": {
  2054. "description": "关联外部成交单ID",
  2055. "type": "string"
  2056. },
  2057. "remark": {
  2058. "description": "备注",
  2059. "type": "string"
  2060. },
  2061. "spotcontractid": {
  2062. "description": "现货合同ID [1:套利对冲 为合同ID,2:期货换月\\3:期货仓位调整时为0]",
  2063. "type": "integer"
  2064. },
  2065. "spotcontractno": {
  2066. "description": "现货合同编号",
  2067. "type": "string"
  2068. },
  2069. "tradeid": {
  2070. "description": "成交单号(108+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)",
  2071. "type": "string"
  2072. },
  2073. "tradeprice": {
  2074. "description": "成交价格",
  2075. "type": "number"
  2076. },
  2077. "tradeqty": {
  2078. "description": "成交数量",
  2079. "type": "integer"
  2080. },
  2081. "tradetime": {
  2082. "description": "成交时间",
  2083. "type": "string"
  2084. },
  2085. "updatetime": {
  2086. "description": "更新时间",
  2087. "type": "string"
  2088. }
  2089. }
  2090. },
  2091. "erms2.QuerySpotContractRsp": {
  2092. "type": "object",
  2093. "required": [
  2094. "spotcontractid"
  2095. ],
  2096. "properties": {
  2097. "accountid": {
  2098. "description": "资金账户ID",
  2099. "type": "integer"
  2100. },
  2101. "areauserid": {
  2102. "description": "所属机构",
  2103. "type": "integer"
  2104. },
  2105. "closedate": {
  2106. "description": "终止日期",
  2107. "type": "string"
  2108. },
  2109. "closeremark": {
  2110. "description": "结束备注",
  2111. "type": "string"
  2112. },
  2113. "closetradedate": {
  2114. "description": "完结交易日(yyyyMMdd)",
  2115. "type": "string"
  2116. },
  2117. "closetype": {
  2118. "description": "终止类型 - 1:违约 2:提前终止",
  2119. "type": "integer"
  2120. },
  2121. "contractamount": {
  2122. "description": "合同金额",
  2123. "type": "number"
  2124. },
  2125. "contractattachment": {
  2126. "description": "合同附件",
  2127. "type": "string"
  2128. },
  2129. "contractno": {
  2130. "description": "现货合同编号",
  2131. "type": "string"
  2132. },
  2133. "contractqty": {
  2134. "description": "合同数量(数值) (用于计算)",
  2135. "type": "number"
  2136. },
  2137. "contractqtychar": {
  2138. "description": "合同数量\\已订价数量 (用于显示)",
  2139. "type": "string"
  2140. },
  2141. "contractstatus": {
  2142. "description": "合同状态 - 0:未结束 1:已结束",
  2143. "type": "integer"
  2144. },
  2145. "contracttype": {
  2146. "description": "现货合同类型 - 1:采购合同 -1:销售合同",
  2147. "type": "integer"
  2148. },
  2149. "customeraccountid": {
  2150. "description": "客户资金账户ID",
  2151. "type": "integer"
  2152. },
  2153. "customeruserid": {
  2154. "description": "客户ID",
  2155. "type": "integer"
  2156. },
  2157. "deliverygoodsdesc": {
  2158. "description": "品种说明",
  2159. "type": "string"
  2160. },
  2161. "deliverygoodsid": {
  2162. "description": "现货品种ID",
  2163. "type": "integer"
  2164. },
  2165. "handlestatus": {
  2166. "description": "处理状态",
  2167. "type": "integer"
  2168. },
  2169. "invoiceatt": {
  2170. "description": "发票附件",
  2171. "type": "string"
  2172. },
  2173. "invoicedatetime": {
  2174. "description": "开收票更新时间",
  2175. "type": "string"
  2176. },
  2177. "invoiceopentime": {
  2178. "description": "开票时间",
  2179. "type": "string"
  2180. },
  2181. "invoiceremark": {
  2182. "description": "发票备注",
  2183. "type": "string"
  2184. },
  2185. "invoicestatus": {
  2186. "description": "开收票状态 - 0:未开票 1:已开票",
  2187. "type": "integer"
  2188. },
  2189. "lastdate": {
  2190. "description": "交货时间",
  2191. "type": "string"
  2192. },
  2193. "marketid": {
  2194. "description": "市场ID",
  2195. "type": "integer"
  2196. },
  2197. "paydatetime": {
  2198. "description": "收付款更新时间",
  2199. "type": "string"
  2200. },
  2201. "payremark": {
  2202. "description": "收付款备注",
  2203. "type": "string"
  2204. },
  2205. "paystatus": {
  2206. "description": "收付款状态 - 0:未支付 1:已收款 2:已付款",
  2207. "type": "integer"
  2208. },
  2209. "positionqty": {
  2210. "description": "头寸数量 - 合同数量去小数部分",
  2211. "type": "integer"
  2212. },
  2213. "producttype": {
  2214. "description": "产品类型 - 1:标准仓单 2:等标 3:非标",
  2215. "type": "integer"
  2216. },
  2217. "relatedqty": {
  2218. "description": "已关联数量",
  2219. "type": "number"
  2220. },
  2221. "relatedstatus": {
  2222. "description": "关联完结状态 - 0:未结束 1:已结束",
  2223. "type": "integer"
  2224. },
  2225. "remark": {
  2226. "description": "备注",
  2227. "type": "string"
  2228. },
  2229. "signdate": {
  2230. "description": "签订日期",
  2231. "type": "string"
  2232. },
  2233. "spotcontractid": {
  2234. "description": "现货合同ID(701+Unix秒时间戳(10位)+xxxxxx)",
  2235. "type": "string"
  2236. },
  2237. "spotdatetime": {
  2238. "description": "收发货更新时间",
  2239. "type": "string"
  2240. },
  2241. "spotprice": {
  2242. "description": "价格",
  2243. "type": "number"
  2244. },
  2245. "spotremark": {
  2246. "description": "收发货备注",
  2247. "type": "string"
  2248. },
  2249. "spotstatus": {
  2250. "description": "收发货状态 - 0:未交收 1:已发货 2:已发货",
  2251. "type": "integer"
  2252. },
  2253. "tradedate": {
  2254. "description": "交易日(yyyyMMdd)",
  2255. "type": "string"
  2256. },
  2257. "userid": {
  2258. "description": "业务员用户ID",
  2259. "type": "integer"
  2260. },
  2261. "warehouseid": {
  2262. "description": "仓库ID",
  2263. "type": "integer"
  2264. },
  2265. "wrfactortypeid": {
  2266. "description": "仓单要素类型ID",
  2267. "type": "integer"
  2268. },
  2269. "wrstandardid": {
  2270. "description": "仓单标准ID(SEQ_WRSTANDARD)",
  2271. "type": "integer"
  2272. }
  2273. }
  2274. },
  2275. "models.Tablecolumnconfig": {
  2276. "type": "object",
  2277. "required": [
  2278. "autoid"
  2279. ],
  2280. "properties": {
  2281. "aligntype": {
  2282. "description": "对齐方式 - 1:居中对齐 2:左对齐 3:右对齐",
  2283. "type": "integer"
  2284. },
  2285. "autoid": {
  2286. "description": "AutoID",
  2287. "type": "integer"
  2288. },
  2289. "columnfield": {
  2290. "description": "列字段",
  2291. "type": "string"
  2292. },
  2293. "columntitle": {
  2294. "description": "列Title",
  2295. "type": "string"
  2296. },
  2297. "columnwidth": {
  2298. "description": "列宽",
  2299. "type": "string"
  2300. },
  2301. "formatterstring": {
  2302. "description": "格式化字符",
  2303. "type": "string"
  2304. },
  2305. "formattertype": {
  2306. "description": "格式化类型",
  2307. "type": "string"
  2308. },
  2309. "groupname": {
  2310. "description": "表头分组名称",
  2311. "type": "string"
  2312. },
  2313. "isshow": {
  2314. "description": "是否显示 - 0:不显示 1:显示",
  2315. "type": "integer"
  2316. },
  2317. "needsummary": {
  2318. "description": "是否需要汇总 - 0:不需要 1:需要",
  2319. "type": "integer"
  2320. },
  2321. "orderindex": {
  2322. "description": "顺序",
  2323. "type": "integer"
  2324. },
  2325. "remark": {
  2326. "description": "备注",
  2327. "type": "string"
  2328. },
  2329. "summarytype": {
  2330. "description": "汇总类型 - 1:加总 2:最后一个",
  2331. "type": "integer"
  2332. },
  2333. "tablekey": {
  2334. "description": "列表Key",
  2335. "type": "string"
  2336. }
  2337. }
  2338. }
  2339. },
  2340. "securityDefinitions": {
  2341. "ApiKeyAuth": {
  2342. "type": "apiKey",
  2343. "name": "Authorization",
  2344. "in": "header"
  2345. }
  2346. }
  2347. }`
  2348. type swaggerInfo struct {
  2349. Version string
  2350. Host string
  2351. BasePath string
  2352. Schemes []string
  2353. Title string
  2354. Description string
  2355. }
  2356. // SwaggerInfo holds exported Swagger Info so clients can modify it
  2357. var SwaggerInfo = swaggerInfo{
  2358. Version: "1.0",
  2359. Host: "",
  2360. BasePath: "/api",
  2361. Schemes: []string{},
  2362. Title: "MTP2.0 查询服务 API",
  2363. Description: "新的查询服务,替代原通用查询服务。",
  2364. }
  2365. type s struct{}
  2366. func (s *s) ReadDoc() string {
  2367. sInfo := SwaggerInfo
  2368. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  2369. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  2370. "marshal": func(v interface{}) string {
  2371. a, _ := json.Marshal(v)
  2372. return string(a)
  2373. },
  2374. }).Parse(doc)
  2375. if err != nil {
  2376. return doc
  2377. }
  2378. var tpl bytes.Buffer
  2379. if err := t.Execute(&tpl, sInfo); err != nil {
  2380. return doc
  2381. }
  2382. return tpl.String()
  2383. }
  2384. func init() {
  2385. swag.Register(swag.Name, &s{})
  2386. }