swagger.json 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. "security": [
  16. {
  17. "ApiKeyAuth": []
  18. }
  19. ],
  20. "produces": [
  21. "application/json"
  22. ],
  23. "tags": [
  24. "产能预售"
  25. ],
  26. "summary": "查询产能预售申请表信息",
  27. "parameters": [
  28. {
  29. "type": "integer",
  30. "description": "账户ID",
  31. "name": "userid",
  32. "in": "query",
  33. "required": true
  34. },
  35. {
  36. "type": "integer",
  37. "description": "申请ID",
  38. "name": "applyid",
  39. "in": "query"
  40. },
  41. {
  42. "type": "integer",
  43. "description": "资金账户ID",
  44. "name": "accountid",
  45. "in": "query"
  46. }
  47. ],
  48. "responses": {
  49. "200": {
  50. "description": "OK",
  51. "schema": {
  52. "$ref": "#/definitions/cptrade.Cptradepresaleapply"
  53. }
  54. },
  55. "500": {
  56. "description": "Internal Server Error",
  57. "schema": {
  58. "$ref": "#/definitions/app.Response"
  59. }
  60. }
  61. }
  62. }
  63. },
  64. "/WRTrade/GetAllDeliveryGoods": {
  65. "get": {
  66. "security": [
  67. {
  68. "ApiKeyAuth": []
  69. }
  70. ],
  71. "produces": [
  72. "application/json"
  73. ],
  74. "tags": [
  75. "仓单贸易"
  76. ],
  77. "summary": "获取带仓单分类的种类信息",
  78. "responses": {
  79. "200": {
  80. "description": "OK",
  81. "schema": {
  82. "$ref": "#/definitions/app.Response"
  83. }
  84. },
  85. "500": {
  86. "description": "Internal Server Error",
  87. "schema": {
  88. "$ref": "#/definitions/app.Response"
  89. }
  90. }
  91. }
  92. }
  93. }
  94. },
  95. "definitions": {
  96. "app.Response": {
  97. "type": "object",
  98. "properties": {
  99. "code": {
  100. "type": "integer"
  101. },
  102. "data": {
  103. "type": "object"
  104. },
  105. "msg": {
  106. "type": "string"
  107. }
  108. }
  109. },
  110. "cptrade.Cptradepresaleapply": {
  111. "type": "object",
  112. "required": [
  113. "applyid"
  114. ],
  115. "properties": {
  116. "accountid": {
  117. "description": "申请人账户ID",
  118. "type": "integer"
  119. },
  120. "applyid": {
  121. "description": "申请ID(181+Unix秒时间戳(10位)+xxxxxx)",
  122. "type": "integer"
  123. },
  124. "applystatus": {
  125. "description": "申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销",
  126. "type": "integer"
  127. },
  128. "applytime": {
  129. "description": "申请时间",
  130. "type": "string"
  131. },
  132. "attachmenturl": {
  133. "description": "附件地址",
  134. "type": "string"
  135. },
  136. "endtime": {
  137. "description": "预售结束时间",
  138. "type": "string"
  139. },
  140. "firstremark": {
  141. "description": "初审备注",
  142. "type": "string"
  143. },
  144. "goodscode": {
  145. "description": "商品代码",
  146. "type": "string"
  147. },
  148. "goodsname": {
  149. "description": "商品名称",
  150. "type": "string"
  151. },
  152. "handlestatus": {
  153. "description": "处理状态",
  154. "type": "integer"
  155. },
  156. "marketid": {
  157. "description": "预售市场ID",
  158. "type": "integer"
  159. },
  160. "presaleqty": {
  161. "description": "预售数量",
  162. "type": "integer"
  163. },
  164. "relatedgoodsid": {
  165. "description": "关联交易合约ID",
  166. "type": "integer"
  167. },
  168. "secondremark": {
  169. "description": "复审备注",
  170. "type": "string"
  171. },
  172. "starttime": {
  173. "description": "预售开始时间",
  174. "type": "string"
  175. },
  176. "tradedate": {
  177. "description": "交易日(yyyyMMdd)",
  178. "type": "string"
  179. },
  180. "userid": {
  181. "description": "申请人ID",
  182. "type": "integer"
  183. }
  184. }
  185. }
  186. },
  187. "securityDefinitions": {
  188. "ApiKeyAuth": {
  189. "type": "apiKey",
  190. "name": "token",
  191. "in": "header"
  192. }
  193. }
  194. }