2023-07-14 16:28:47 +08:00
|
|
|
|
// 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": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/Project": {
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "创建项目数据",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"项目信息Api"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "创建项目信息",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"name": "code",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/Project/:id": {
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "查询项目信息",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"项目信息Api"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "查询项目信息",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "项目ID",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"$ref": "#/definitions/model.Project"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "修改项目信息",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"项目信息Api"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "修改项目信息",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "项目信息ID",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"name": "code",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"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": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "删除项目信息",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"项目信息Api"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "删除项目信息",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "项目信息ID",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/Project/list": {
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "可以通过项目名称过滤,查询项目信息列表",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"项目信息Api"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "查询项目信息列表",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"name": "code",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/Project/paging": {
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "可以通过项目名称过滤,分页查询项目信息",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"项目信息Api"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "分页查询项目信息",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"parameters": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "code",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-08-03 17:01:28 +08:00
|
|
|
|
{
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/category": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "创建厂家数据",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"厂家信息Api"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "创建厂家信息",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"parameters": [
|
2023-08-03 17:01:28 +08:00
|
|
|
|
{
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "code",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "config",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
{
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/category/:id": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "查询厂家信息",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"厂家信息Api"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "查询厂家信息",
|
2023-07-28 11:15:44 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "厂家ID",
|
2023-07-28 11:15:44 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"$ref": "#/definitions/model.Category"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "修改厂家信息",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"厂家信息Api"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "修改厂家信息",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"parameters": [
|
2023-07-28 11:15:44 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "厂家信息ID",
|
2023-07-28 11:15:44 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2023-08-03 17:01:28 +08:00
|
|
|
|
{
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "code",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "config",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
{
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-07-28 11:15:44 +08:00
|
|
|
|
},
|
|
|
|
|
"delete": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "删除厂家信息",
|
2023-07-28 11:15:44 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"厂家信息Api"
|
2023-07-28 11:15:44 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "删除厂家信息",
|
2023-07-28 11:15:44 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "厂家信息ID",
|
2023-07-28 11:15:44 +08:00
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-07-18 17:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/category/list": {
|
|
|
|
|
"get": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "可以通过厂家名称过滤,查询厂家信息列表",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"厂家信息Api"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "查询厂家信息列表",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.PageDto"
|
|
|
|
|
}
|
2023-07-18 17:19:03 +08:00
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/category/paging": {
|
2023-07-14 18:09:07 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "可以通过厂家名称过滤,分页查询厂家信息",
|
2023-07-14 18:09:07 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"厂家信息Api"
|
2023-07-14 18:09:07 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "分页查询厂家信息",
|
2023-07-14 18:09:07 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 1,
|
|
|
|
|
"description": "页码",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"name": "current",
|
2023-07-14 18:09:07 +08:00
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/drafting": {
|
2023-08-07 15:05:37 +08:00
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "创建草稿数据",
|
2023-08-07 15:05:37 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"草稿Api"
|
2023-08-07 15:05:37 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "创建草稿",
|
2023-08-07 15:05:37 +08:00
|
|
|
|
"parameters": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "category",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-08-07 15:05:37 +08:00
|
|
|
|
{
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/drafting/:id": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"get": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "查询草稿详情",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"草稿Api"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "查询草稿详情",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "草稿ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"$ref": "#/definitions/model.Drafting"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-25 10:41:13 +08:00
|
|
|
|
},
|
|
|
|
|
"put": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "修改草稿信息",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"草稿Api"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "修改草稿信息",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"parameters": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "草稿ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"name": "category",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
2023-08-01 14:47:04 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"collectionFormat": "csv",
|
|
|
|
|
"name": "proto",
|
2023-08-01 14:47:04 +08:00
|
|
|
|
"in": "query"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "OK"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-25 10:41:13 +08:00
|
|
|
|
},
|
|
|
|
|
"delete": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "删除草稿数据",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"草稿Api"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "删除草稿数据",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "草稿ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
2023-07-18 17:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK"
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/drafting/:id/saveAs": {
|
2023-08-07 15:05:37 +08:00
|
|
|
|
"post": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "草稿另存为",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"草稿Api"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "草稿另存为",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "源草稿id",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
2023-08-07 15:05:37 +08:00
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "category",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-08-07 15:05:37 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"name": "id",
|
2023-08-07 15:05:37 +08:00
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"collectionFormat": "csv",
|
|
|
|
|
"name": "proto",
|
2023-08-07 15:05:37 +08:00
|
|
|
|
"in": "query"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-07 15:05:37 +08:00
|
|
|
|
"description": "OK"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-07 15:05:37 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/drafting/paging": {
|
2023-08-07 15:05:37 +08:00
|
|
|
|
"get": {
|
2023-08-04 11:54:19 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "可以通过草稿名称过滤,分页查询草稿",
|
2023-08-04 11:54:19 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"草稿Api"
|
2023-08-04 11:54:19 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "分页查询草稿",
|
2023-08-04 11:54:19 +08:00
|
|
|
|
"parameters": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-08-04 11:54:19 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"example": 1,
|
|
|
|
|
"description": "页码",
|
|
|
|
|
"name": "current",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 10,
|
|
|
|
|
"description": "页面行数",
|
|
|
|
|
"name": "size",
|
|
|
|
|
"in": "query",
|
2023-08-04 11:54:19 +08:00
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-07 15:05:37 +08:00
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"$ref": "#/definitions/dto.PageDto"
|
2023-08-07 15:05:37 +08:00
|
|
|
|
}
|
2023-08-04 11:54:19 +08:00
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-04 11:54:19 +08:00
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-25 10:41:13 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/generate/calculatelink": {
|
|
|
|
|
"post": {
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "根据地图数据新生成计算的link信息",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"GenerateApi"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "根据地图数据新生成计算的link信息",
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"collectionFormat": "csv",
|
|
|
|
|
"name": "proto",
|
|
|
|
|
"in": "query"
|
2023-07-18 17:19:03 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK"
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/projectLink": {
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "保存项目的所有关联信息",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"项目关联信息Api"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "保存项目的所有关联信息",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"collectionFormat": "csv",
|
|
|
|
|
"name": "mids",
|
|
|
|
|
"in": "query"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "pid",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"collectionFormat": "csv",
|
|
|
|
|
"name": "sids",
|
|
|
|
|
"in": "query"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/projectLink/info/:id": {
|
|
|
|
|
"get": {
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "查询项目的所有关联信息",
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"项目关联信息Api"
|
2023-07-28 15:49:44 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "查询项目的所有关联信息",
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "项目ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"$ref": "#/definitions/dto.ProjectLinkRspDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
2023-07-28 15:49:44 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/projectLink/trainSize/:id": {
|
|
|
|
|
"get": {
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "查询项目的关联列车尺寸信息",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"项目关联信息Api"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "查询项目的关联列车尺寸信息",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"parameters": [
|
2023-08-03 17:01:28 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "项目ID",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
|
|
|
|
"required": true
|
2023-07-31 18:20:00 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"$ref": "#/definitions/dto.TrainSizeDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/publishedGi/list": {
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"get": {
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "可以通过名称过滤",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"发布的图形数据Api"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "列表查询发布的图形数据",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 1,
|
|
|
|
|
"description": "页码",
|
|
|
|
|
"name": "current",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 10,
|
|
|
|
|
"description": "页面行数",
|
|
|
|
|
"name": "size",
|
|
|
|
|
"in": "query",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"required": true
|
2023-08-25 10:41:13 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "time",
|
|
|
|
|
"in": "query"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"$ref": "#/definitions/model.PublishedGi"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
}
|
2023-07-31 18:20:00 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/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": {
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"发布的图形数据Api"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "从草稿发布数据",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"parameters": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "草稿数据的id",
|
|
|
|
|
"name": "draftId",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
2023-07-31 18:20:00 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"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",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"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",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"schema": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-25 10:41:13 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/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/simulation/check/data": {
|
|
|
|
|
"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.CheckMapDataReqDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.CheckMapDataRspDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"/api/v1/simulation/create": {
|
|
|
|
|
"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": "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/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.SimulationInfoRepDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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": "RemoveTrainDto",
|
|
|
|
|
"in": "body",
|
|
|
|
|
"required": true,
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.SwitchOperationReqDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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/: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/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/size": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "创建列车尺寸数据",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"列车管理Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "创建列车尺寸",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "carriageLength",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "description",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalLength",
|
|
|
|
|
"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/: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": "carriageLength",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "description",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "totalLength",
|
|
|
|
|
"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/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": {
|
|
|
|
|
"post": {
|
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"description": "创建列车轮径数据",
|
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
|
|
|
|
"列车管理Api"
|
|
|
|
|
],
|
|
|
|
|
"summary": "创建列车轮径",
|
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "AxialPosition",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "diameter",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "installDirection",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "maxDiameter",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "minDiameter",
|
|
|
|
|
"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/: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": "AxialPosition",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "diameter",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "installDirection",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "maxDiameter",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"name": "minDiameter",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
}
|
2023-07-31 18:20:00 +08:00
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "OK"
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"schema": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-25 10:41:13 +08:00
|
|
|
|
},
|
|
|
|
|
"delete": {
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "删除列车轮径数据",
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"列车管理Api"
|
2023-07-28 15:49:44 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "删除列车轮径数据",
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "integer",
|
|
|
|
|
"description": "列车轮径ID",
|
|
|
|
|
"name": "id",
|
|
|
|
|
"in": "path",
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "OK"
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"schema": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
2023-07-28 15:49:44 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"/api/v1/trainManage/wheelDiameter/paging": {
|
|
|
|
|
"get": {
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"security": [
|
|
|
|
|
{
|
|
|
|
|
"JwtAuth": []
|
|
|
|
|
}
|
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "可以通过列车轮径名称过滤,分页查询列车轮径信息列表",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"consumes": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"produces": [
|
|
|
|
|
"application/json"
|
|
|
|
|
],
|
|
|
|
|
"tags": [
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"列车管理Api"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
],
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"summary": "分页查询列车轮径信息列表",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"parameters": [
|
|
|
|
|
{
|
|
|
|
|
"type": "string",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"name": "name",
|
|
|
|
|
"in": "query"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 1,
|
|
|
|
|
"description": "页码",
|
|
|
|
|
"name": "current",
|
|
|
|
|
"in": "query",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "integer",
|
|
|
|
|
"example": 10,
|
|
|
|
|
"description": "页面行数",
|
|
|
|
|
"name": "size",
|
|
|
|
|
"in": "query",
|
|
|
|
|
"required": true
|
2023-07-31 18:20:00 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"responses": {
|
|
|
|
|
"200": {
|
|
|
|
|
"description": "OK",
|
|
|
|
|
"schema": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"$ref": "#/definitions/dto.PageDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"401": {
|
|
|
|
|
"description": "Unauthorized",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"404": {
|
|
|
|
|
"description": "Not Found",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-28 11:15:44 +08:00
|
|
|
|
"/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.RegisterUser"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"500": {
|
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
|
"schema": {
|
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-14 16:28:47 +08:00
|
|
|
|
"/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": "页码",
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"name": "current",
|
2023-07-14 16:28:47 +08:00
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-07-28 11:15:44 +08:00
|
|
|
|
},
|
|
|
|
|
"/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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-07-14 16:28:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"definitions": {
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"dto.AddTrainReqDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"devicePort": {
|
|
|
|
|
"description": "道岔端口",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"headLinkId": {
|
|
|
|
|
"description": "车头所在link的索引",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"headLinkOffset": {
|
|
|
|
|
"description": "车头所在link内的偏移量,单位为mm",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"headOffset": {
|
|
|
|
|
"description": "车头所在link内的偏移量,单位为mm",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"description": "物理区段、道岔ID",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"simulationId": {
|
|
|
|
|
"description": "仿真id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"trainLength": {
|
|
|
|
|
"description": "列车长度",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"up": {
|
|
|
|
|
"description": "列车方向,true-上行,false-下行",
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"dto.AddTrainRspDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"description": "仿真id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"trainId": {
|
|
|
|
|
"description": "新添加的列车的索引",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-14 16:28:47 +08:00
|
|
|
|
"dto.ErrorDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"message": {
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"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.PublishedGiLinkDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"category": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-28 11:15:44 +08:00
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"dto.RemoveTrainDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"description": "仿真id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"trainId": {
|
|
|
|
|
"description": "新添加的列车的索引",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-28 15:49:44 +08:00
|
|
|
|
"dto.SimulationCreateReqDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"mapId": {
|
|
|
|
|
"description": "地图id",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"dto.SimulationCreateRspDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"mapId": {
|
|
|
|
|
"description": "地图id",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"description": "仿真id",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-31 18:20:00 +08:00
|
|
|
|
"dto.SimulationInfoRepDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"mapId": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"dto.SwitchOperationReqDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"simulationId",
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"switchIndex"
|
2023-07-31 18:20:00 +08:00
|
|
|
|
],
|
|
|
|
|
"properties": {
|
|
|
|
|
"simulationId": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"switchIndex": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"turnNormal": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
},
|
|
|
|
|
"turnReverse": {
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-14 16:28:47 +08:00
|
|
|
|
"dto.TokenRespDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"code": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"expire": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"token": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-07-18 17:19:03 +08:00
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"dto.TrainSizeDto": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"carriageLength": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"description": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"id": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"totalLength": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"model.Drafting": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2023-08-03 17:01:28 +08:00
|
|
|
|
"category": {
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"description": "厂家编码",
|
|
|
|
|
"type": "string"
|
2023-08-03 17:01:28 +08:00
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"update_at": {
|
|
|
|
|
"description": "修改时间",
|
|
|
|
|
"type": "string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"model.PublishedGi": {
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2023-08-04 11:54:19 +08:00
|
|
|
|
"category": {
|
|
|
|
|
"description": "厂家信息",
|
2023-08-25 10:41:13 +08:00
|
|
|
|
"type": "string"
|
2023-08-04 11:54:19 +08:00
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"id": {
|
|
|
|
|
"description": "id",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"description": "发布图形界面名称",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2023-08-04 11:54:19 +08:00
|
|
|
|
"note": {
|
|
|
|
|
"description": "发布描述",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"proto": {
|
|
|
|
|
"description": "图形界面数据",
|
|
|
|
|
"type": "array",
|
|
|
|
|
"items": {
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"publish_at": {
|
|
|
|
|
"description": "发布时间",
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2023-08-04 11:54:19 +08:00
|
|
|
|
"status": {
|
|
|
|
|
"description": "显示状态",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
|
"user_id": {
|
|
|
|
|
"description": "发布用户id",
|
|
|
|
|
"type": "integer"
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-25 10:41:13 +08:00
|
|
|
|
},
|
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-07-14 16:28:47 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"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",
|
2023-08-01 14:47:04 +08:00
|
|
|
|
Host: "localhost:9091",
|
2023-07-14 16:28:47 +08:00
|
|
|
|
BasePath: "/",
|
|
|
|
|
Schemes: []string{},
|
|
|
|
|
Title: "CBTC测试系统API",
|
|
|
|
|
Description: "CBTC测试服务.",
|
|
|
|
|
InfoInstanceName: "swagger",
|
|
|
|
|
SwaggerTemplate: docTemplate,
|
|
|
|
|
LeftDelim: "{{",
|
|
|
|
|
RightDelim: "}}",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
|
|
|
|
|
}
|