From 7138838183be13c6b65616e81696a0f7dbec841e Mon Sep 17 00:00:00 2001 From: huang <1724659546@qq.com> Date: Fri, 19 Sep 2025 15:55:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0swagger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/swagger.json | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/docs/swagger.json b/docs/swagger.json index a4c4fe9b..e6ede8ce 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -10,7 +10,7 @@ "host": "", "basePath": "", "paths": { - "/devices": { + "/api/v1/devices": { "get": { "description": "获取系统中所有设备的列表", "produces": [ @@ -62,7 +62,7 @@ } } }, - "/devices/{id}": { + "/api/v1/devices/{id}": { "get": { "description": "根据设备ID获取单个设备的详细信息", "produces": [ @@ -157,7 +157,7 @@ } } }, - "/plans": { + "/api/v1/plans": { "get": { "description": "获取所有计划的列表", "produces": [ @@ -209,7 +209,7 @@ } } }, - "/plans/{id}": { + "/api/v1/plans/{id}": { "get": { "description": "根据计划ID获取单个计划的详细信息。", "produces": [ @@ -304,7 +304,7 @@ } } }, - "/plans/{id}/start": { + "/api/v1/plans/{id}/start": { "post": { "description": "根据计划ID启动一个计划的执行。", "produces": [ @@ -333,7 +333,7 @@ } } }, - "/plans/{id}/stop": { + "/api/v1/plans/{id}/stop": { "post": { "description": "根据计划ID停止一个正在执行的计划。", "produces": [ @@ -362,7 +362,7 @@ } } }, - "/users": { + "/api/v1/users": { "post": { "description": "根据用户名和密码创建一个新的系统用户。", "consumes": [ @@ -396,7 +396,7 @@ } } }, - "/users/login": { + "/api/v1/users/login": { "post": { "description": "用户使用用户名和密码登录,成功后返回 JWT 令牌。", "consumes": [ @@ -650,6 +650,10 @@ "type": "string", "example": "根据温度自动调节风扇和加热器" }, + "execute_num": { + "type": "integer", + "example": 10 + }, "execution_type": { "allOf": [ { @@ -863,6 +867,10 @@ "type": "string", "example": "更新后的描述" }, + "execute_num": { + "type": "integer", + "example": 10 + }, "execution_type": { "allOf": [ {