2023-07-14 16:28:47 +08:00
|
|
|
{
|
|
|
|
"swagger": "2.0",
|
|
|
|
"info": {
|
|
|
|
"description": "CBTC测试服务.",
|
|
|
|
"title": "CBTC测试系统API",
|
|
|
|
"contact": {},
|
|
|
|
"version": "1.0"
|
|
|
|
},
|
|
|
|
"host": "localhost:8080",
|
|
|
|
"basePath": "/",
|
|
|
|
"paths": {
|
2023-07-18 17:19:03 +08:00
|
|
|
"/api/v1/drafting": {
|
|
|
|
"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"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"collectionFormat": "csv",
|
|
|
|
"name": "proto",
|
|
|
|
"in": "query"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK"
|
|
|
|
},
|
|
|
|
"401": {
|
|
|
|
"description": "Unauthorized",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"404": {
|
|
|
|
"description": "Not Found",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"500": {
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/api/v1/drafting/:id": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"JwtAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "查询草稿详情",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"草稿Api"
|
|
|
|
],
|
|
|
|
"summary": "查询草稿详情",
|
2023-07-28 11:15:44 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"description": "草稿ID",
|
|
|
|
"name": "id",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
],
|
2023-07-18 17:19:03 +08:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/model.Drafting"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"401": {
|
|
|
|
"description": "Unauthorized",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"404": {
|
|
|
|
"description": "Not Found",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"500": {
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"put": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"JwtAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "草稿另存为",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"草稿Api"
|
|
|
|
],
|
|
|
|
"summary": "草稿另存为",
|
|
|
|
"parameters": [
|
2023-07-28 11:15:44 +08:00
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"description": "草稿ID",
|
|
|
|
"name": "id",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"name": "id",
|
|
|
|
"in": "query"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"name": "name",
|
|
|
|
"in": "query"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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-07-28 11:15:44 +08:00
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-07-18 17:19:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/api/v1/drafting/:id/saveAs": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"JwtAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "草稿另存为",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"草稿Api"
|
|
|
|
],
|
|
|
|
"summary": "草稿另存为",
|
|
|
|
"parameters": [
|
2023-07-28 11:15:44 +08:00
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"description": "源草稿id",
|
|
|
|
"name": "id",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"name": "id",
|
|
|
|
"in": "query"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"name": "name",
|
|
|
|
"in": "query"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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-07-14 18:09:07 +08:00
|
|
|
"/api/v1/drafting/paging": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"JwtAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "可以通过草稿名称过滤,分页查询草稿",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-07-18 17:19:03 +08:00
|
|
|
"草稿Api"
|
2023-07-14 18:09:07 +08:00
|
|
|
],
|
|
|
|
"summary": "分页查询草稿",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"name": "name",
|
|
|
|
"in": "query"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"example": 1,
|
|
|
|
"description": "页码",
|
|
|
|
"name": "page",
|
|
|
|
"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-18 17:19:03 +08:00
|
|
|
"/api/v1/publishedGi/list": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"JwtAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "可以通过名称过滤",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"发布的图形数据Api"
|
|
|
|
],
|
|
|
|
"summary": "列表查询发布的图形数据",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"description": "JWT Token",
|
2023-07-26 17:02:53 +08:00
|
|
|
"name": "Authorization",
|
|
|
|
"in": "header",
|
2023-07-18 17:19:03 +08:00
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"name": "name",
|
|
|
|
"in": "query"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"example": 1,
|
|
|
|
"description": "页码",
|
|
|
|
"name": "page",
|
|
|
|
"in": "query",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"example": 10,
|
|
|
|
"description": "页面行数",
|
|
|
|
"name": "size",
|
|
|
|
"in": "query",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/model.PublishedGi"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"401": {
|
|
|
|
"description": "Unauthorized",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"404": {
|
|
|
|
"description": "Not Found",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"500": {
|
|
|
|
"description": "Internal Server Error",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.ErrorDto"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/api/v1/publishedGi/paging": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"JwtAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "可以通过名称过滤",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"发布的图形数据Api"
|
|
|
|
],
|
|
|
|
"summary": "分页查询发布的图形数据",
|
|
|
|
"parameters": [
|
2023-07-28 11:15:44 +08:00
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"description": "JWT Token",
|
|
|
|
"name": "Authorization",
|
|
|
|
"in": "header",
|
|
|
|
"required": true
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"name": "name",
|
|
|
|
"in": "query"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"example": 1,
|
|
|
|
"description": "页码",
|
|
|
|
"name": "page",
|
|
|
|
"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/publishedGi/publish": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"JwtAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"发布的图形数据Api"
|
|
|
|
],
|
|
|
|
"summary": "从草稿发布数据",
|
|
|
|
"parameters": [
|
2023-07-28 11:15:44 +08:00
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"description": "JWT Token",
|
|
|
|
"name": "Authorization",
|
|
|
|
"in": "header",
|
|
|
|
"required": true
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"description": "草稿数据的id",
|
|
|
|
"name": "draftId",
|
|
|
|
"in": "query"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"description": "发布后的名称",
|
|
|
|
"name": "name",
|
|
|
|
"in": "query"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "是否覆盖同名数据",
|
|
|
|
"name": "overwrite",
|
|
|
|
"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/publishedGi/{id}": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"JwtAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "可以通过名称过滤",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"发布的图形数据Api"
|
|
|
|
],
|
|
|
|
"summary": "id查询发布的图形数据",
|
|
|
|
"parameters": [
|
2023-07-28 11:15:44 +08:00
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"description": "JWT Token",
|
|
|
|
"name": "Authorization",
|
|
|
|
"in": "header",
|
|
|
|
"required": true
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
{
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": "id查询发布的图形数据",
|
|
|
|
"parameters": [
|
2023-07-28 11:15:44 +08:00
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"description": "JWT Token",
|
|
|
|
"name": "Authorization",
|
|
|
|
"in": "header",
|
|
|
|
"required": true
|
|
|
|
},
|
2023-07-18 17:19:03 +08:00
|
|
|
{
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
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": "页码",
|
|
|
|
"name": "page",
|
|
|
|
"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": {
|
|
|
|
"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-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-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
|
|
|
},
|
|
|
|
"model.Drafting": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"model.PublishedGi": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"description": "id",
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"description": "发布图形界面名称",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"proto": {
|
|
|
|
"description": "图形界面数据",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"publish_at": {
|
|
|
|
"description": "发布时间",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"user_id": {
|
|
|
|
"description": "发布用户id",
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
2023-07-14 16:28:47 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"securityDefinitions": {
|
|
|
|
"JwtAuth": {
|
|
|
|
"type": "apiKey",
|
|
|
|
"name": "Authorization",
|
|
|
|
"in": "header"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|