swagger.yaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. basePath: /api
  2. definitions:
  3. app.Response:
  4. properties:
  5. code:
  6. type: integer
  7. data:
  8. type: object
  9. msg:
  10. type: string
  11. type: object
  12. cptrade.Cptradepresaleapply:
  13. properties:
  14. accountid:
  15. description: 申请人账户ID
  16. type: integer
  17. applyid:
  18. description: 申请ID(181+Unix秒时间戳(10位)+xxxxxx)
  19. type: integer
  20. applystatus:
  21. description: 申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销
  22. type: integer
  23. applytime:
  24. description: 申请时间
  25. type: string
  26. attachmenturl:
  27. description: 附件地址
  28. type: string
  29. endtime:
  30. description: 预售结束时间
  31. type: string
  32. firstremark:
  33. description: 初审备注
  34. type: string
  35. goodscode:
  36. description: 商品代码
  37. type: string
  38. goodsname:
  39. description: 商品名称
  40. type: string
  41. handlestatus:
  42. description: 处理状态
  43. type: integer
  44. marketid:
  45. description: 预售市场ID
  46. type: integer
  47. presaleqty:
  48. description: 预售数量
  49. type: integer
  50. relatedgoodsid:
  51. description: 关联交易合约ID
  52. type: integer
  53. secondremark:
  54. description: 复审备注
  55. type: string
  56. starttime:
  57. description: 预售开始时间
  58. type: string
  59. tradedate:
  60. description: 交易日(yyyyMMdd)
  61. type: string
  62. userid:
  63. description: 申请人ID
  64. type: integer
  65. required:
  66. - applyid
  67. type: object
  68. info:
  69. contact: {}
  70. description: 新的查询服务,替代原通用查询服务。
  71. license: {}
  72. termsOfService: http://muchinfo.cn
  73. title: MTP2.0 查询服务 API
  74. version: "1.0"
  75. paths:
  76. /CPTrade/QueryPreasleApply:
  77. get:
  78. parameters:
  79. - description: 账户ID
  80. in: query
  81. name: userid
  82. required: true
  83. type: integer
  84. - description: 申请ID
  85. in: query
  86. name: applyid
  87. type: integer
  88. - description: 资金账户ID
  89. in: query
  90. name: accountid
  91. type: integer
  92. produces:
  93. - application/json
  94. responses:
  95. "200":
  96. description: OK
  97. schema:
  98. $ref: '#/definitions/cptrade.Cptradepresaleapply'
  99. "500":
  100. description: Internal Server Error
  101. schema:
  102. $ref: '#/definitions/app.Response'
  103. security:
  104. - ApiKeyAuth: []
  105. summary: 查询产能预售申请表信息
  106. tags:
  107. - 产能预售
  108. /WRTrade/GetAllDeliveryGoods:
  109. get:
  110. produces:
  111. - application/json
  112. responses:
  113. "200":
  114. description: OK
  115. schema:
  116. $ref: '#/definitions/app.Response'
  117. "500":
  118. description: Internal Server Error
  119. schema:
  120. $ref: '#/definitions/app.Response'
  121. security:
  122. - ApiKeyAuth: []
  123. summary: 获取带仓单分类的种类信息
  124. tags:
  125. - 仓单贸易
  126. securityDefinitions:
  127. ApiKeyAuth:
  128. in: header
  129. name: token
  130. type: apiKey
  131. swagger: "2.0"