// 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": { "/api/v1/auth/path": { "post": { "security": [ { "JwtAuth": [] } ], "description": "创建接口路径", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限Api" ], "summary": "创建接口路径", "parameters": [ { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "method", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "string", "name": "path", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/auth/path/list": { "get": { "security": [ { "JwtAuth": [] } ], "description": "查询接口路径列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限Api" ], "summary": "查询接口路径列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.AuthAPIPath" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/auth/path/paging": { "get": { "security": [ { "JwtAuth": [] } ], "description": "分页查询接口路径信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限Api" ], "summary": "分页查询接口路径信息", "parameters": [ { "type": "string", "name": "name", "in": "query" }, { "type": "integer", "example": 1, "description": "页码", "name": "current", "in": "query", "required": true }, { "type": "integer", "example": 10, "description": "页面行数", "name": "size", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PageDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/auth/path/{id}": { "get": { "security": [ { "JwtAuth": [] } ], "description": "查询接口路径", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限Api" ], "summary": "查询接口路径", "parameters": [ { "type": "integer", "description": "接口路径ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.AuthAPIPath" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "put": { "security": [ { "JwtAuth": [] } ], "description": "修改接口路径", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限Api" ], "summary": "修改接口路径", "parameters": [ { "type": "integer", "description": "接口路径ID", "name": "id", "in": "path", "required": true }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "method", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "string", "name": "path", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "delete": { "security": [ { "JwtAuth": [] } ], "description": "删除接口路径", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限Api" ], "summary": "删除接口路径", "parameters": [ { "type": "integer", "description": "接口路径ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/auth/role": { "post": { "security": [ { "JwtAuth": [] } ], "description": "创建角色", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限Api" ], "summary": "创建角色", "parameters": [ { "type": "array", "items": { "type": "integer" }, "collectionFormat": "csv", "name": "addPaths", "in": "query" }, { "type": "array", "items": { "type": "integer" }, "collectionFormat": "csv", "name": "delPaths", "in": "query" }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/auth/role/list": { "get": { "security": [ { "JwtAuth": [] } ], "description": "查询角色列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限Api" ], "summary": "查询角色列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.AuthRoleRspDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/auth/role/paging": { "get": { "security": [ { "JwtAuth": [] } ], "description": "分页查询角色信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限Api" ], "summary": "分页查询角色信息", "parameters": [ { "type": "integer", "example": 1, "description": "页码", "name": "current", "in": "query", "required": true }, { "type": "integer", "example": 10, "description": "页面行数", "name": "size", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PageDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/auth/role/{id}": { "get": { "security": [ { "JwtAuth": [] } ], "description": "查询角色详情", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限Api" ], "summary": "查询角色详情", "parameters": [ { "type": "integer", "description": "角色ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.AuthRoleDetailRspDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "put": { "security": [ { "JwtAuth": [] } ], "description": "修改角色信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限Api" ], "summary": "修改角色信息", "parameters": [ { "type": "integer", "description": "角色信息ID", "name": "id", "in": "path", "required": true }, { "type": "array", "items": { "type": "integer" }, "collectionFormat": "csv", "name": "addPaths", "in": "query" }, { "type": "array", "items": { "type": "integer" }, "collectionFormat": "csv", "name": "delPaths", "in": "query" }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "delete": { "security": [ { "JwtAuth": [] } ], "description": "删除角色信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限Api" ], "summary": "删除角色信息", "parameters": [ { "type": "integer", "description": "角色ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/auth/userLinkRole": { "post": { "security": [ { "JwtAuth": [] } ], "description": "用户关联角色", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "权限Api" ], "summary": "用户关联角色", "parameters": [ { "type": "array", "items": { "type": "integer" }, "collectionFormat": "csv", "name": "addRids", "in": "query" }, { "type": "array", "items": { "type": "integer" }, "collectionFormat": "csv", "name": "delRids", "in": "query" }, { "type": "integer", "name": "uid", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/category": { "post": { "security": [ { "JwtAuth": [] } ], "description": "创建厂家数据", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "厂家信息Api" ], "summary": "创建厂家信息", "parameters": [ { "type": "string", "name": "code", "in": "query" }, { "type": "string", "name": "config", "in": "query" }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/category/list": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过厂家名称过滤,查询厂家信息列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "厂家信息Api" ], "summary": "查询厂家信息列表", "parameters": [ { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PageDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/category/paging": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过厂家名称过滤,分页查询厂家信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "厂家信息Api" ], "summary": "分页查询厂家信息", "parameters": [ { "type": "string", "name": "name", "in": "query" }, { "type": "integer", "example": 1, "description": "页码", "name": "current", "in": "query", "required": true }, { "type": "integer", "example": 10, "description": "页面行数", "name": "size", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PageDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/category/{id}": { "get": { "security": [ { "JwtAuth": [] } ], "description": "查询厂家信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "厂家信息Api" ], "summary": "查询厂家信息", "parameters": [ { "type": "integer", "description": "厂家ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.Category" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "put": { "security": [ { "JwtAuth": [] } ], "description": "修改厂家信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "厂家信息Api" ], "summary": "修改厂家信息", "parameters": [ { "type": "integer", "description": "厂家信息ID", "name": "id", "in": "path", "required": true }, { "type": "string", "name": "code", "in": "query" }, { "type": "string", "name": "config", "in": "query" }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "delete": { "security": [ { "JwtAuth": [] } ], "description": "删除厂家信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "厂家信息Api" ], "summary": "删除厂家信息", "parameters": [ { "type": "integer", "description": "厂家信息ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/drafting": { "post": { "security": [ { "JwtAuth": [] } ], "description": "创建草稿数据", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "草稿Api" ], "summary": "创建草稿", "parameters": [ { "type": "string", "name": "category", "in": "query" }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "array", "items": { "type": "integer" }, "collectionFormat": "csv", "name": "proto", "in": "query" }, { "enum": [ 0, 1, 2, 3 ], "type": "integer", "x-enum-varnames": [ "PictureType_StationLayout", "PictureType_Psl", "PictureType_RelayCabinetLayout", "PictureType_IBP" ], "name": "type", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/drafting/calculatelink": { "post": { "security": [ { "JwtAuth": [] } ], "description": "根据地图数据新生成计算的link信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "草稿Api" ], "summary": "根据地图数据新生成计算的link信息", "parameters": [ { "type": "array", "items": { "type": "integer" }, "collectionFormat": "csv", "name": "proto", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/drafting/list": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过草稿类型过滤,列表查询草稿", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "草稿Api" ], "summary": "列表查询草稿", "parameters": [ { "type": "integer", "name": "type", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PageDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/drafting/paging": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过草稿名称过滤,分页查询草稿", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "草稿Api" ], "summary": "分页查询草稿", "parameters": [ { "type": "string", "name": "name", "in": "query" }, { "type": "integer", "example": 1, "description": "页码", "name": "current", "in": "query", "required": true }, { "type": "integer", "example": 10, "description": "页面行数", "name": "size", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PageDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/drafting/{id}": { "get": { "security": [ { "JwtAuth": [] } ], "description": "查询草稿详情", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "草稿Api" ], "summary": "查询草稿详情", "parameters": [ { "type": "integer", "description": "草稿ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.Drafting" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "put": { "security": [ { "JwtAuth": [] } ], "description": "修改草稿信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "草稿Api" ], "summary": "修改草稿信息", "parameters": [ { "type": "integer", "description": "草稿ID", "name": "id", "in": "path", "required": true }, { "type": "string", "name": "category", "in": "query" }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "array", "items": { "type": "integer" }, "collectionFormat": "csv", "name": "proto", "in": "query" }, { "enum": [ 0, 1, 2, 3 ], "type": "integer", "x-enum-varnames": [ "PictureType_StationLayout", "PictureType_Psl", "PictureType_RelayCabinetLayout", "PictureType_IBP" ], "name": "type", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "delete": { "security": [ { "JwtAuth": [] } ], "description": "删除草稿数据", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "草稿Api" ], "summary": "删除草稿数据", "parameters": [ { "type": "integer", "description": "草稿ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/drafting/{id}/saveAs": { "post": { "security": [ { "JwtAuth": [] } ], "description": "草稿另存为", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "草稿Api" ], "summary": "草稿另存为", "parameters": [ { "type": "integer", "description": "源草稿id", "name": "id", "in": "path", "required": true }, { "type": "string", "name": "category", "in": "query" }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "array", "items": { "type": "integer" }, "collectionFormat": "csv", "name": "proto", "in": "query" }, { "enum": [ 0, 1, 2, 3 ], "type": "integer", "x-enum-varnames": [ "PictureType_StationLayout", "PictureType_Psl", "PictureType_RelayCabinetLayout", "PictureType_IBP" ], "name": "type", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/project": { "post": { "security": [ { "JwtAuth": [] } ], "description": "创建项目数据", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目信息Api" ], "summary": "创建项目信息", "parameters": [ { "type": "string", "name": "code", "in": "query" }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/project/list": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过项目名称过滤,查询项目信息列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目信息Api" ], "summary": "查询项目信息列表", "parameters": [ { "type": "string", "name": "code", "in": "query" }, { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.Project" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/project/paging": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过项目名称过滤,分页查询项目信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目信息Api" ], "summary": "分页查询项目信息", "parameters": [ { "type": "string", "name": "code", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "integer", "example": 1, "description": "页码", "name": "current", "in": "query", "required": true }, { "type": "integer", "example": 10, "description": "页面行数", "name": "size", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PageDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/project/{id}": { "get": { "security": [ { "JwtAuth": [] } ], "description": "查询项目信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目信息Api" ], "summary": "查询项目信息", "parameters": [ { "type": "integer", "description": "项目ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.Project" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "put": { "security": [ { "JwtAuth": [] } ], "description": "修改项目信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目信息Api" ], "summary": "修改项目信息", "parameters": [ { "type": "integer", "description": "项目信息ID", "name": "id", "in": "path", "required": true }, { "type": "string", "name": "code", "in": "query" }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "delete": { "security": [ { "JwtAuth": [] } ], "description": "删除项目信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目信息Api" ], "summary": "删除项目信息", "parameters": [ { "type": "integer", "description": "项目信息ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/projectLink": { "post": { "security": [ { "JwtAuth": [] } ], "description": "保存项目的所有关联信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目关联信息Api" ], "summary": "保存项目的所有关联信息", "parameters": [ { "type": "array", "items": { "type": "integer" }, "collectionFormat": "csv", "name": "mids", "in": "query" }, { "type": "integer", "name": "pid", "in": "query" }, { "type": "array", "items": { "type": "integer" }, "collectionFormat": "csv", "name": "sids", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/projectLink/info/{id}": { "get": { "security": [ { "JwtAuth": [] } ], "description": "查询项目的所有关联信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目关联信息Api" ], "summary": "查询项目的所有关联信息", "parameters": [ { "type": "integer", "description": "项目ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.ProjectLinkRspDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/projectLink/mapInfo/trainSize/{id}": { "get": { "security": [ { "JwtAuth": [] } ], "description": "通过地图ID查询项目的关联列车尺寸信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目关联信息Api" ], "summary": "通过地图ID查询项目的关联列车尺寸信息", "parameters": [ { "type": "integer", "description": "地图ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.TrainSizeDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/projectLink/project/trainSize/{id}": { "get": { "security": [ { "JwtAuth": [] } ], "description": "通过项目ID查询项目的关联列车尺寸信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目关联信息Api" ], "summary": "通过项目ID查询项目的关联列车尺寸信息", "parameters": [ { "type": "integer", "description": "地图ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.TrainSizeDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/publishedGi/list": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过名称过滤", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "发布的图形数据Api" ], "summary": "列表查询发布的图形数据", "parameters": [ { "type": "string", "name": "category", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "string", "name": "time", "in": "query" }, { "type": "integer", "name": "type", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/model.PublishedGi" } } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/publishedGi/name": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过名称过滤", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "发布的图形数据Api" ], "summary": "根据Code查询发布地图数据", "parameters": [ { "type": "boolean", "name": "detail", "in": "query" }, { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/model.PublishedGi" } } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/publishedGi/paging": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过名称过滤", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "发布的图形数据Api" ], "summary": "分页查询发布的图形数据", "parameters": [ { "type": "string", "name": "name", "in": "query" }, { "type": "integer", "example": 1, "description": "页码", "name": "current", "in": "query", "required": true }, { "type": "integer", "example": 10, "description": "页面行数", "name": "size", "in": "query", "required": true }, { "type": "string", "name": "time", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PageDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/publishedGi/publish": { "post": { "security": [ { "JwtAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "发布的图形数据Api" ], "summary": "从草稿发布数据", "parameters": [ { "type": "integer", "description": "草稿数据的id", "name": "draftId", "in": "query" }, { "type": "string", "description": "发布后的名称", "name": "name", "in": "query" }, { "type": "string", "name": "note", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/publishedGi/saveAsDrafting/{id}": { "post": { "security": [ { "JwtAuth": [] } ], "description": "从发布数据拉取信息到草稿", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "发布的图形数据Api" ], "summary": "从发布数据拉取信息到草稿", "parameters": [ { "type": "integer", "description": "id", "name": "id", "in": "path", "required": true }, { "type": "integer", "description": "草稿数据的id", "name": "draftId", "in": "query" }, { "type": "string", "description": "发布后的名称", "name": "name", "in": "query" }, { "type": "string", "name": "note", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/publishedGi/{id}": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过名称过滤", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "发布的图形数据Api" ], "summary": "id查询发布的图形数据", "parameters": [ { "type": "integer", "description": "id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.PublishedGi" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "delete": { "security": [ { "JwtAuth": [] } ], "description": "可以通过名称过滤", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "发布的图形数据Api" ], "summary": "id删除发布的图形数据", "parameters": [ { "type": "integer", "description": "id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/runconfig": { "post": { "security": [ { "JwtAuth": [] } ], "description": "创建项目运行环境配置数据", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目运行环境配置Api" ], "summary": "创建项目运行环境配置信息", "parameters": [ { "type": "string", "name": "config", "in": "query", "required": true }, { "type": "string", "name": "description", "in": "query" }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query", "required": true } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/runconfig/description": { "get": { "security": [ { "JwtAuth": [] } ], "description": "获取项目运行环境信息结构说明", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目运行环境配置Api" ], "summary": "获取项目运行环境信息结构说明", "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/runconfig/list": { "get": { "security": [ { "JwtAuth": [] } ], "description": "无参数,查询项目运行环境配置列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目运行环境配置Api" ], "summary": "查询项目运行环境配置信息列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.ProjectRunConfigDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/runconfig/paging": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过项目名称过滤,分页查询项目运行环境配置信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目运行环境配置Api" ], "summary": "分页查询项目运行环境配置信息", "parameters": [ { "type": "string", "name": "name", "in": "query" }, { "type": "integer", "example": 1, "description": "页码", "name": "current", "in": "query", "required": true }, { "type": "integer", "example": 10, "description": "页面行数", "name": "size", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PageDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/runconfig/{id}": { "get": { "security": [ { "JwtAuth": [] } ], "description": "查询项目运行环境信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目运行环境配置Api" ], "summary": "查询项目运行环境信息", "parameters": [ { "type": "integer", "description": "项目运行环境ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.ProjectRunConfigDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "put": { "security": [ { "JwtAuth": [] } ], "description": "修改项目运行环境信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目运行环境配置Api" ], "summary": "修改项目运行环境信息", "parameters": [ { "type": "integer", "description": "项目运行环境信息ID", "name": "id", "in": "path", "required": true }, { "type": "string", "name": "code", "in": "query" }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "delete": { "security": [ { "JwtAuth": [] } ], "description": "删除项目运行环境信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "项目运行环境配置Api" ], "summary": "删除项目运行环境信息", "parameters": [ { "type": "integer", "description": "项目运行环境信息ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/simulation/:id/getMapKilometerRange": { "get": { "security": [ { "JwtAuth": [] } ], "description": "获取仿真地图的公里标范围", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ATS测试仿真Api" ], "summary": "获取仿真地图的公里标范围", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "string" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/simulation/axleSection/operation": { "post": { "security": [ { "JwtAuth": [] } ], "description": "ATS测试-计轴区段操作", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ATS测试仿真Api" ], "summary": "ATS测试-计轴区段操作", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true }, { "description": "ATS测试仿真-操作计轴区段", "name": "AxleSectionOperationReqDto", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.AxleSectionOperationReqDto" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "string" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/simulation/check/data": { "post": { "security": [ { "JwtAuth": [] } ], "description": "地图数据校验", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ATS测试仿真Api" ], "summary": "ATS测试仿真地图数据校验", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true }, { "description": "ATS测试仿真-地图数据", "name": "RemoveTrainDto", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.CheckMapDataReqDto" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.CheckMapDataRspDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/simulation/createByProject": { "post": { "security": [ { "JwtAuth": [] } ], "description": "创建ATS测试仿真通过项目ID", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ATS测试仿真Api" ], "summary": "创建ATS测试仿真", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true }, { "description": "创建仿真请求", "name": "SimulationCreateReqDto", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.SimulationCreateReqDto" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.SimulationCreateRspDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/simulation/destroy/{id}": { "post": { "security": [ { "JwtAuth": [] } ], "description": "ATS测试仿真-添加列车", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ATS测试仿真Api" ], "summary": "ATS仿真销毁", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true }, { "type": "integer", "description": "仿真id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "string" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/simulation/esbBtn/operation": { "post": { "security": [ { "JwtAuth": [] } ], "description": "ATS测试-ESB按钮操作", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ATS测试仿真Api" ], "summary": "ATS测试-ESB按钮操作", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true }, { "description": "ATS测试仿真-ESB按钮操作", "name": "EsbButtonOperationReqDto", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.EsbButtonOperationReqDto" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "string" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/simulation/ibp/btn/operation": { "post": { "security": [ { "JwtAuth": [] } ], "description": "ATS测试-IBP按钮操作", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ATS测试仿真Api" ], "summary": "ATS测试-IBP按钮操作", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true }, { "description": "ATS测试仿真-IBP按钮操作", "name": "IBPButtonOperationReqDto", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.IBPButtonOperationReqDto" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "string" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/simulation/ibp/key/operation": { "post": { "security": [ { "JwtAuth": [] } ], "description": "ATS测试-IBP钥匙操作", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ATS测试仿真Api" ], "summary": "ATS测试-IBP钥匙操作", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true }, { "description": "ATS测试仿真-IBP钥匙操作", "name": "KeyOperationReqDto", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.KeyOperationReqDto" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "string" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/simulation/list": { "get": { "security": [ { "JwtAuth": [] } ], "description": "获取ATS测试系统所有仿真实例的基本信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ATS测试仿真Api" ], "summary": "获取ATS测试系统所有仿真实例的基本信息", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/dto.SimulationInfoRspDto" } } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/simulation/psd/operation": { "post": { "security": [ { "JwtAuth": [] } ], "description": "屏蔽门操作", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ATS测试仿真Api" ], "summary": "屏蔽门操作", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true }, { "description": "屏蔽门操作", "name": "PsdOperationReq", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request_proto.PsdOperationReq" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "string" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/simulation/psl/operation": { "post": { "security": [ { "JwtAuth": [] } ], "description": "PSL操作", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ATS测试仿真Api" ], "summary": "PSL操作", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true }, { "description": "PSL操作", "name": "PslOperationReqDto", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.PslOperationReqDto" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "string" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/simulation/relay/operation": { "post": { "security": [ { "JwtAuth": [] } ], "description": "ATS测试-操作继电器", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ATS测试仿真Api" ], "summary": "获取ATS测试-操作继电器", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true }, { "description": "ATS测试仿真-操作继电器", "name": "RelayOperationReqDto", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.RelayOperationReqDto" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "string" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/simulation/signal/operation": { "post": { "security": [ { "JwtAuth": [] } ], "description": "ATS测试-信号机操作", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ATS测试仿真Api" ], "summary": "ATS测试-信号机操作", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true }, { "description": "ATS测试仿真-操作信号机", "name": "SignalOperationReqDto", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.SignalOperationReqDto" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "string" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/simulation/switch/operation": { "post": { "security": [ { "JwtAuth": [] } ], "description": "ATS测试-操作道岔", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ATS测试仿真Api" ], "summary": "获取ATS测试-操作道岔", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true }, { "description": "ATS测试仿真-操作道岔", "name": "TurnoutOperationReq", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request_proto.TurnoutOperationReq" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "string" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/simulation/train/add": { "post": { "security": [ { "JwtAuth": [] } ], "description": "ATS测试仿真-添加列车", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ATS测试仿真Api" ], "summary": "ATS测试仿真-添加列车", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true }, { "description": "ATS测试仿真-添加列车", "name": "AddTrainReqDto", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.AddTrainReqDto" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.AddTrainRspDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/simulation/train/remove": { "post": { "security": [ { "JwtAuth": [] } ], "description": "ATS测试仿真-移除列车", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ATS测试仿真Api" ], "summary": "ATS测试仿真-移除列车", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true }, { "description": "ATS测试仿真-移除列车", "name": "RemoveTrainDto", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.RemoveTrainDto" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "string" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/trainManage/model": { "post": { "security": [ { "JwtAuth": [] } ], "description": "创建列车型号数据", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "创建列车型号", "parameters": [ { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/trainManage/model/list": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过列车型号名称过滤,查询列车型号信息列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "查询列车型号信息列表", "parameters": [ { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PageDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/trainManage/model/paging": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过列车型号名称过滤,分页查询列车型号信息列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "分页查询列车型号信息列表", "parameters": [ { "type": "string", "name": "name", "in": "query" }, { "type": "integer", "example": 1, "description": "页码", "name": "current", "in": "query", "required": true }, { "type": "integer", "example": 10, "description": "页面行数", "name": "size", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PageDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/trainManage/model/{id}": { "get": { "security": [ { "JwtAuth": [] } ], "description": "查询列车型号详情", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "查询列车型号详情", "parameters": [ { "type": "integer", "description": "列车型号ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.TrainModel" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "put": { "security": [ { "JwtAuth": [] } ], "description": "修改列车型号信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "修改列车型号信息", "parameters": [ { "type": "integer", "description": "列车型号ID", "name": "id", "in": "path", "required": true }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "delete": { "security": [ { "JwtAuth": [] } ], "description": "删除列车型号数据", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "删除列车型号数据", "parameters": [ { "type": "integer", "description": "列车型号ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/trainManage/size": { "post": { "security": [ { "JwtAuth": [] } ], "description": "创建列车尺寸数据", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "创建列车尺寸", "parameters": [ { "type": "integer", "name": "carriage_length", "in": "query" }, { "type": "string", "name": "description", "in": "query" }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "integer", "name": "total_length", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/trainManage/size/list": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过列车尺寸名称过滤,查询列车尺寸信息列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "查询列车尺寸信息列表", "parameters": [ { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PageDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/trainManage/size/paging": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过列车尺寸名称过滤,分页查询列车尺寸信息列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "分页查询列车尺寸信息列表", "parameters": [ { "type": "string", "name": "name", "in": "query" }, { "type": "integer", "example": 1, "description": "页码", "name": "current", "in": "query", "required": true }, { "type": "integer", "example": 10, "description": "页面行数", "name": "size", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PageDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/trainManage/size/{id}": { "get": { "security": [ { "JwtAuth": [] } ], "description": "查询列车尺寸详情", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "查询列车尺寸详情", "parameters": [ { "type": "integer", "description": "列车尺寸ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.TrainSize" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "put": { "security": [ { "JwtAuth": [] } ], "description": "修改列车尺寸信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "修改列车尺寸信息", "parameters": [ { "type": "integer", "description": "列车尺寸ID", "name": "id", "in": "path", "required": true }, { "type": "integer", "name": "carriage_length", "in": "query" }, { "type": "string", "name": "description", "in": "query" }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "integer", "name": "total_length", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "delete": { "security": [ { "JwtAuth": [] } ], "description": "删除列车尺寸数据", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "删除列车尺寸数据", "parameters": [ { "type": "integer", "description": "列车尺寸ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/trainManage/wheelDiameter": { "post": { "security": [ { "JwtAuth": [] } ], "description": "创建列车轮径数据", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "创建列车轮径", "parameters": [ { "type": "integer", "name": "axial_position", "in": "query" }, { "type": "integer", "name": "diameter", "in": "query" }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "install_direction", "in": "query" }, { "type": "integer", "name": "max_diameter", "in": "query" }, { "type": "integer", "name": "min_diameter", "in": "query" }, { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/trainManage/wheelDiameter/list": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过列车轮径名称过滤,查询列车轮径信息列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "查询列车轮径信息列表", "parameters": [ { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PageDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/trainManage/wheelDiameter/paging": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过列车轮径名称过滤,分页查询列车轮径信息列表", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "分页查询列车轮径信息列表", "parameters": [ { "type": "string", "name": "name", "in": "query" }, { "type": "integer", "example": 1, "description": "页码", "name": "current", "in": "query", "required": true }, { "type": "integer", "example": 10, "description": "页面行数", "name": "size", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PageDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/trainManage/wheelDiameter/{id}": { "get": { "security": [ { "JwtAuth": [] } ], "description": "查询列车轮径详情", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "查询列车轮径详情", "parameters": [ { "type": "integer", "description": "列车轮径ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.TrainWheelDiameter" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "put": { "security": [ { "JwtAuth": [] } ], "description": "修改列车轮径信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "修改列车轮径信息", "parameters": [ { "type": "integer", "description": "列车轮径ID", "name": "id", "in": "path", "required": true }, { "type": "integer", "name": "axial_position", "in": "query" }, { "type": "integer", "name": "diameter", "in": "query" }, { "type": "integer", "name": "id", "in": "query" }, { "type": "string", "name": "install_direction", "in": "query" }, { "type": "integer", "name": "max_diameter", "in": "query" }, { "type": "integer", "name": "min_diameter", "in": "query" }, { "type": "string", "name": "name", "in": "query" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } }, "delete": { "security": [ { "JwtAuth": [] } ], "description": "删除列车轮径数据", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "列车管理Api" ], "summary": "删除列车轮径数据", "parameters": [ { "type": "integer", "description": "列车轮径ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/user/current": { "get": { "description": "获取当前登录用户信息", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "用户Api" ], "summary": "获取当前登录用户信息", "parameters": [ { "type": "string", "description": "JWT Token", "name": "Authorization", "in": "header", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.UserRspDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/user/login": { "post": { "description": "用户登录", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "用户Api" ], "summary": "用户登录", "parameters": [ { "description": "登录信息", "name": "loginInfo", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.LoginDto" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.TokenRespDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/user/paging": { "get": { "security": [ { "JwtAuth": [] } ], "description": "可以通过用户名称过滤,分页查询用户", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "用户Api" ], "summary": "分页查询用户", "parameters": [ { "type": "string", "description": "手机号", "name": "mobile", "in": "query" }, { "type": "string", "description": "用户名", "name": "name", "in": "query" }, { "type": "integer", "example": 1, "description": "页码", "name": "current", "in": "query", "required": true }, { "type": "integer", "example": 10, "description": "页面行数", "name": "size", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dto.PageDto" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/dto.ErrorDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } }, "/api/v1/user/register": { "post": { "description": "用户注册", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "用户Api" ], "summary": "用户注册", "parameters": [ { "description": "用户注册信息", "name": "loginInfo", "in": "body", "required": true, "schema": { "$ref": "#/definitions/dto.RegisterUser" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "string" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/dto.ErrorDto" } } } } } }, "definitions": { "dto.AddTrainReqDto": { "type": "object", "properties": { "devicePort": { "description": "道岔端口", "type": "string" }, "headLinkId": { "description": "车头所在link的索引", "type": "string" }, "headLinkOffset": { "description": "车头所在link内的偏移量,单位为mm", "type": "integer" }, "headOffset": { "description": "车头所在link内的偏移量,单位为mm", "type": "integer" }, "id": { "description": "物理区段、道岔ID", "type": "string" }, "mapId": { "description": "场景ID", "type": "integer" }, "simulationId": { "description": "仿真id", "type": "string" }, "trainLength": { "description": "列车长度", "type": "integer" }, "up": { "description": "列车方向,true-上行,false-下行", "type": "boolean" } } }, "dto.AddTrainRspDto": { "type": "object", "properties": { "mapId": { "description": "场景ID", "type": "integer" }, "simulationId": { "description": "仿真id", "type": "string" }, "trainId": { "description": "新添加的列车的索引", "type": "string" } } }, "dto.AuthRoleDetailRspDto": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" }, "paths": { "type": "array", "items": { "$ref": "#/definitions/model.AuthAPIPath" } } } }, "dto.AuthRoleRspDto": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "dto.AxleSectionOperationReqDto": { "type": "object", "required": [ "id", "mapId", "simulationId" ], "properties": { "id": { "type": "string" }, "mapId": { "type": "integer" }, "operation": { "$ref": "#/definitions/request_proto.Section_Operation" }, "simulationId": { "type": "string" }, "trainIn": { "type": "boolean" }, "trainOut": { "type": "boolean" } } }, "dto.CheckMapDataReqDto": { "type": "object", "required": [ "data" ], "properties": { "data": { "type": "array", "items": { "type": "integer" } } } }, "dto.CheckMapDataRspDto": { "type": "object", "properties": { "errors": { "type": "array", "items": { "type": "string" } }, "success": { "type": "boolean" } } }, "dto.ErrorDto": { "type": "object", "properties": { "code": { "type": "integer" }, "detail": { "type": "string" }, "title": { "type": "string" } } }, "dto.EsbButtonOperationReqDto": { "type": "object", "required": [ "id", "mapId", "simulationId" ], "properties": { "down": { "type": "boolean" }, "id": { "type": "string" }, "mapId": { "type": "integer" }, "simulationId": { "type": "string" } } }, "dto.IBPButtonOperationReqDto": { "type": "object", "required": [ "buttonCode", "mapId", "simulationId", "stationId" ], "properties": { "buttonCode": { "type": "string" }, "down": { "type": "boolean" }, "mapId": { "type": "integer" }, "simulationId": { "type": "string" }, "stationId": { "type": "string" } } }, "dto.KeyOperationReqDto": { "type": "object", "required": [ "mapId", "simulationId", "stationId" ], "properties": { "gear": { "type": "integer" }, "keyCode": { "type": "string" }, "mapId": { "type": "integer" }, "simulationId": { "type": "string" }, "stationId": { "type": "string" } } }, "dto.LoginDto": { "type": "object", "required": [ "account", "password" ], "properties": { "account": { "description": "账号", "type": "string", "example": "17791995809" }, "password": { "description": "加密密码", "type": "string", "example": "95129dbaace576e46f41a629e6f35d5c" } } }, "dto.OrderItem": { "type": "object", "properties": { "asc": { "type": "boolean" }, "column": { "type": "string" } } }, "dto.PageDto": { "type": "object", "required": [ "page", "size" ], "properties": { "orders": { "description": "排序项", "type": "array", "items": { "$ref": "#/definitions/dto.OrderItem" } }, "page": { "description": "页码", "type": "integer", "example": 1 }, "records": {}, "size": { "description": "页面行数", "type": "integer", "example": 10 }, "total": { "type": "integer" } } }, "dto.ProjectLinkRspDto": { "type": "object", "properties": { "code": { "type": "string" }, "mapInfoLinks": { "type": "array", "items": { "$ref": "#/definitions/dto.PublishedGiLinkDto" } }, "name": { "type": "string" }, "pid": { "type": "integer" }, "trainSizeLinks": { "type": "array", "items": { "$ref": "#/definitions/dto.TrainSizeDto" } } } }, "dto.ProjectRunConfigDto": { "type": "object", "properties": { "config": { "type": "string" }, "createdAt": { "type": "string" }, "description": { "type": "string" }, "id": { "type": "integer" }, "name": { "type": "string" }, "updateAt": { "type": "string" } } }, "dto.PslOperationReqDto": { "type": "object", "required": [ "buttonCode", "mapId", "simulationId" ], "properties": { "buttonCode": { "type": "string" }, "down": { "type": "boolean" }, "gateBoxId": { "type": "string" }, "mapId": { "type": "integer" }, "simulationId": { "type": "string" } } }, "dto.PublishedGiLinkDto": { "type": "object", "properties": { "category": { "type": "string" }, "id": { "type": "integer" }, "name": { "type": "string" }, "type": { "type": "integer" } } }, "dto.RegisterUser": { "type": "object", "properties": { "id": { "type": "integer" }, "mobile": { "description": "手机号", "type": "string" }, "name": { "description": "名字", "type": "string" }, "password": { "description": "密码", "type": "string" }, "register_time": { "description": "注册时间", "type": "string" } } }, "dto.RelayOperationReqDto": { "type": "object", "required": [ "id", "mapId", "simulationId" ], "properties": { "id": { "type": "string" }, "mapId": { "type": "integer" }, "simulationId": { "type": "string" }, "td": { "type": "boolean" } } }, "dto.RemoveTrainDto": { "type": "object", "properties": { "mapId": { "description": "场景ID", "type": "integer" }, "simulationId": { "description": "仿真id", "type": "string" }, "trainId": { "description": "新添加的列车的索引", "type": "string" } } }, "dto.SignalOperationReqDto": { "type": "object", "required": [ "aspect", "id", "mapId", "operation", "simulationId" ], "properties": { "aspect": { "description": "当操作为Operation.Display时有效,表示显示的信号", "allOf": [ { "$ref": "#/definitions/state.Signal_Aspect" } ] }, "id": { "type": "string" }, "mapId": { "type": "integer" }, "operation": { "description": "信号机操作类型", "allOf": [ { "$ref": "#/definitions/request_proto.Signal_Operation" } ] }, "simulationId": { "type": "string" } } }, "dto.SimulationCreateReqDto": { "type": "object", "properties": { "mapId": { "description": "地图id", "type": "integer" }, "projectId": { "description": "项目id", "type": "integer" }, "runConfigId": { "description": "运行环境ID", "type": "integer" } } }, "dto.SimulationCreateRspDto": { "type": "object", "properties": { "mapId": { "description": "地图id", "type": "integer" }, "mapIds": { "description": "地图列表", "type": "array", "items": { "type": "integer" } }, "projectId": { "description": "项目ID", "type": "integer" }, "runConfigId": { "description": "运行环境ID", "type": "integer" }, "simulationId": { "description": "仿真id", "type": "string" } } }, "dto.SimulationInfoRspDto": { "type": "object", "properties": { "mapId": { "type": "integer" }, "mapIds": { "type": "array", "items": { "type": "integer" } }, "projectId": { "type": "integer" }, "runConfigId": { "description": "运行环境ID", "type": "integer" }, "simulationId": { "type": "string" } } }, "dto.TokenRespDto": { "type": "object", "properties": { "code": { "type": "integer" }, "expire": { "type": "string" }, "token": { "type": "string" } } }, "dto.TrainSizeDto": { "type": "object", "properties": { "carriage_length": { "type": "integer" }, "description": { "type": "string" }, "id": { "type": "integer" }, "name": { "type": "string" }, "total_length": { "type": "integer" } } }, "dto.UserRspDto": { "type": "object", "properties": { "id": { "type": "integer" }, "mobile": { "description": "手机号", "type": "string" }, "name": { "description": "名字", "type": "string" }, "paths": { "description": "权限路径", "type": "array", "items": { "$ref": "#/definitions/model.AuthAPIPath" } }, "register_time": { "description": "注册时间", "type": "string" }, "roles": { "description": "用户角色", "type": "array", "items": { "$ref": "#/definitions/dto.AuthRoleRspDto" } } } }, "graphicData.PictureType": { "type": "integer", "enum": [ 0, 1, 2, 3 ], "x-enum-varnames": [ "PictureType_StationLayout", "PictureType_Psl", "PictureType_RelayCabinetLayout", "PictureType_IBP" ] }, "model.AuthAPIPath": { "type": "object", "properties": { "id": { "description": "主键", "type": "integer" }, "method": { "description": "请求方式", "type": "string" }, "name": { "description": "功能名称", "type": "string" }, "path": { "description": "请求路径", "type": "string" } } }, "model.Category": { "type": "object", "properties": { "code": { "description": "编码", "type": "string" }, "config": { "description": "厂家配置", "type": "string" }, "created_at": { "description": "创建时间", "type": "string" }, "id": { "description": "id", "type": "integer" }, "name": { "description": "厂家名", "type": "string" }, "update_at": { "description": "修改时间", "type": "string" } } }, "model.Drafting": { "type": "object", "properties": { "category": { "description": "厂家编码", "type": "string" }, "created_at": { "description": "创建时间", "type": "string" }, "creator_id": { "description": "创建人id", "type": "integer" }, "id": { "description": "id", "type": "integer" }, "name": { "description": "草稿图名称", "type": "string" }, "proto": { "description": "绘图数据", "type": "array", "items": { "type": "integer" } }, "type": { "description": "数据类型", "type": "integer" }, "update_at": { "description": "修改时间", "type": "string" } } }, "model.Project": { "type": "object", "properties": { "code": { "description": "项目编码", "type": "string" }, "created_at": { "description": "创建时间", "type": "string" }, "id": { "description": "主键", "type": "integer" }, "name": { "description": "名称", "type": "string" }, "update_at": { "description": "更新时间", "type": "string" } } }, "model.PublishedGi": { "type": "object", "properties": { "category": { "description": "厂家信息", "type": "string" }, "id": { "description": "id", "type": "integer" }, "name": { "description": "发布图形界面名称", "type": "string" }, "note": { "description": "发布描述", "type": "string" }, "proto": { "description": "图形界面数据", "type": "array", "items": { "type": "integer" } }, "publish_at": { "description": "发布时间", "type": "string" }, "status": { "description": "显示状态", "type": "integer" }, "type": { "description": "数据类型", "type": "integer" }, "user_id": { "description": "发布用户id", "type": "integer" } } }, "model.TrainModel": { "type": "object", "properties": { "created_at": { "description": "创建时间", "type": "string" }, "id": { "type": "integer" }, "name": { "description": "组次名称", "type": "string" }, "update_at": { "description": "更新时间", "type": "string" } } }, "model.TrainSize": { "type": "object", "properties": { "carriage_length": { "description": "列车车厢长度", "type": "integer" }, "description": { "description": "其他描述内容", "type": "string" }, "id": { "description": "主键", "type": "integer" }, "name": { "description": "名称", "type": "string" }, "total_length": { "description": "总长度", "type": "integer" } } }, "model.TrainWheelDiameter": { "type": "object", "properties": { "axial_position": { "description": "速度传感器安装轴位,本端车前进方向的第几轴", "type": "integer" }, "diameter": { "description": "速度传感器安装处车轮的出厂直径(mm)", "type": "integer" }, "id": { "type": "integer" }, "install_direction": { "description": "速度传感器安装方向,\n\t\t本端车前进方向的左侧或右侧", "type": "string" }, "max_diameter": { "description": "速度传感器安装处车轮的最大直径(mm)", "type": "integer" }, "min_diameter": { "description": "速度传感器安装处车轮的最小直径(mm)", "type": "integer" }, "name": { "description": "名称", "type": "string" } } }, "request_proto.PsdOperationReq": { "type": "object", "properties": { "deviceId": { "description": "设备id", "type": "string" }, "mapId": { "description": "图id", "type": "integer" }, "operation": { "description": "操作", "allOf": [ { "$ref": "#/definitions/request_proto.Psd_Operation" } ] }, "simulationId": { "description": "仿真id", "type": "string" } } }, "request_proto.Psd_Operation": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "x-enum-comments": { "Psd_CancelGm": "取消关门", "Psd_CancelKm4": "取消四编组开门", "Psd_CancelKm8": "取消八编组开门", "Psd_ForceGm": "强制关门", "Psd_ForceKm4": "强制四编组开门", "Psd_ForceKm8": "强制八编组开门", "Psd_Gm": "关门", "Psd_Km4": "四编组开门", "Psd_Km8": "八编组开门" }, "x-enum-varnames": [ "Psd_Undefined", "Psd_Km4", "Psd_CancelKm4", "Psd_Km8", "Psd_CancelKm8", "Psd_Gm", "Psd_CancelGm", "Psd_ForceKm4", "Psd_ForceKm8", "Psd_ForceGm" ] }, "request_proto.Section_Operation": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5 ], "x-enum-comments": { "Section_CancelDrst": "取消计轴直接复位", "Section_CancelFaultOcc": "取消故障占用", "Section_CancelPdrst": "取消计轴预复位", "Section_SetDrst": "设置计轴直接复位", "Section_SetFaultOcc": "设置故障占用", "Section_SetPdrst": "设置计轴预复位" }, "x-enum-varnames": [ "Section_SetDrst", "Section_CancelDrst", "Section_SetPdrst", "Section_CancelPdrst", "Section_SetFaultOcc", "Section_CancelFaultOcc" ] }, "request_proto.Signal_Operation": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "x-enum-comments": { "Signal_Display": "显示操作,如设置绿色、设置红黄色", "Signal_LightACancelDs": "取消蓝灯断丝故障", "Signal_LightAFaultDs": "设置蓝灯断丝故障", "Signal_LightBCancelDs": "取消白灯断丝故障", "Signal_LightBFaultDs": "设置白灯断丝故障", "Signal_LightHCancelDs": "取消红灯断丝故障", "Signal_LightHFaultDs": "设置红灯断丝故障", "Signal_LightLCancelDs": "取消绿灯断丝故障", "Signal_LightLFaultDs": "设置绿灯断丝故障", "Signal_LightUCancelDs": "取消黄灯断丝故障", "Signal_LightUFaultDs": "设置黄灯断丝故障", "Signal_Undefined": "未定义" }, "x-enum-varnames": [ "Signal_Undefined", "Signal_Display", "Signal_LightHFaultDs", "Signal_LightUFaultDs", "Signal_LightLFaultDs", "Signal_LightAFaultDs", "Signal_LightBFaultDs", "Signal_LightHCancelDs", "Signal_LightUCancelDs", "Signal_LightLCancelDs", "Signal_LightACancelDs", "Signal_LightBCancelDs" ] }, "request_proto.TurnoutOperationReq": { "type": "object", "properties": { "deviceId": { "description": "设备id", "type": "string" }, "mapId": { "description": "图id", "type": "integer" }, "operation": { "description": "道岔操作", "allOf": [ { "$ref": "#/definitions/request_proto.Turnout_Operation" } ] }, "simulationId": { "description": "仿真id", "type": "string" } } }, "request_proto.Turnout_Operation": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "x-enum-comments": { "Turnout_CancelDC": "取消定操", "Turnout_CancelFC": "取消反操", "Turnout_CancelForce": "取消强制", "Turnout_CancelJC": "取消挤岔故障", "Turnout_CancelSB": "取消失表故障", "Turnout_DC": "定操", "Turnout_FC": "反操", "Turnout_ForceDw": "强制定位", "Turnout_ForceFw": "强制反位", "Turnout_SetJC": "设置挤岔故障", "Turnout_SetSB": "设置失表故障", "Turnout_Undefined": "未定义" }, "x-enum-varnames": [ "Turnout_Undefined", "Turnout_DC", "Turnout_CancelDC", "Turnout_FC", "Turnout_CancelFC", "Turnout_SetSB", "Turnout_CancelSB", "Turnout_SetJC", "Turnout_CancelJC", "Turnout_ForceDw", "Turnout_ForceFw", "Turnout_CancelForce" ] }, "state.Signal_Aspect": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5, 6, 7 ], "x-enum-varnames": [ "Signal_Non", "Signal_OFF", "Signal_L", "Signal_H", "Signal_U", "Signal_HU", "Signal_B", "Signal_A" ] } }, "securityDefinitions": { "JwtAuth": { "type": "apiKey", "name": "Authorization", "in": "header" } } }` // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = &swag.Spec{ Version: "1.0", Host: "localhost:9091", BasePath: "/", Schemes: []string{}, Title: "CBTC测试系统API", Description: "CBTC测试服务.", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, LeftDelim: "{{", RightDelim: "}}", } func init() { swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) }