// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // This file was generated by swaggo/swag package docs import ( "bytes" "encoding/json" "strings" "github.com/alecthomas/template" "github.com/swaggo/swag" ) var doc = `{ "schemes": {{ marshal .Schemes }}, "swagger": "2.0", "info": { "description": "{{.Description}}", "title": "{{.Title}}", "termsOfService": "http://muchinfo.cn", "contact": {}, "license": {}, "version": "{{.Version}}" }, "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { "/CPTrade/QueryCPTradePositionCancel": { "get": { "security": [ { "ApiKeyAuth": [] } ], "produces": [ "application/json" ], "tags": [ "产能预售" ], "summary": "查询远期订单注销申请信息", "parameters": [ { "type": "integer", "description": "账户ID", "name": "userid", "in": "query", "required": true }, { "type": "integer", "description": "注销ID", "name": "cancelid", "in": "query" }, { "type": "integer", "description": "资金账户ID", "name": "accountid", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/cptrade.Cptradepositioncancel" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/app.Response" } } } } }, "/CPTrade/QueryCPTradeUserGoodsData": { "get": { "security": [ { "ApiKeyAuth": [] } ], "produces": [ "application/json" ], "tags": [ "产能预售" ], "summary": "查询远期订单信息", "parameters": [ { "type": "integer", "description": "资金账户ID", "name": "accountid", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/cptrade.Cptradeusergoodsdata" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/app.Response" } } } } }, "/CPTrade/QueryPreasleApply": { "get": { "security": [ { "ApiKeyAuth": [] } ], "produces": [ "application/json" ], "tags": [ "产能预售" ], "summary": "查询产能预售申请信息", "parameters": [ { "type": "integer", "description": "账户ID", "name": "userid", "in": "query", "required": true }, { "type": "integer", "description": "申请ID", "name": "applyid", "in": "query" }, { "type": "integer", "description": "资金账户ID", "name": "accountid", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/cptrade.Cptradepresaleapply" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/app.Response" } } } } }, "/CPTrade/QueryPresaleGoodsEx": { "get": { "security": [ { "ApiKeyAuth": [] } ], "produces": [ "application/json" ], "tags": [ "产能预售" ], "summary": "查询产能预售商品扩展信息", "parameters": [ { "type": "integer", "description": "预售商品ID", "name": "goodsid", "in": "query" }, { "type": "integer", "description": "预售市场ID", "name": "marketid", "in": "query" }, { "type": "integer", "description": "预售模式 - 1:一口价 2:大宗式竞拍", "name": "presalemode", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/cptrade.Cptradepresalegoodsex" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/app.Response" } } } } }, "/WRTrade/GetAllDeliveryGoods": { "get": { "security": [ { "ApiKeyAuth": [] } ], "produces": [ "application/json" ], "tags": [ "仓单贸易" ], "summary": "获取带仓单分类的种类信息", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/app.Response" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/app.Response" } } } } } }, "definitions": { "app.Response": { "type": "object", "properties": { "code": { "type": "integer" }, "data": { "type": "object" }, "msg": { "type": "string" } } }, "cptrade.Cptradepositioncancel": { "type": "object", "required": [ "cancelid" ], "properties": { "accountid": { "description": "申请人账户ID", "type": "integer" }, "applystatus": { "description": "申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销", "type": "integer" }, "applytime": { "description": "申请时间", "type": "string" }, "cancelid": { "description": "注销ID(SEQ_CPTRADE_POSITIONCANCEL)", "type": "integer" }, "cancelqty": { "description": "注销数量", "type": "integer" }, "createtime": { "description": "创建时间", "type": "string" }, "creatorid": { "description": "创建人", "type": "integer" }, "goodscode": { "description": "订单商品代码", "type": "string" }, "goodsid": { "description": "商品ID", "type": "integer" }, "goodsname": { "description": "订单商品名称", "type": "string" }, "goodunit": { "description": "报价单位", "type": "string" }, "handlestatus": { "description": "处理状态", "type": "integer" }, "marketid": { "description": "市场ID", "type": "integer" }, "marketname": { "description": "市场名称", "type": "string" }, "tradedate": { "description": "交易日(yyyyMMdd)", "type": "string" }, "userid": { "description": "申请人ID", "type": "integer" } } }, "cptrade.Cptradepresaleapply": { "type": "object", "required": [ "applyid" ], "properties": { "accountid": { "description": "申请人账户ID", "type": "integer" }, "applyid": { "description": "申请ID(181+Unix秒时间戳(10位)+xxxxxx)", "type": "integer" }, "applystatus": { "description": "申请状态 - 1:已提交 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销", "type": "integer" }, "applytime": { "description": "申请时间", "type": "string" }, "attachmenturl": { "description": "附件地址", "type": "string" }, "endtime": { "description": "预售结束时间", "type": "string" }, "goodscode": { "description": "商品代码", "type": "string" }, "goodsname": { "description": "商品名称", "type": "string" }, "goodunit": { "description": "报价单位", "type": "string" }, "handlestatus": { "description": "处理状态", "type": "integer" }, "marketid": { "description": "预售市场ID", "type": "integer" }, "marketname": { "description": "预售市场名称", "type": "string" }, "presaleqty": { "description": "预售数量", "type": "integer" }, "relatedgoodscode": { "description": "关联交易合约代码", "type": "string" }, "relatedgoodsid": { "description": "关联交易合约ID", "type": "integer" }, "relatedgoodsname": { "description": "关联交易合约名称", "type": "string" }, "starttime": { "description": "预售开始时间", "type": "string" }, "tradedate": { "description": "交易日(yyyyMMdd)", "type": "string" }, "trademode": { "description": "交易模式 - 16:挂牌点选 21:大宗竞拍", "type": "integer" }, "userid": { "description": "申请人ID", "type": "integer" } } }, "cptrade.Cptradepresalegoodsex": { "type": "object", "required": [ "goodsid" ], "properties": { "attachmenturl": { "description": "附件地址", "type": "string" }, "createtime": { "description": "创建时间", "type": "string" }, "endtime": { "description": "预售结束时间", "type": "string" }, "floorprice": { "description": "底价[大宗式竞拍]", "type": "number" }, "goodsid": { "description": "商品ID(预售)", "type": "integer" }, "marketid": { "description": "预售市场ID - 根据预售模式选择市场", "type": "integer" }, "presaledamount": { "description": "已预售总金额(预售结束时更新)", "type": "number" }, "presaledqty": { "description": "已预售量(预售结束时更新)", "type": "integer" }, "presalemode": { "description": "预售模式 - 1:一口价 2:大宗式竞拍", "type": "integer" }, "presaleqty": { "description": "预售数量", "type": "integer" }, "refprice": { "description": "参考价格[一口价]", "type": "number" }, "relatedgoodsid": { "description": "关联交易合约ID", "type": "integer" }, "relatedmarketid": { "description": "关联交易合约市场ID", "type": "integer" }, "sellstatus": { "description": "卖方处理状态 - 1:卖方头寸未处理 2:卖方头寸已处理", "type": "integer" }, "startprice": { "description": "起拍价[大宗式竞拍]", "type": "number" }, "starttime": { "description": "预售开始时间", "type": "string" }, "tradedate": { "description": "交易日(yyyyMMdd)", "type": "string" } } }, "cptrade.Cptradeusergoodsdata": { "type": "object", "required": [ "accountid", "goodsid" ], "properties": { "EnabledQty": { "description": "可用量", "type": "integer" }, "GoodsCode": { "description": "订单商品代码", "type": "string" }, "GoodsName": { "description": "订单商品名称", "type": "string" }, "WRStandardCode": { "description": "仓单标准代码", "type": "string" }, "WRStandardName": { "description": "仓单标准名称", "type": "string" }, "accountid": { "description": "账户ID", "type": "integer" }, "cancelqty": { "description": "注销量", "type": "integer" }, "curpresaleqty": { "description": "当前预售量", "type": "integer" }, "deliveryqty": { "description": "交割量", "type": "integer" }, "freezeamount": { "description": "冻结金额", "type": "number" }, "goodsid": { "description": "商品ID", "type": "integer" }, "goodunit": { "description": "报价单位", "type": "string" }, "hasspotfreeze": { "description": "是否有现货冻结 - 0:否 1:有", "type": "integer" }, "inqty": { "description": "转入量(总数量)", "type": "integer" }, "marketid": { "description": "市场ID", "type": "integer" }, "presaledamount": { "description": "已预售总金额", "type": "integer" }, "presaledqty": { "description": "已预售量", "type": "integer" }, "userid": { "description": "用户ID", "type": "integer" }, "wrstandardid": { "description": "仓单标准ID", "type": "integer" } } } }, "securityDefinitions": { "ApiKeyAuth": { "type": "apiKey", "name": "Authorization", "in": "header" } } }` type swaggerInfo struct { Version string Host string BasePath string Schemes []string Title string Description string } // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = swaggerInfo{ Version: "1.0", Host: "", BasePath: "/api", Schemes: []string{}, Title: "MTP2.0 查询服务 API", Description: "新的查询服务,替代原通用查询服务。", } type s struct{} func (s *s) ReadDoc() string { sInfo := SwaggerInfo sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1) t, err := template.New("swagger_info").Funcs(template.FuncMap{ "marshal": func(v interface{}) string { a, _ := json.Marshal(v) return string(a) }, }).Parse(doc) if err != nil { return doc } var tpl bytes.Buffer if err := t.Execute(&tpl, sInfo); err != nil { return doc } return tpl.String() } func init() { swag.Register(swag.Name, &s{}) }