From 25715910cbe85c6bd2bba9d4e2f0116d2c710666 Mon Sep 17 00:00:00 2001 From: algotao Date: Sun, 16 Nov 2025 16:10:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4lua=20proto=E7=BC=96=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd.pb.go | 8 ++++---- cmd.proto | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd.pb.go b/cmd.pb.go index 033b175..538a24c 100644 --- a/cmd.pb.go +++ b/cmd.pb.go @@ -2350,8 +2350,8 @@ func (x *ScriptRun) GetOs() OS { // ScriptCreate 创建脚本 type ScriptCreate struct { state protoimpl.MessageState `protogen:"open.v1"` - LuaName string `protobuf:"bytes,2,opt,name=lua_name,json=luaName,proto3" json:"lua_name,omitempty"` // 要上传的脚本名称 - LuaScript string `protobuf:"bytes,1,opt,name=lua_script,json=luaScript,proto3" json:"lua_script,omitempty"` // 要调试的lua脚本 + LuaName string `protobuf:"bytes,1,opt,name=lua_name,json=luaName,proto3" json:"lua_name,omitempty"` // 要上传的脚本名称 + LuaScript string `protobuf:"bytes,2,opt,name=lua_script,json=luaScript,proto3" json:"lua_script,omitempty"` // 要调试的lua脚本 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -4893,9 +4893,9 @@ const file_cmd_proto_rawDesc = "" + "\rserver_openid\x18\x04 \x01(\tR\fserverOpenid\x12\x1b\n" + "\x02os\x18\x05 \x01(\x0e2\v.saasapi.OSR\x02os\"H\n" + "\fScriptCreate\x12\x19\n" + - "\blua_name\x18\x02 \x01(\tR\aluaName\x12\x1d\n" + + "\blua_name\x18\x01 \x01(\tR\aluaName\x12\x1d\n" + "\n" + - "lua_script\x18\x01 \x01(\tR\tluaScript\"\f\n" + + "lua_script\x18\x02 \x01(\tR\tluaScript\"\f\n" + "\n" + "ScriptList\")\n" + "\fScriptDelete\x12\x19\n" + diff --git a/cmd.proto b/cmd.proto index ef7c940..b80d167 100644 --- a/cmd.proto +++ b/cmd.proto @@ -212,8 +212,8 @@ message ScriptRun { // ScriptCreate 创建脚本 message ScriptCreate { - string lua_name = 2; // 要上传的脚本名称 - string lua_script = 1; // 要调试的lua脚本 + string lua_name = 1; // 要上传的脚本名称 + string lua_script = 2; // 要调试的lua脚本 } // ScriptList 列出脚本