更新gRPC proto定义
This commit is contained in:
@@ -1 +1,112 @@
|
||||
// TODO
|
||||
syntax = "proto3";
|
||||
|
||||
package bilibili.dagw.component.avatar.v1;
|
||||
|
||||
import "bilibili/dagw/component/avatar/common/common.proto";
|
||||
import "bilibili/dagw/component/avatar/v1/plugin.proto";
|
||||
|
||||
//
|
||||
message AvatarItem {
|
||||
//
|
||||
bilibili.dagw.component.avatar.common.SizeSpec container_size = 1;
|
||||
//
|
||||
repeated LayerGroup layers = 2;
|
||||
//
|
||||
LayerGroup fallback_layers = 3;
|
||||
//
|
||||
int64 mid = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message BasicLayerResource {
|
||||
//
|
||||
int32 res_type = 1;
|
||||
//
|
||||
oneof payload {
|
||||
//
|
||||
ResImage res_image = 2;
|
||||
//
|
||||
ResAnimation res_animation = 3;
|
||||
///
|
||||
ResNativeDraw res_native_draw = 4;
|
||||
};
|
||||
}
|
||||
|
||||
//
|
||||
message GeneralConfig {
|
||||
//
|
||||
map<string, string> web_css_style = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message Layer {
|
||||
//
|
||||
string layer_id = 1;
|
||||
//
|
||||
bool visible = 2;
|
||||
//
|
||||
LayerGeneralSpec general_spec = 3;
|
||||
//
|
||||
LayerConfig layer_config = 4;
|
||||
//
|
||||
BasicLayerResource resource = 5;
|
||||
}
|
||||
|
||||
//
|
||||
message LayerConfig {
|
||||
//
|
||||
map<string, LayerTagConfig> tags = 1;
|
||||
//
|
||||
bool is_critical = 2;
|
||||
//
|
||||
bool allow_over_paint = 3;
|
||||
//
|
||||
MaskProperty layer_mask = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message LayerGroup {
|
||||
//
|
||||
string group_id = 1;
|
||||
//
|
||||
repeated Layer layers = 2;
|
||||
//
|
||||
MaskProperty group_mask = 3;
|
||||
//
|
||||
bool is_critical_group = 4;
|
||||
}
|
||||
|
||||
//
|
||||
message LayerTagConfig {
|
||||
//
|
||||
int32 config_type = 1;
|
||||
//
|
||||
oneof config {
|
||||
//
|
||||
GeneralConfig general_config = 2;
|
||||
//
|
||||
bilibili.dagw.component.avatar.v1.plugin.GyroConfig gyro_config = 3;
|
||||
//
|
||||
bilibili.dagw.component.avatar.v1.plugin.CommentDoubleClickConfig comment_doubleClick_config = 4;
|
||||
//
|
||||
bilibili.dagw.component.avatar.v1.plugin.LiveAnimeConfig live_anime_config = 5;
|
||||
};
|
||||
}
|
||||
|
||||
//
|
||||
message ResAnimation {
|
||||
//
|
||||
ResourceSource webp_src = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message ResImage {
|
||||
//
|
||||
ResourceSource image_src = 1;
|
||||
}
|
||||
|
||||
//
|
||||
message ResNativeDraw {
|
||||
//
|
||||
ResourceSource draw_src = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user