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

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;
}