更新swagger

This commit is contained in:
2025-09-19 15:55:40 +08:00
parent f1934ba444
commit 7138838183

View File

@@ -10,7 +10,7 @@
"host": "", "host": "",
"basePath": "", "basePath": "",
"paths": { "paths": {
"/devices": { "/api/v1/devices": {
"get": { "get": {
"description": "获取系统中所有设备的列表", "description": "获取系统中所有设备的列表",
"produces": [ "produces": [
@@ -62,7 +62,7 @@
} }
} }
}, },
"/devices/{id}": { "/api/v1/devices/{id}": {
"get": { "get": {
"description": "根据设备ID获取单个设备的详细信息", "description": "根据设备ID获取单个设备的详细信息",
"produces": [ "produces": [
@@ -157,7 +157,7 @@
} }
} }
}, },
"/plans": { "/api/v1/plans": {
"get": { "get": {
"description": "获取所有计划的列表", "description": "获取所有计划的列表",
"produces": [ "produces": [
@@ -209,7 +209,7 @@
} }
} }
}, },
"/plans/{id}": { "/api/v1/plans/{id}": {
"get": { "get": {
"description": "根据计划ID获取单个计划的详细信息。", "description": "根据计划ID获取单个计划的详细信息。",
"produces": [ "produces": [
@@ -304,7 +304,7 @@
} }
} }
}, },
"/plans/{id}/start": { "/api/v1/plans/{id}/start": {
"post": { "post": {
"description": "根据计划ID启动一个计划的执行。", "description": "根据计划ID启动一个计划的执行。",
"produces": [ "produces": [
@@ -333,7 +333,7 @@
} }
} }
}, },
"/plans/{id}/stop": { "/api/v1/plans/{id}/stop": {
"post": { "post": {
"description": "根据计划ID停止一个正在执行的计划。", "description": "根据计划ID停止一个正在执行的计划。",
"produces": [ "produces": [
@@ -362,7 +362,7 @@
} }
} }
}, },
"/users": { "/api/v1/users": {
"post": { "post": {
"description": "根据用户名和密码创建一个新的系统用户。", "description": "根据用户名和密码创建一个新的系统用户。",
"consumes": [ "consumes": [
@@ -396,7 +396,7 @@
} }
} }
}, },
"/users/login": { "/api/v1/users/login": {
"post": { "post": {
"description": "用户使用用户名和密码登录,成功后返回 JWT 令牌。", "description": "用户使用用户名和密码登录,成功后返回 JWT 令牌。",
"consumes": [ "consumes": [
@@ -650,6 +650,10 @@
"type": "string", "type": "string",
"example": "根据温度自动调节风扇和加热器" "example": "根据温度自动调节风扇和加热器"
}, },
"execute_num": {
"type": "integer",
"example": 10
},
"execution_type": { "execution_type": {
"allOf": [ "allOf": [
{ {
@@ -863,6 +867,10 @@
"type": "string", "type": "string",
"example": "更新后的描述" "example": "更新后的描述"
}, },
"execute_num": {
"type": "integer",
"example": 10
},
"execution_type": { "execution_type": {
"allOf": [ "allOf": [
{ {