更新大量【proto定义】并勘误
This commit is contained in:
61
grpc_api/bilibili/app/resource/privacy/v1/api.proto
Normal file
61
grpc_api/bilibili/app/resource/privacy/v1/api.proto
Normal file
@@ -0,0 +1,61 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.resource.privacy.v1;
|
||||
|
||||
// 隐私
|
||||
service Privacy {
|
||||
// 获取隐私设置
|
||||
rpc PrivacyConfig(NoArgRequest) returns(PrivacyConfigReply);
|
||||
// 修改隐私设置
|
||||
rpc SetPrivacyConfig(SetPrivacyConfigRequest) returns(NoReply);
|
||||
}
|
||||
|
||||
// 空请求
|
||||
message NoArgRequest{}
|
||||
|
||||
// 空响应
|
||||
message NoReply{}
|
||||
|
||||
// 获取隐私设置-响应
|
||||
message PrivacyConfigReply {
|
||||
// 隐私设置
|
||||
PrivacyConfigItem privacy_config_item = 1;
|
||||
}
|
||||
|
||||
// 隐私设置
|
||||
message PrivacyConfigItem {
|
||||
// 隐私开关类型
|
||||
PrivacyConfigType privacy_config_type = 1;
|
||||
//
|
||||
string title = 2;
|
||||
// 隐私开关状态
|
||||
PrivacyConfigState state = 3;
|
||||
//
|
||||
string sub_title = 4;
|
||||
//
|
||||
string sub_title_uri = 5;
|
||||
}
|
||||
|
||||
// 隐私开关类型
|
||||
enum PrivacyConfigType {
|
||||
//
|
||||
none = 0;
|
||||
// 动态同城
|
||||
dynamic_city = 1;
|
||||
}
|
||||
|
||||
// 隐私开关状态
|
||||
enum PrivacyConfigState {
|
||||
// 关闭
|
||||
close = 0;
|
||||
// 打开
|
||||
open = 1;
|
||||
}
|
||||
|
||||
// 修改隐私设置-请求
|
||||
message SetPrivacyConfigRequest {
|
||||
// 隐私开关类型
|
||||
PrivacyConfigType privacy_config_type = 1;
|
||||
// 隐私开关状态
|
||||
PrivacyConfigState state = 2;
|
||||
}
|
||||
133
grpc_api/bilibili/app/resource/v1/module.proto
Normal file
133
grpc_api/bilibili/app/resource/v1/module.proto
Normal file
@@ -0,0 +1,133 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.app.resource.v1;
|
||||
|
||||
//
|
||||
service Module {
|
||||
//
|
||||
rpc List(ListReq) returns (ListReply);
|
||||
}
|
||||
|
||||
//
|
||||
enum EnvType {
|
||||
//
|
||||
Unknown = 0;
|
||||
//
|
||||
Release = 1;
|
||||
//
|
||||
Test = 2;
|
||||
}
|
||||
|
||||
//
|
||||
enum LevelType {
|
||||
Undefined = 0;
|
||||
// 高,需立即下载
|
||||
High = 1;
|
||||
// 中,可以延迟下载
|
||||
Middle = 2;
|
||||
// 低,仅在业务方使用到时由业务方手动进行下载
|
||||
Low = 3;
|
||||
}
|
||||
|
||||
//
|
||||
message ListReq {
|
||||
//
|
||||
string pool_name = 1;
|
||||
//
|
||||
string module_name = 2;
|
||||
//
|
||||
repeated VersionListReq version_list = 3;
|
||||
//
|
||||
EnvType env = 4;
|
||||
//
|
||||
int32 sys_ver = 5;
|
||||
//
|
||||
int32 scale = 6;
|
||||
//
|
||||
int32 arch = 7;
|
||||
}
|
||||
|
||||
//
|
||||
message VersionListReq {
|
||||
//
|
||||
string pool_name = 1;
|
||||
//
|
||||
repeated VersionReq versions = 2;
|
||||
}
|
||||
|
||||
//
|
||||
message VersionReq {
|
||||
//
|
||||
string module_name = 1;
|
||||
//
|
||||
int64 version = 2;
|
||||
}
|
||||
|
||||
//
|
||||
enum IncrementType {
|
||||
// 全量包
|
||||
Total = 0;
|
||||
// 增量包
|
||||
Incremental = 1;
|
||||
}
|
||||
|
||||
//
|
||||
enum CompressType {
|
||||
// unzip
|
||||
Unzip = 0;
|
||||
// 不操作
|
||||
Original = 1;
|
||||
}
|
||||
|
||||
message ListReply {
|
||||
//
|
||||
string env = 1;
|
||||
//
|
||||
repeated PoolReply pools = 2;
|
||||
}
|
||||
|
||||
message PoolReply {
|
||||
//
|
||||
string name = 1;
|
||||
//
|
||||
repeated ModuleReply modules = 2;
|
||||
}
|
||||
|
||||
message ModuleReply {
|
||||
//
|
||||
string name = 1;
|
||||
//
|
||||
int64 version = 2;
|
||||
//
|
||||
string url = 3;
|
||||
//
|
||||
string md5 = 4;
|
||||
//
|
||||
string total_md5 = 5;
|
||||
//
|
||||
IncrementType increment = 6;
|
||||
//
|
||||
bool is_wifi = 7;
|
||||
//
|
||||
LevelType level = 8;
|
||||
//
|
||||
string filename = 9;
|
||||
//
|
||||
string file_type = 10;
|
||||
//
|
||||
int64 file_size = 11;
|
||||
//
|
||||
CompressType compress = 12;
|
||||
//
|
||||
int64 publish_time = 13;
|
||||
// 上报使用
|
||||
int64 pool_id = 14;
|
||||
//
|
||||
int64 module_id = 15;
|
||||
//
|
||||
int64 version_id = 16;
|
||||
//
|
||||
int64 file_id = 17;
|
||||
//
|
||||
bool zip_check = 18;
|
||||
}
|
||||
Reference in New Issue
Block a user