docs.go 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140
  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/QueryMyCPTradeGoods": {
  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": "资金账户",
  94. "name": "accountid",
  95. "in": "query",
  96. "required": true
  97. }
  98. ],
  99. "responses": {
  100. "200": {
  101. "description": "OK",
  102. "schema": {
  103. "$ref": "#/definitions/cptrade.QueryMyCPTradeGoodsRsp"
  104. }
  105. },
  106. "500": {
  107. "description": "Internal Server Error",
  108. "schema": {
  109. "$ref": "#/definitions/app.Response"
  110. }
  111. }
  112. }
  113. }
  114. },
  115. "/CPTrade/QueryPositionCancel": {
  116. "get": {
  117. "security": [
  118. {
  119. "ApiKeyAuth": []
  120. }
  121. ],
  122. "produces": [
  123. "application/json"
  124. ],
  125. "tags": [
  126. "产能预售"
  127. ],
  128. "summary": "查询远期订单注销申请信息",
  129. "parameters": [
  130. {
  131. "type": "integer",
  132. "description": "账户ID",
  133. "name": "userid",
  134. "in": "query",
  135. "required": true
  136. },
  137. {
  138. "type": "integer",
  139. "description": "注销ID",
  140. "name": "cancelid",
  141. "in": "query"
  142. },
  143. {
  144. "type": "integer",
  145. "description": "资金账户ID",
  146. "name": "accountid",
  147. "in": "query"
  148. }
  149. ],
  150. "responses": {
  151. "200": {
  152. "description": "OK",
  153. "schema": {
  154. "$ref": "#/definitions/cptrade.Cptradepositioncancel"
  155. }
  156. },
  157. "500": {
  158. "description": "Internal Server Error",
  159. "schema": {
  160. "$ref": "#/definitions/app.Response"
  161. }
  162. }
  163. }
  164. }
  165. },
  166. "/CPTrade/QueryPreasleApply": {
  167. "get": {
  168. "security": [
  169. {
  170. "ApiKeyAuth": []
  171. }
  172. ],
  173. "produces": [
  174. "application/json"
  175. ],
  176. "tags": [
  177. "产能预售"
  178. ],
  179. "summary": "查询产能预售申请信息",
  180. "parameters": [
  181. {
  182. "type": "integer",
  183. "description": "账户ID",
  184. "name": "userid",
  185. "in": "query",
  186. "required": true
  187. },
  188. {
  189. "type": "integer",
  190. "description": "申请ID",
  191. "name": "applyid",
  192. "in": "query"
  193. },
  194. {
  195. "type": "integer",
  196. "description": "资金账户ID",
  197. "name": "accountid",
  198. "in": "query"
  199. }
  200. ],
  201. "responses": {
  202. "200": {
  203. "description": "OK",
  204. "schema": {
  205. "$ref": "#/definitions/cptrade.Cptradepresaleapply"
  206. }
  207. },
  208. "500": {
  209. "description": "Internal Server Error",
  210. "schema": {
  211. "$ref": "#/definitions/app.Response"
  212. }
  213. }
  214. }
  215. }
  216. },
  217. "/CPTrade/QueryPresaleGoodsEx": {
  218. "get": {
  219. "security": [
  220. {
  221. "ApiKeyAuth": []
  222. }
  223. ],
  224. "produces": [
  225. "application/json"
  226. ],
  227. "tags": [
  228. "产能预售"
  229. ],
  230. "summary": "查询产能预售商品扩展信息",
  231. "parameters": [
  232. {
  233. "type": "integer",
  234. "description": "预售商品ID",
  235. "name": "goodsid",
  236. "in": "query"
  237. },
  238. {
  239. "type": "integer",
  240. "description": "预售市场ID",
  241. "name": "marketid",
  242. "in": "query"
  243. },
  244. {
  245. "type": "integer",
  246. "description": "预售模式 - 1:一口价 2:大宗式竞拍",
  247. "name": "presalemode",
  248. "in": "query"
  249. },
  250. {
  251. "type": "string",
  252. "description": "预售商品ID列表 - 格式:1,2,3",
  253. "name": "goodsids",
  254. "in": "query"
  255. },
  256. {
  257. "type": "string",
  258. "description": "预售商品代码",
  259. "name": "goodscode",
  260. "in": "query"
  261. }
  262. ],
  263. "responses": {
  264. "200": {
  265. "description": "OK",
  266. "schema": {
  267. "$ref": "#/definitions/cptrade.QueryPresaleGoodsExRsp"
  268. }
  269. },
  270. "500": {
  271. "description": "Internal Server Error",
  272. "schema": {
  273. "$ref": "#/definitions/app.Response"
  274. }
  275. }
  276. }
  277. }
  278. },
  279. "/CPTrade/QueryUserGoodsData": {
  280. "get": {
  281. "security": [
  282. {
  283. "ApiKeyAuth": []
  284. }
  285. ],
  286. "produces": [
  287. "application/json"
  288. ],
  289. "tags": [
  290. "产能预售"
  291. ],
  292. "summary": "查询远期订单信息",
  293. "parameters": [
  294. {
  295. "type": "integer",
  296. "description": "资金账户ID",
  297. "name": "accountid",
  298. "in": "query",
  299. "required": true
  300. }
  301. ],
  302. "responses": {
  303. "200": {
  304. "description": "OK",
  305. "schema": {
  306. "$ref": "#/definitions/cptrade.Cptradeusergoodsdata"
  307. }
  308. },
  309. "500": {
  310. "description": "Internal Server Error",
  311. "schema": {
  312. "$ref": "#/definitions/app.Response"
  313. }
  314. }
  315. }
  316. }
  317. },
  318. "/Delivery/QueryDeliveryRelation": {
  319. "get": {
  320. "security": [
  321. {
  322. "ApiKeyAuth": []
  323. }
  324. ],
  325. "produces": [
  326. "application/json"
  327. ],
  328. "tags": [
  329. "交割服务"
  330. ],
  331. "summary": "查询商品交割关系表",
  332. "parameters": [
  333. {
  334. "type": "integer",
  335. "description": "商品ID",
  336. "name": "goodsid",
  337. "in": "query"
  338. },
  339. {
  340. "type": "integer",
  341. "description": "品种ID",
  342. "name": "deliverygoodsid",
  343. "in": "query"
  344. },
  345. {
  346. "type": "integer",
  347. "description": "市场ID",
  348. "name": "marketid",
  349. "in": "query"
  350. }
  351. ],
  352. "responses": {
  353. "200": {
  354. "description": "OK",
  355. "schema": {
  356. "$ref": "#/definitions/delivery.QueryDeliveryRelationRsp"
  357. }
  358. },
  359. "500": {
  360. "description": "Internal Server Error",
  361. "schema": {
  362. "$ref": "#/definitions/app.Response"
  363. }
  364. }
  365. }
  366. }
  367. },
  368. "/WRTrade/GetAllDeliveryGoods": {
  369. "get": {
  370. "security": [
  371. {
  372. "ApiKeyAuth": []
  373. }
  374. ],
  375. "produces": [
  376. "application/json"
  377. ],
  378. "tags": [
  379. "仓单贸易"
  380. ],
  381. "summary": "获取带仓单分类的种类信息",
  382. "responses": {
  383. "200": {
  384. "description": "OK",
  385. "schema": {
  386. "$ref": "#/definitions/app.Response"
  387. }
  388. },
  389. "500": {
  390. "description": "Internal Server Error",
  391. "schema": {
  392. "$ref": "#/definitions/app.Response"
  393. }
  394. }
  395. }
  396. }
  397. }
  398. },
  399. "definitions": {
  400. "app.Response": {
  401. "type": "object",
  402. "properties": {
  403. "code": {
  404. "type": "integer"
  405. },
  406. "data": {
  407. "type": "object"
  408. },
  409. "msg": {
  410. "type": "string"
  411. }
  412. }
  413. },
  414. "cptrade.Cptradepositioncancel": {
  415. "type": "object",
  416. "required": [
  417. "cancelid"
  418. ],
  419. "properties": {
  420. "accountid": {
  421. "description": "申请人账户ID",
  422. "type": "integer"
  423. },
  424. "applystatus": {
  425. "description": "申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销",
  426. "type": "integer"
  427. },
  428. "applytime": {
  429. "description": "申请时间",
  430. "type": "string"
  431. },
  432. "cancelid": {
  433. "description": "注销ID(SEQ_CPTRADE_POSITIONCANCEL)",
  434. "type": "integer"
  435. },
  436. "cancelqty": {
  437. "description": "注销数量",
  438. "type": "integer"
  439. },
  440. "createtime": {
  441. "description": "创建时间",
  442. "type": "string"
  443. },
  444. "creatorid": {
  445. "description": "创建人ID",
  446. "type": "integer"
  447. },
  448. "creatorname": {
  449. "description": "创建人",
  450. "type": "string"
  451. },
  452. "goodscode": {
  453. "description": "订单商品代码",
  454. "type": "string"
  455. },
  456. "goodsid": {
  457. "description": "商品ID",
  458. "type": "integer"
  459. },
  460. "goodsname": {
  461. "description": "订单商品名称",
  462. "type": "string"
  463. },
  464. "goodunit": {
  465. "description": "报价单位",
  466. "type": "string"
  467. },
  468. "handlestatus": {
  469. "description": "处理状态",
  470. "type": "integer"
  471. },
  472. "marketid": {
  473. "description": "市场ID",
  474. "type": "integer"
  475. },
  476. "marketname": {
  477. "description": "市场名称",
  478. "type": "string"
  479. },
  480. "tradedate": {
  481. "description": "交易日(yyyyMMdd)",
  482. "type": "string"
  483. },
  484. "userid": {
  485. "description": "申请人ID",
  486. "type": "integer"
  487. }
  488. }
  489. },
  490. "cptrade.Cptradepresaleapply": {
  491. "type": "object",
  492. "required": [
  493. "applyid"
  494. ],
  495. "properties": {
  496. "accountid": {
  497. "description": "申请人账户ID",
  498. "type": "integer"
  499. },
  500. "applyid": {
  501. "description": "申请ID(181+Unix秒时间戳(10位)+xxxxxx)",
  502. "type": "integer"
  503. },
  504. "applyremark": {
  505. "description": "申请备注",
  506. "type": "string"
  507. },
  508. "applystatus": {
  509. "description": "申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销",
  510. "type": "integer"
  511. },
  512. "applytime": {
  513. "description": "申请时间",
  514. "type": "string"
  515. },
  516. "attachmenturl": {
  517. "description": "附件地址",
  518. "type": "string"
  519. },
  520. "endtime": {
  521. "description": "预售结束时间",
  522. "type": "string"
  523. },
  524. "goodscode": {
  525. "description": "商品代码",
  526. "type": "string"
  527. },
  528. "goodsid": {
  529. "description": "商品ID",
  530. "type": "integer"
  531. },
  532. "goodsname": {
  533. "description": "商品名称",
  534. "type": "string"
  535. },
  536. "goodunit": {
  537. "description": "报价单位",
  538. "type": "string"
  539. },
  540. "handlestatus": {
  541. "description": "处理状态",
  542. "type": "integer"
  543. },
  544. "marketid": {
  545. "description": "预售市场ID",
  546. "type": "integer"
  547. },
  548. "marketname": {
  549. "description": "预售市场名称",
  550. "type": "string"
  551. },
  552. "presaleqty": {
  553. "description": "预售数量",
  554. "type": "integer"
  555. },
  556. "relatedgoodscode": {
  557. "description": "关联交易合约代码",
  558. "type": "string"
  559. },
  560. "relatedgoodsid": {
  561. "description": "关联交易合约ID",
  562. "type": "integer"
  563. },
  564. "relatedgoodsname": {
  565. "description": "关联交易合约名称",
  566. "type": "string"
  567. },
  568. "starttime": {
  569. "description": "预售开始时间",
  570. "type": "string"
  571. },
  572. "tradedate": {
  573. "description": "交易日(yyyyMMdd)",
  574. "type": "string"
  575. },
  576. "trademode": {
  577. "description": "交易模式 - 16:挂牌点选 21:大宗竞拍",
  578. "type": "integer"
  579. },
  580. "userid": {
  581. "description": "申请人ID",
  582. "type": "integer"
  583. }
  584. }
  585. },
  586. "cptrade.Cptradeusergoodsdata": {
  587. "type": "object",
  588. "required": [
  589. "accountid",
  590. "goodsid"
  591. ],
  592. "properties": {
  593. "EnabledQty": {
  594. "description": "可用量",
  595. "type": "integer"
  596. },
  597. "GoodsCode": {
  598. "description": "订单商品代码",
  599. "type": "string"
  600. },
  601. "GoodsName": {
  602. "description": "订单商品名称",
  603. "type": "string"
  604. },
  605. "WRStandardCode": {
  606. "description": "仓单标准代码",
  607. "type": "string"
  608. },
  609. "WRStandardName": {
  610. "description": "仓单标准名称",
  611. "type": "string"
  612. },
  613. "accountid": {
  614. "description": "账户ID",
  615. "type": "integer"
  616. },
  617. "cancelqty": {
  618. "description": "注销量",
  619. "type": "integer"
  620. },
  621. "curpresaleqty": {
  622. "description": "当前预售量",
  623. "type": "integer"
  624. },
  625. "deliveryqty": {
  626. "description": "交割量",
  627. "type": "integer"
  628. },
  629. "freezeamount": {
  630. "description": "冻结金额",
  631. "type": "number"
  632. },
  633. "goodsid": {
  634. "description": "商品ID",
  635. "type": "integer"
  636. },
  637. "goodunit": {
  638. "description": "报价单位",
  639. "type": "string"
  640. },
  641. "hasspotfreeze": {
  642. "description": "是否有现货冻结 - 0:否 1:有",
  643. "type": "integer"
  644. },
  645. "inqty": {
  646. "description": "转入量(总数量)",
  647. "type": "integer"
  648. },
  649. "marketid": {
  650. "description": "市场ID",
  651. "type": "integer"
  652. },
  653. "presaledamount": {
  654. "description": "已预售总金额",
  655. "type": "integer"
  656. },
  657. "presaledqty": {
  658. "description": "已预售量",
  659. "type": "integer"
  660. },
  661. "userid": {
  662. "description": "用户ID",
  663. "type": "integer"
  664. },
  665. "wrstandardid": {
  666. "description": "仓单标准ID",
  667. "type": "integer"
  668. }
  669. }
  670. },
  671. "cptrade.QueryCPTradeMyBidRsp": {
  672. "type": "object",
  673. "required": [
  674. "accountid",
  675. "goodsid",
  676. "marketid",
  677. "orderid",
  678. "orderqty",
  679. "ordertime",
  680. "tradeprice",
  681. "tradeqty"
  682. ],
  683. "properties": {
  684. "accountid": {
  685. "description": "账户ID[报价币种]",
  686. "type": "integer"
  687. },
  688. "goodsid": {
  689. "description": "商品ID",
  690. "type": "integer"
  691. },
  692. "goodunit": {
  693. "description": "报价单位",
  694. "type": "string"
  695. },
  696. "marketid": {
  697. "description": "市场ID",
  698. "type": "integer"
  699. },
  700. "orderid": {
  701. "description": "委托单号(100+Unix秒时间戳(10位)+2位(MarketServiceID)+xxxx)",
  702. "type": "integer"
  703. },
  704. "orderprice": {
  705. "description": "委托价格",
  706. "type": "number"
  707. },
  708. "orderqty": {
  709. "description": "委托数量",
  710. "type": "integer"
  711. },
  712. "ordertime": {
  713. "description": "委托时间",
  714. "type": "string"
  715. },
  716. "ordertotalprice": {
  717. "description": "货款金额(委托总价格=委托价格*委托数量*合约单位)",
  718. "type": "number"
  719. },
  720. "ordertotalweight": {
  721. "description": "竞拍总重量(委托总重量=委托数量*合约单位)",
  722. "type": "integer"
  723. },
  724. "totaltotalprice": {
  725. "description": "成交货款金额(成交总价格=成交价格*成交数量*合约单位)",
  726. "type": "number"
  727. },
  728. "tradeprice": {
  729. "description": "成交价格",
  730. "type": "number"
  731. },
  732. "tradeqty": {
  733. "description": "成交数量",
  734. "type": "integer"
  735. }
  736. }
  737. },
  738. "cptrade.QueryMyCPTradeGoodsRsp": {
  739. "type": "object",
  740. "required": [
  741. "goodscode",
  742. "goodsid",
  743. "goodsname",
  744. "marketid"
  745. ],
  746. "properties": {
  747. "accountid": {
  748. "description": "卖方账户ID",
  749. "type": "integer"
  750. },
  751. "agreeunit": {
  752. "description": "合约单位",
  753. "type": "number"
  754. },
  755. "applyid": {
  756. "description": "关联申请ID",
  757. "type": "integer"
  758. },
  759. "attachmenturl": {
  760. "description": "附件地址",
  761. "type": "string"
  762. },
  763. "createtime": {
  764. "description": "创建时间",
  765. "type": "string"
  766. },
  767. "currencyid": {
  768. "description": "报价货币ID",
  769. "type": "integer"
  770. },
  771. "decimalplace": {
  772. "description": "报价小数位",
  773. "type": "integer"
  774. },
  775. "endtime": {
  776. "description": "预售结束时间",
  777. "type": "string"
  778. },
  779. "floorprice": {
  780. "description": "底价[大宗式竞拍]",
  781. "type": "number"
  782. },
  783. "goodscode": {
  784. "description": "商品代码(内部)",
  785. "type": "string"
  786. },
  787. "goodsdetail": {
  788. "description": "详情[大宗]",
  789. "type": "string"
  790. },
  791. "goodsid": {
  792. "description": "商品ID(自增ID SEQ_GOODS)",
  793. "type": "integer"
  794. },
  795. "goodsname": {
  796. "description": "商品名称",
  797. "type": "string"
  798. },
  799. "goodunit": {
  800. "description": "报价单位",
  801. "type": "string"
  802. },
  803. "goodunitid": {
  804. "description": "报价单位ID",
  805. "type": "integer"
  806. },
  807. "marketid": {
  808. "description": "所属市场ID",
  809. "type": "integer"
  810. },
  811. "marketname": {
  812. "description": "预售市场名称",
  813. "type": "string"
  814. },
  815. "presaledamount": {
  816. "description": "已预售总金额(预售结束时更新)",
  817. "type": "number"
  818. },
  819. "presaledqty": {
  820. "description": "已预售量(预售结束时更新)",
  821. "type": "integer"
  822. },
  823. "presalemode": {
  824. "description": "预售模式 - 1:一口价 2:大宗式竞拍",
  825. "type": "integer"
  826. },
  827. "presaleqty": {
  828. "description": "预售数量",
  829. "type": "integer"
  830. },
  831. "refprice": {
  832. "description": "参考价格[一口价]",
  833. "type": "number"
  834. },
  835. "relatedgoodsid": {
  836. "description": "关联交易合约ID",
  837. "type": "integer"
  838. },
  839. "relatedmarketid": {
  840. "description": "关联交易合约市场ID",
  841. "type": "integer"
  842. },
  843. "sellstatus": {
  844. "description": "卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理",
  845. "type": "integer"
  846. },
  847. "startprice": {
  848. "description": "起拍价[大宗式竞拍]",
  849. "type": "number"
  850. },
  851. "starttime": {
  852. "description": "预售开始时间",
  853. "type": "string"
  854. },
  855. "tradedate": {
  856. "description": "交易日(yyyyMMdd)",
  857. "type": "string"
  858. },
  859. "tradeprice": {
  860. "description": "成交价[大宗]",
  861. "type": "number"
  862. },
  863. "userid": {
  864. "description": "卖方用户ID",
  865. "type": "integer"
  866. }
  867. }
  868. },
  869. "cptrade.QueryPresaleGoodsExRsp": {
  870. "type": "object",
  871. "required": [
  872. "goodsid"
  873. ],
  874. "properties": {
  875. "attachmenturl": {
  876. "description": "附件地址",
  877. "type": "string"
  878. },
  879. "createtime": {
  880. "description": "创建时间",
  881. "type": "string"
  882. },
  883. "endtime": {
  884. "description": "预售结束时间",
  885. "type": "string"
  886. },
  887. "floorprice": {
  888. "description": "底价[大宗式竞拍]",
  889. "type": "number"
  890. },
  891. "goodsdetail": {
  892. "description": "详情[大宗]",
  893. "type": "string"
  894. },
  895. "goodsid": {
  896. "description": "商品ID(预售)",
  897. "type": "integer"
  898. },
  899. "goodunit": {
  900. "description": "报价单位",
  901. "type": "string"
  902. },
  903. "marketid": {
  904. "description": "预售市场ID - 根据预售模式选择市场",
  905. "type": "integer"
  906. },
  907. "presaledamount": {
  908. "description": "已预售总金额(预售结束时更新)",
  909. "type": "number"
  910. },
  911. "presaledqty": {
  912. "description": "已预售量(预售结束时更新)",
  913. "type": "integer"
  914. },
  915. "presalemode": {
  916. "description": "预售模式 - 1:一口价 2:大宗式竞拍",
  917. "type": "integer"
  918. },
  919. "presaleqty": {
  920. "description": "预售数量",
  921. "type": "integer"
  922. },
  923. "refprice": {
  924. "description": "参考价格[一口价]",
  925. "type": "number"
  926. },
  927. "relatedgoodsid": {
  928. "description": "关联交易合约ID",
  929. "type": "integer"
  930. },
  931. "relatedmarketid": {
  932. "description": "关联交易合约市场ID",
  933. "type": "integer"
  934. },
  935. "sellstatus": {
  936. "description": "卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理",
  937. "type": "integer"
  938. },
  939. "startprice": {
  940. "description": "起拍价[大宗式竞拍]",
  941. "type": "number"
  942. },
  943. "starttime": {
  944. "description": "预售开始时间",
  945. "type": "string"
  946. },
  947. "tradedate": {
  948. "description": "交易日(yyyyMMdd)",
  949. "type": "string"
  950. },
  951. "tradeprice": {
  952. "description": "成交价[大宗]",
  953. "type": "number"
  954. }
  955. }
  956. },
  957. "delivery.QueryDeliveryRelationRsp": {
  958. "type": "object",
  959. "required": [
  960. "begindate",
  961. "enddate",
  962. "goodsid",
  963. "mindeliveryqty",
  964. "xdeliveryratio"
  965. ],
  966. "properties": {
  967. "begindate": {
  968. "description": "起始日期(yyyyMMdd)",
  969. "type": "string"
  970. },
  971. "buytemplateid": {
  972. "description": "买履约计划模板ID",
  973. "type": "integer"
  974. },
  975. "deliverygoodscode": {
  976. "description": "品种代码",
  977. "type": "string"
  978. },
  979. "deliverygoodsid": {
  980. "description": "交割商品",
  981. "type": "integer"
  982. },
  983. "deliverygoodsname": {
  984. "description": "品种名称",
  985. "type": "string"
  986. },
  987. "deliverymode": {
  988. "description": "交割方式 - 1:点选式 2:申报式",
  989. "type": "integer"
  990. },
  991. "deliverypricerule": {
  992. "description": "交割价规则- 1:行情价 2:建仓价",
  993. "type": "integer"
  994. },
  995. "deliverytype": {
  996. "description": "交割模式 - 1:X交割 2:X+P交割 3:X+C交割 4:X+P+C交割",
  997. "type": "integer"
  998. },
  999. "enddate": {
  1000. "description": "结束日期(yyyyMMdd)",
  1001. "type": "string"
  1002. },
  1003. "goodscode": {
  1004. "description": "商品代码",
  1005. "type": "string"
  1006. },
  1007. "goodsid": {
  1008. "description": "交易合约ID",
  1009. "type": "integer"
  1010. },
  1011. "goodsname": {
  1012. "description": "商品名称",
  1013. "type": "string"
  1014. },
  1015. "marketid": {
  1016. "description": "市场ID",
  1017. "type": "integer"
  1018. },
  1019. "mindeliveryqty": {
  1020. "description": "最小交割系数(K)",
  1021. "type": "integer"
  1022. },
  1023. "p2deliveryprice": {
  1024. "description": "P2合约价格(商品价时填写0,固定值时填写固定值)",
  1025. "type": "number"
  1026. },
  1027. "p2deliveryratio": {
  1028. "description": "P2合约系数(p)",
  1029. "type": "integer"
  1030. },
  1031. "p2goodsid": {
  1032. "description": "P2合约ID",
  1033. "type": "integer"
  1034. },
  1035. "p2pricemode": {
  1036. "description": "P2合约价格方式 - 1:商品价 2:固定值",
  1037. "type": "integer"
  1038. },
  1039. "pdeliveryprice": {
  1040. "description": "P合约价格(商品价时填写0,固定值时填写固定值)",
  1041. "type": "number"
  1042. },
  1043. "pdeliveryratio": {
  1044. "description": "P合约系数(n)",
  1045. "type": "integer"
  1046. },
  1047. "pgoodsid": {
  1048. "description": "P合约ID",
  1049. "type": "integer"
  1050. },
  1051. "ppricemode": {
  1052. "description": "P合约价格方式 - 1:商品价 2:固定值",
  1053. "type": "integer"
  1054. },
  1055. "rratio": {
  1056. "description": "兑换系数(R)",
  1057. "type": "integer"
  1058. },
  1059. "rratio1": {
  1060. "description": "兑换系数(交易合约)(R1)",
  1061. "type": "integer"
  1062. },
  1063. "rratio2": {
  1064. "description": "兑换系数(仓单标准)(R2)",
  1065. "type": "integer"
  1066. },
  1067. "selltemplateid": {
  1068. "description": "卖履约计划模板ID",
  1069. "type": "integer"
  1070. },
  1071. "wrstandardid": {
  1072. "description": "仓单标准ID",
  1073. "type": "integer"
  1074. },
  1075. "xdeliveryratio": {
  1076. "description": "交易合约系数(m)",
  1077. "type": "integer"
  1078. }
  1079. }
  1080. }
  1081. },
  1082. "securityDefinitions": {
  1083. "ApiKeyAuth": {
  1084. "type": "apiKey",
  1085. "name": "Authorization",
  1086. "in": "header"
  1087. }
  1088. }
  1089. }`
  1090. type swaggerInfo struct {
  1091. Version string
  1092. Host string
  1093. BasePath string
  1094. Schemes []string
  1095. Title string
  1096. Description string
  1097. }
  1098. // SwaggerInfo holds exported Swagger Info so clients can modify it
  1099. var SwaggerInfo = swaggerInfo{
  1100. Version: "1.0",
  1101. Host: "",
  1102. BasePath: "/api",
  1103. Schemes: []string{},
  1104. Title: "MTP2.0 查询服务 API",
  1105. Description: "新的查询服务,替代原通用查询服务。",
  1106. }
  1107. type s struct{}
  1108. func (s *s) ReadDoc() string {
  1109. sInfo := SwaggerInfo
  1110. sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
  1111. t, err := template.New("swagger_info").Funcs(template.FuncMap{
  1112. "marshal": func(v interface{}) string {
  1113. a, _ := json.Marshal(v)
  1114. return string(a)
  1115. },
  1116. }).Parse(doc)
  1117. if err != nil {
  1118. return doc
  1119. }
  1120. var tpl bytes.Buffer
  1121. if err := t.Execute(&tpl, sInfo); err != nil {
  1122. return doc
  1123. }
  1124. return tpl.String()
  1125. }
  1126. func init() {
  1127. swag.Register(swag.Name, &s{})
  1128. }