// 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/QueryPreasleApply": { "get": { "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" } } } } } }, "definitions": { "app.Response": { "type": "object", "properties": { "code": { "type": "integer" }, "data": { "type": "object" }, "msg": { "type": "string" } } }, "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" }, "firstremark": { "description": "初审备注", "type": "string" }, "goodscode": { "description": "商品代码", "type": "string" }, "goodsname": { "description": "商品名称", "type": "string" }, "handlestatus": { "description": "处理状态", "type": "integer" }, "marketid": { "description": "预售市场ID", "type": "integer" }, "presaleqty": { "description": "预售数量", "type": "integer" }, "relatedgoodsid": { "description": "关联交易合约ID", "type": "integer" }, "secondremark": { "description": "复审备注", "type": "string" }, "starttime": { "description": "预售开始时间", "type": "string" }, "tradedate": { "description": "交易日(yyyyMMdd)", "type": "string" }, "userid": { "description": "申请人ID", "type": "integer" } } } }, "securityDefinitions": { "ApiKeyAuth": { "type": "apiKey", "name": "token", "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{}) }