更新
This commit is contained in:
48
cmd.proto
48
cmd.proto
@@ -24,7 +24,8 @@ message SaasReq {
|
||||
BindSet bind_set = 61; // 设置绑定
|
||||
BindDelete bind_delete = 62; // 解除绑定
|
||||
|
||||
Debug debug = 90; // 试运行lua脚本
|
||||
ScriptRun script_run = 90; // 运行脚本
|
||||
ScriptUpdate script_update = 91; // 脚本升级
|
||||
}
|
||||
}
|
||||
|
||||
@@ -165,15 +166,17 @@ message BindDelete {
|
||||
repeated Bind binds = 2; // 解除绑定内容
|
||||
}
|
||||
|
||||
// Debug 调试
|
||||
message Debug {
|
||||
// ScriptRun 运行脚本
|
||||
message ScriptRun {
|
||||
string lua_script = 1; // 要调试的lua脚本
|
||||
bool use_server_data = 2; // 是否使用服务端用户数据
|
||||
string server_did = 3; // 将从服务端读取该DID下的数据
|
||||
string appid = 4; // 小程序/小游戏/公众号/视频号的appid
|
||||
string server_openid = 5; // 将从服务端读取该openid下的数据,需与appid配对使用
|
||||
WriteItem local_did_data = 6; // 客户自定义DID用户数据
|
||||
WriteItem local_openid_data = 7; // 客户定定义OpenID用户数据
|
||||
string server_did = 2; // 将从服务端读取该DID下的数据
|
||||
string appid = 3; // 小程序/小游戏/公众号/视频号的appid
|
||||
string server_openid = 4; // 将从服务端读取该openid下的数据,需与appid配对使用
|
||||
OS os = 5; // 操作系统
|
||||
}
|
||||
|
||||
// ScriptUpdate 升级脚本
|
||||
message ScriptUpdate {
|
||||
}
|
||||
|
||||
// SaasRes 命令返回
|
||||
@@ -196,13 +199,16 @@ message SaasRes {
|
||||
|
||||
BindSetRes bind_set_res = 61; // 设置绑定返回状态
|
||||
BindDeleteRes bind_delete_res = 62; // 删除绑定返回状态
|
||||
|
||||
ScriptRunRes script_run_res = 90; // 运行脚本返回
|
||||
ScriptUpdateRes script_update_res = 91; // 升级脚本返回
|
||||
}
|
||||
}
|
||||
|
||||
// InfoRes 账号信息返回
|
||||
message InfoRes {
|
||||
repeated string dataspace_id = 1; // 可用数据区
|
||||
repeated string target_id = 2; // 策略ID
|
||||
repeated string dataspace_id = 1; // 可用数据区列表
|
||||
repeated string target_id = 2; // 策略ID列表
|
||||
|
||||
}
|
||||
|
||||
@@ -292,11 +298,15 @@ message BindError {
|
||||
}
|
||||
|
||||
|
||||
// DebugRes 调试返回
|
||||
message DebugRes {
|
||||
string PrintOutput = 1; // print输出
|
||||
string Error = 2; // 错误信息
|
||||
string TargetsOutput = 3; // 策略输出
|
||||
// ScriptRunRes 运行脚本返回
|
||||
message ScriptRunRes {
|
||||
string print_output = 1; // print输出
|
||||
string error = 2; // 错误信息
|
||||
string targets_output = 3; // 策略输出
|
||||
}
|
||||
|
||||
// ScriptUpdateRes 升级脚本返回
|
||||
message ScriptUpdateRes {
|
||||
}
|
||||
|
||||
// ErrorCode 返回码
|
||||
@@ -349,3 +359,9 @@ enum TaskStatus {
|
||||
DELETED = 10; // 已删除,仅在执行删除成功时返回
|
||||
}
|
||||
|
||||
enum OS {
|
||||
UNKNOWN = 0;
|
||||
IOS = 1;
|
||||
ANDROID = 2;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user