42 lines
696 B
Protocol Buffer
42 lines
696 B
Protocol Buffer
syntax = "proto3";
|
|
option go_package = ".;pb";
|
|
import "pack_db.proto";
|
|
|
|
//物品数量
|
|
message ItemAmount {
|
|
bool IsNew = 1; //是否是新的
|
|
uint32 ItemId = 2;
|
|
uint32 Amount = 3;
|
|
}
|
|
|
|
//查询用户背包请求
|
|
message QueryUserPackReq {
|
|
ItemType IType = 1;
|
|
}
|
|
|
|
//查询用户背包请求 回应
|
|
message QueryUserPackResp {
|
|
repeated ItemAmount Items = 1;
|
|
}
|
|
|
|
//使用物品请求
|
|
message UseItemReq {
|
|
uint32 ItemId = 2;
|
|
uint32 Amount = 3;
|
|
}
|
|
|
|
//使用物品请求 回应
|
|
message UseItemResp {
|
|
|
|
}
|
|
|
|
//出售道具请求
|
|
message SellItemReq {
|
|
uint32 ItemId = 2;
|
|
uint32 Amount = 3;
|
|
}
|
|
|
|
//出售道具请求 回应
|
|
message SellItemResp {
|
|
|
|
} |