131 lines
3.7 KiB
Go
131 lines
3.7 KiB
Go
|
|
// Package docs Code generated by swaggo/swag. DO NOT EDIT
|
||
|
|
package docs
|
||
|
|
|
||
|
|
import "github.com/swaggo/swag"
|
||
|
|
|
||
|
|
const docTemplate = `{
|
||
|
|
"schemes": {{ marshal .Schemes }},
|
||
|
|
"swagger": "2.0",
|
||
|
|
"info": {
|
||
|
|
"description": "{{escape .Description}}",
|
||
|
|
"title": "{{.Title}}",
|
||
|
|
"contact": {},
|
||
|
|
"version": "{{.Version}}"
|
||
|
|
},
|
||
|
|
"host": "{{.Host}}",
|
||
|
|
"basePath": "{{.BasePath}}",
|
||
|
|
"paths": {
|
||
|
|
"/model/diagram_load/{page_id}": {
|
||
|
|
"get": {
|
||
|
|
"description": "load circuit diagram info by page id",
|
||
|
|
"consumes": [
|
||
|
|
"application/json"
|
||
|
|
],
|
||
|
|
"produces": [
|
||
|
|
"application/json"
|
||
|
|
],
|
||
|
|
"tags": [
|
||
|
|
"load circuit_diagram"
|
||
|
|
],
|
||
|
|
"summary": "load circuit diagram info",
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"type": "integer",
|
||
|
|
"description": "page ID",
|
||
|
|
"name": "page_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "request process success",
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/definitions/network.SuccessResponse"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"description": "request process failed",
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/definitions/network.FailureResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"definitions": {
|
||
|
|
"network.FailResponseHeader": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"err_msg": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"status": {
|
||
|
|
"type": "integer",
|
||
|
|
"example": 400
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"network.FailureResponse": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"header": {
|
||
|
|
"$ref": "#/definitions/network.FailResponseHeader"
|
||
|
|
},
|
||
|
|
"payload": {
|
||
|
|
"type": "object",
|
||
|
|
"additionalProperties": true
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"network.SuccessResponse": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"header": {
|
||
|
|
"$ref": "#/definitions/network.SuccessResponseHeader"
|
||
|
|
},
|
||
|
|
"payload": {
|
||
|
|
"type": "object",
|
||
|
|
"additionalProperties": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"example": {
|
||
|
|
"key": "value"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"network.SuccessResponseHeader": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"err_msg": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"status": {
|
||
|
|
"type": "integer",
|
||
|
|
"example": 200
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}`
|
||
|
|
|
||
|
|
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
||
|
|
var SwaggerInfo = &swag.Spec{
|
||
|
|
Version: "",
|
||
|
|
Host: "",
|
||
|
|
BasePath: "",
|
||
|
|
Schemes: []string{},
|
||
|
|
Title: "",
|
||
|
|
Description: "",
|
||
|
|
InfoInstanceName: "swagger",
|
||
|
|
SwaggerTemplate: docTemplate,
|
||
|
|
LeftDelim: "{{",
|
||
|
|
RightDelim: "}}",
|
||
|
|
}
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
|
||
|
|
}
|