更新
This commit is contained in:
58
cmd.proto
58
cmd.proto
@@ -24,7 +24,8 @@ message SaasReq {
|
|||||||
BindSet bind_set = 61; // 设置绑定
|
BindSet bind_set = 61; // 设置绑定
|
||||||
BindDelete bind_delete = 62; // 解除绑定
|
BindDelete bind_delete = 62; // 解除绑定
|
||||||
|
|
||||||
Debug debug = 90; // 试运行lua脚本
|
ScriptRun script_run = 90; // 运行脚本
|
||||||
|
ScriptUpdate script_update = 91; // 脚本升级
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -157,23 +158,25 @@ message TargetList {
|
|||||||
|
|
||||||
// BindSet 设置绑定
|
// BindSet 设置绑定
|
||||||
message BindSet {
|
message BindSet {
|
||||||
repeated Bind binds = 2; // 设置绑定内容
|
repeated Bind binds = 2; // 设置绑定内容
|
||||||
}
|
}
|
||||||
|
|
||||||
// BindDelete 删除绑定
|
// BindDelete 删除绑定
|
||||||
message BindDelete {
|
message BindDelete {
|
||||||
repeated Bind binds = 2; // 解除绑定内容
|
repeated Bind binds = 2; // 解除绑定内容
|
||||||
}
|
}
|
||||||
|
|
||||||
// Debug 调试
|
// ScriptRun 运行脚本
|
||||||
message Debug {
|
message ScriptRun {
|
||||||
string lua_script = 1; // 要调试的lua脚本
|
string lua_script = 1; // 要调试的lua脚本
|
||||||
bool use_server_data = 2; // 是否使用服务端用户数据
|
string server_did = 2; // 将从服务端读取该DID下的数据
|
||||||
string server_did = 3; // 将从服务端读取该DID下的数据
|
string appid = 3; // 小程序/小游戏/公众号/视频号的appid
|
||||||
string appid = 4; // 小程序/小游戏/公众号/视频号的appid
|
string server_openid = 4; // 将从服务端读取该openid下的数据,需与appid配对使用
|
||||||
string server_openid = 5; // 将从服务端读取该openid下的数据,需与appid配对使用
|
OS os = 5; // 操作系统
|
||||||
WriteItem local_did_data = 6; // 客户自定义DID用户数据
|
}
|
||||||
WriteItem local_openid_data = 7; // 客户定定义OpenID用户数据
|
|
||||||
|
// ScriptUpdate 升级脚本
|
||||||
|
message ScriptUpdate {
|
||||||
}
|
}
|
||||||
|
|
||||||
// SaasRes 命令返回
|
// SaasRes 命令返回
|
||||||
@@ -196,13 +199,16 @@ message SaasRes {
|
|||||||
|
|
||||||
BindSetRes bind_set_res = 61; // 设置绑定返回状态
|
BindSetRes bind_set_res = 61; // 设置绑定返回状态
|
||||||
BindDeleteRes bind_delete_res = 62; // 删除绑定返回状态
|
BindDeleteRes bind_delete_res = 62; // 删除绑定返回状态
|
||||||
|
|
||||||
|
ScriptRunRes script_run_res = 90; // 运行脚本返回
|
||||||
|
ScriptUpdateRes script_update_res = 91; // 升级脚本返回
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// InfoRes 账号信息返回
|
// InfoRes 账号信息返回
|
||||||
message InfoRes {
|
message InfoRes {
|
||||||
repeated string dataspace_id = 1; // 可用数据区
|
repeated string dataspace_id = 1; // 可用数据区列表
|
||||||
repeated string target_id = 2; // 策略ID
|
repeated string target_id = 2; // 策略ID列表
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -215,8 +221,8 @@ message ReadRes {
|
|||||||
|
|
||||||
// WriteRes 写记录返回
|
// WriteRes 写记录返回
|
||||||
message WriteRes {
|
message WriteRes {
|
||||||
//uint32 succ_cmd_count = 1; // 成功的命令数量
|
//uint32 succ_cmd_count = 1; // 成功的命令数量
|
||||||
//uint32 fail_cmd_count = 2; // 失败的命令数量
|
//uint32 fail_cmd_count = 2; // 失败的命令数量
|
||||||
repeated string failed_userid = 3; // 返回的失败的用户ID
|
repeated string failed_userid = 3; // 返回的失败的用户ID
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -292,11 +298,15 @@ message BindError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// DebugRes 调试返回
|
// ScriptRunRes 运行脚本返回
|
||||||
message DebugRes {
|
message ScriptRunRes {
|
||||||
string PrintOutput = 1; // print输出
|
string print_output = 1; // print输出
|
||||||
string Error = 2; // 错误信息
|
string error = 2; // 错误信息
|
||||||
string TargetsOutput = 3; // 策略输出
|
string targets_output = 3; // 策略输出
|
||||||
|
}
|
||||||
|
|
||||||
|
// ScriptUpdateRes 升级脚本返回
|
||||||
|
message ScriptUpdateRes {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ErrorCode 返回码
|
// ErrorCode 返回码
|
||||||
@@ -346,6 +356,12 @@ enum TaskStatus {
|
|||||||
SUCCESS = 4; // 成功
|
SUCCESS = 4; // 成功
|
||||||
FAIL = 5; // 失败
|
FAIL = 5; // 失败
|
||||||
|
|
||||||
DELETED = 10; // 已删除,仅在执行删除成功时返回
|
DELETED = 10; // 已删除,仅在执行删除成功时返回
|
||||||
|
}
|
||||||
|
|
||||||
|
enum OS {
|
||||||
|
UNKNOWN = 0;
|
||||||
|
IOS = 1;
|
||||||
|
ANDROID = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ Usage: saastoola bind COMMAND [OPTIONS]
|
|||||||
|
|
||||||
Commands:
|
Commands:
|
||||||
setaccount Set Account binds
|
setaccount Set Account binds
|
||||||
setad Set AdGroup binds
|
setad Set AdGroup binds
|
||||||
delete Delete binds
|
delete Delete binds
|
||||||
|
|
||||||
"help" is the default command.
|
"help" is the default command.
|
||||||
|
|||||||
Reference in New Issue
Block a user