docs.go 85 KB

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