update 【gRPC API】 proto files

This commit is contained in:
社会易姐QwQ
2022-09-16 22:41:58 +08:00
parent 283c718206
commit 17eee20dce
11 changed files with 3094 additions and 125 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,96 @@
syntax = "proto3";
package bilibili.polymer.app.govern.v1;
// 反骚扰
service AntiHarassmentService {
//
rpc StoreAntiHarassmentSettings(StoreAntiHarassmentSettingsReq) returns (StoreAntiHarassmentSettingsRsp);
//
rpc LoadAntiHarassmentSettings(LoadAntiHarassmentSettingsReq) returns (LoadAntiHarassmentSettingsRsp);
}
//
message AntiHarassmentInfo {
//
int32 limit = 1;
//
int32 follow_time_limit_second = 2;
//
int64 expire_time = 3;
}
//
enum AntiHarassmentLimit {
DefaultLimit = 0; //
FollowLimit = 1; //
ReFollowLimit = 2; //
TwoWayFollow = 3; //
AllLimit = 4; //
}
//
message AntiHarassmentSetting {
//
int64 mid = 1;
//
bool auto_limit = 2;
//
AntiHarassmentInfo im = 3;
//
AntiHarassmentInfo reply = 4;
//
AntiHarassmentInfo dm = 5;
//
AntiHarassmentInfo reply_me = 6;
//
AntiHarassmentInfo like_me = 7;
//
AntiHarassmentInfo at_me = 8;
//
int64 auto_limit_expire_time = 9;
}
//
enum BizType {
InvalidBizType = 0; //
Im = 1; //
Dm = 2; //
Reply = 3; //
ReplyMe = 4; //
LikeMe = 5; //
AtMe = 6; //
}
//
message LoadAntiHarassmentSettingsReq {
//
int32 biz_type = 1;
//
int64 recv_mid = 2;
//
int64 send_mid = 3;
}
//
message LoadAntiHarassmentSettingsRsp {
//
bool anti_harassment_ret = 1;
//
AntiHarassmentSetting anti_harassment_setting = 2;
//
int32 show_window = 3;
}
//
message StoreAntiHarassmentSettingsReq {
//
int32 biz_type = 1;
//
int64 mid = 2;
//
AntiHarassmentSetting anti_harassment_setting = 3;
}
//
message StoreAntiHarassmentSettingsRsp {}

View File

@@ -4,10 +4,26 @@ package bilibili.polymer.contract;
import "google/protobuf/empty.proto";
//
// 契约
service Contract {
//
rpc AddContract(AddContractReq) returns (google.protobuf.Empty);
//
rpc AddContractV2(AddContractReq) returns (AddContractReply);
//
rpc ContractConfig(ContractConfigReq) returns (ContractConfigReply);
}
//
message AddContractReply {
//
bool allow_message = 1;
//
bool allow_reply = 2;
//
string input_text = 3;
//
string input_title = 4;
}
//
@@ -20,6 +36,8 @@ message AddContractReq {
int64 up_mid = 3;
//
int64 aid = 4;
//
int32 source = 5;
}
//
@@ -40,3 +58,34 @@ message CommonReq {
string spmid = 7;
}
//
message ContractCard {
//
string title = 1;
//
string sub_title = 2;
}
//
message ContractConfigReply {
//
int32 is_follow_display = 1;
//
int32 is_triple_display = 2;
//
ContractCard contract_card = 3;
}
//
message ContractConfigReq {
//
CommonReq common = 1;
//
int64 mid = 2;
//
int64 up_mid = 3;
//
int64 aid = 4;
//
int32 source = 5;
}

View File

@@ -41,6 +41,4 @@ message FavoriteTabReply {
}
//
message FavoriteTabReq {
}
message FavoriteTabReq {}