更新大量【proto定义】并勘误
This commit is contained in:
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