swagger.json 5.1 KB

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