syntax = "proto2";

package MedalResult;

//option optimize_for = LITE_RUNTIME;

option java_package = "com.miaole.live.protocol.response";
option java_outer_classname = "MedalResult";
//勋章信息
message MedalInfo {
    optional string id = 1; //勋章id
    optional int32 type = 2; //勋章类型（1-标记,2-功能,3-财富,4-活动,5-其他）
    optional string size = 3; //勋章(n字勋章)
    optional string showUserId = 4;//展示的用户ID
    optional int32 level = 5; // 勋章等级（1-普通，2-稀有，3-完美，4-传说，5-神话）
    optional string medalDesc = 6; // 勋章描述
    optional string showTips = 7; // 提示
    optional string belongNobleId = 8; // 归属贵族id
    optional int64 overTime = 9; // 到期时间
    optional string flash = 10; // 动画
    optional string dynamicUrl = 11; // webp格式动画地址
    optional int32 styleType = 12;// 勋章样式类型 1:正方形 2:长方形
    optional string medalDescI18n = 13; // 勋章描述国际化
    optional int32 sequenceId = 14; // 排序ID
    optional int32 groupId = 15; // 组内ID
    optional int32 groupSort = 16; // 组内排序
    optional int32 groupHandleType = 17; // 同级处理类型 0:默认复盖1:取同组最高,取sort
    optional int32 timeHandleType = 18; // 时间处理类型
    optional string icon = 19; // 勋章图片
    optional int32 isCommon = 20; // 是否在公共区域展示，0为不展示，1为展示
    optional string activityId = 21; // 活动ID
    optional int32 levelSort = 22; // 等级排序
    optional int32 customType = 23; // 定制类型：0非定制 1定制
    optional int32 source = 24; // 来源：1.手动；2.勋章生成器同步
    optional int32 effectType = 25; // 有效类型（0-限时 1-永久）
    optional int32 status = 26; // 1-上线，3-下线
    optional string name = 27; // 活动ID
    optional string startTime = 28;//开始时间(YYYY-MM-DD hh:mm:ss)
    optional string endTime = 29;//结束时间(YYYY-MM-DD hh:mm:ss)
    optional int32 version = 30;//版本号
}

// 个性装扮的勋章墙信息
message myMedalInfos {
    repeated MedalInfo useMedalInfos = 1; // 使用中的勋章
    repeated MedalInfo ownMedalInfos = 2; // 已拥有的勋章
    optional int32 useMedalLimit = 3;     // 可佩戴勋章数量限制
    repeated MedalStyleNum styleNumConfig = 4; // 勋章样式类型佩戴数量
}

// 个性装扮的所有勋章
message totalMedalInfos {
    repeated MedalInfo useMedalInfos = 1; // 平台所有的勋章
}

// 历史记录勋章
message historyMedalInfos {
    repeated MedalInfo ownMedalInfos = 1; // 已拥有的勋章
    repeated MedalInfo historyMedalInfos = 2; // 历史勋章
}

//勋章样式类型佩戴数量
message MedalStyleNum {
    optional int32 styleType = 1;
    optional int32 num = 2;
}

// 勋章列表
message MedalList {
  repeated MedalInfo list = 1;
}

