update 【gRPC API】 proto files
This commit is contained in:
42
grpc_api/bilibili/polymer/contract/contract.proto
Normal file
42
grpc_api/bilibili/polymer/contract/contract.proto
Normal file
@@ -0,0 +1,42 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.polymer.contract;
|
||||
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
//
|
||||
service Contract {
|
||||
//
|
||||
rpc AddContract(AddContractReq) returns (google.protobuf.Empty);
|
||||
}
|
||||
|
||||
//
|
||||
message AddContractReq {
|
||||
//
|
||||
CommonReq common = 1;
|
||||
//
|
||||
int64 mid = 2;
|
||||
//
|
||||
int64 up_mid = 3;
|
||||
//
|
||||
int64 aid = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message CommonReq {
|
||||
//
|
||||
string platform = 1;
|
||||
//
|
||||
int32 build = 2;
|
||||
//
|
||||
string buvid = 3;
|
||||
//
|
||||
string mobi_app = 4;
|
||||
//
|
||||
string device = 5;
|
||||
//
|
||||
string ip = 6;
|
||||
//
|
||||
string spmid = 7;
|
||||
}
|
||||
|
||||
15
grpc_api/bilibili/polymer/demo/demo.proto
Normal file
15
grpc_api/bilibili/polymer/demo/demo.proto
Normal file
@@ -0,0 +1,15 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.polymer.demo;
|
||||
|
||||
//
|
||||
message HelloWorldReq {
|
||||
//
|
||||
string content = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message HelloWorldResp {
|
||||
//
|
||||
string data = 1;
|
||||
}
|
||||
46
grpc_api/bilibili/polymer/list/list.proto
Normal file
46
grpc_api/bilibili/polymer/list/list.proto
Normal file
@@ -0,0 +1,46 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.polymer.list;
|
||||
|
||||
//
|
||||
service List {
|
||||
//
|
||||
rpc FavoriteTab(FavoriteTabReq) returns (FavoriteTabReply);
|
||||
//
|
||||
rpc CheckAccount(CheckAccountReq) returns (CheckAccountReply);
|
||||
}
|
||||
|
||||
//
|
||||
message CheckAccountReply {
|
||||
//
|
||||
bool is_new = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message CheckAccountReq {
|
||||
//
|
||||
int64 uid = 1;
|
||||
//
|
||||
string periods = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message FavoriteTabItem {
|
||||
//
|
||||
string name = 1;
|
||||
//
|
||||
string uri = 2;
|
||||
//
|
||||
string type = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message FavoriteTabReply {
|
||||
//
|
||||
repeated FavoriteTabItem items = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message FavoriteTabReq {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user