go_dreamfactory/pb/proto/items/items_db.proto
2022-06-27 17:45:02 +08:00

16 lines
933 B
Protocol Buffer

syntax = "proto3";
option go_package = ".;pb";
//背包格子
message DB_UserItemData {
string gridId = 1; //@go_tags(`bson:"_id"`) 背包格子Id
string uId = 2; //@go_tags(`bson:"uid"`) 用户id
bool isEmpty = 3; //@go_tags(`bson:"isEmpty"`) 是否是空格子
int32 itemId = 4; //@go_tags(`bson:"itemId"`) 存放物品的Id
uint32 amount = 5; //@go_tags(`bson:"amount"`) 存放物品的数量
int64 cTime = 6; //@go_tags(`bson:"cTime"`) 物品获取时间
int64 eTime = 7; //@go_tags(`bson:"eTime"`) 物品过期时间
bool isNewItem = 8; //@go_tags(`bson:"isNewItem"`) 是否是新的
}