37 lines
1.2 KiB
Protocol Buffer
37 lines
1.2 KiB
Protocol Buffer
syntax = "proto3";
|
||
package Pb;
|
||
option go_package = "pb/";
|
||
|
||
import "mod_item.proto";
|
||
|
||
// ModId.ModuleLottery = 13000;
|
||
// 邮件模块消息定义
|
||
// 如果定义的消息内没有字段或者消息被注释掉了,说明该请求不需要参数,发送消息时仅发送包头即可,包体可为空, 返回的消息亦是如此。
|
||
|
||
message LotteryPool {
|
||
uint32 PoolId = 1;
|
||
uint32 Points = 2; //抽卡积分(保留,暂时无用)
|
||
// uint32 Count = 3; //抽了多少次,计算还有多少次达到保底,通过计数器(见消息: Counter):Counter.type == CounterType.LotteryOrdinary, Counter.Key == (PoolId << 32 | BoxId)
|
||
}
|
||
|
||
// MsgId.ModLotteryPoolList = 13001;
|
||
// MsgId.ModLotteryPoolChange = 13002;
|
||
// 卡池列表返回
|
||
message LotteryPoolListAck {
|
||
uint32 Points = 1; //所有卡池抽卡总积分
|
||
repeated LotteryPool PoolList = 2; //卡池列表
|
||
}
|
||
|
||
// MsgId.ModLotteryDraw = 13003;
|
||
// 抽卡请求
|
||
message LotteryDrawReq {
|
||
uint32 PoolId = 1; //卡池ID
|
||
uint32 Times = 2; //抽卡次数
|
||
}
|
||
|
||
// MsgId.ModLotteryDraw = 13003;
|
||
// 抽卡返回
|
||
message LotteryDrawAck {
|
||
uint32 PoolId = 1; //卡池ID
|
||
repeated Item ItemList = 2; //物品列表
|
||
} |