增加服务之间拷贝配置的API(开源版本只有定义,没有实现)

This commit is contained in:
GoEdgeLab
2023-04-09 16:00:21 +08:00
parent 0e6472f154
commit d3713344bc
6 changed files with 296 additions and 269 deletions

View File

@@ -4,7 +4,8 @@ option go_package = "./pb";
package pb;
message ServerGroup {
int64 id = 1;
string name = 2;
int64 userId = 3;
int64 id = 1; // ID
string name = 2; // 分组名称
int64 userId = 3; // 所属用户ID
bool isOn = 4; // 是否启用
}

View File

@@ -73,10 +73,11 @@ message DeleteServerGroupRequest {
// 查询所有分组
message FindAllEnabledServerGroupsRequest {
int64 userId = 1; // 可选项用户ID只有管理员才可以指定用户ID
}
message FindAllEnabledServerGroupsResponse {
repeated ServerGroup serverGroups = 1;
repeated ServerGroup serverGroups = 1; // 分组列表
}
// 修改分组排序