docs.go 85 KB

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