mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-25 11:36:35 +08:00
增加列出IP名单中的IP ID列表的API
This commit is contained in:
@@ -50,6 +50,9 @@ service IPItemService {
|
||||
// 列出所有名单中的IP
|
||||
rpc listAllEnabledIPItems(ListAllEnabledIPItemsRequest) returns (ListAllEnabledIPItemsResponse);
|
||||
|
||||
// 列出所有名单中的IP ID
|
||||
rpc listAllIPItemIds(ListAllIPItemIdsRequest) returns (ListAllIPItemIdsResponse);
|
||||
|
||||
// 设置所有为已读
|
||||
rpc updateIPItemsRead(UpdateIPItemsReadRequest) returns (RPCSuccess);
|
||||
|
||||
@@ -236,6 +239,23 @@ message ListAllEnabledIPItemsResponse {
|
||||
}
|
||||
}
|
||||
|
||||
// 列出所有名单中的IP ID
|
||||
message ListAllIPItemIdsRequest {
|
||||
string keyword = 8; // 关键词
|
||||
string ip = 1; // 单个IP,搜索单个IP时需要
|
||||
bool globalOnly = 2; // 是否为自动添加的IP
|
||||
bool unread = 5; // 是否未读
|
||||
string eventLevel = 6; // 事件级别
|
||||
string listType = 7; // 列表类型:black|white
|
||||
int64 userId = 9; // 用户ID,只有管理员才有权限指定用户ID
|
||||
int64 offset = 3; // 读取位置,从0开始
|
||||
int64 size = 4; // 每次读取数量
|
||||
}
|
||||
|
||||
message ListAllIPItemIdsResponse {
|
||||
repeated int64 ipItemIds = 1; // IP ID列表
|
||||
}
|
||||
|
||||
// 设置所有为已读
|
||||
message UpdateIPItemsReadRequest {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user