36 lines
1.0 KiB
Protocol Buffer
36 lines
1.0 KiB
Protocol Buffer
syntax = "proto3";
|
|
option go_package = ".;pb";
|
|
|
|
enum PandataPillarState {
|
|
NoUse = 0; //未使用
|
|
Useing = 1; //使用中
|
|
Receive = 2; //待领取
|
|
}
|
|
///熊猫柱子
|
|
message DBPandataPillar {
|
|
int32 index = 1; //柱子下标
|
|
bool isunlock = 2; //是否解锁
|
|
PandataPillarState state = 3; //状态
|
|
string hero = 4; //当前练功英雄
|
|
int64 start = 5; //开始时间
|
|
int64 end = 6; //结束时间
|
|
int64 lastbill = 7; //上次结账时间
|
|
int32 reward = 8; //奖励
|
|
}
|
|
|
|
//熊猫武馆教习
|
|
message DBPandataTeacher {
|
|
string id = 1; //id
|
|
string cid = 2; //配置id
|
|
string student =3; //学员id 有表示正在教学,没有表示没有教学
|
|
}
|
|
|
|
//练功房
|
|
message DBPandataKekan {
|
|
string id = 1; //id
|
|
string uid = 2; //用户id
|
|
DBPandataPillar pillar1 = 4; //柱子1
|
|
DBPandataPillar pillar2 = 5; //柱子2
|
|
DBPandataPillar pillar3 = 6; //柱子3
|
|
DBPandataPillar pillarf = 7; //好友柱子
|
|
} |