// 如果使用此注释，则使用proto3; 否则使用proto2
syntax = "proto3";

// 生成包名（服务器用）
option java_package = "com.game.shop.proto";
// 生成类名（服务器用）
option java_outer_classname = "ShopProto";


// -------------------------------------Bean-------------------------------------

// 商店商品Bean
message ShopGoodsInfo{
	fixed64 goodsId = 1;// 商品唯一id
	int32 configId = 2;// 物品配置id
	int32 num = 3;// 物品数量
	int32 moneyType = 4;// 货币类型
	int32 money = 5;// 货币数量
	int32 buyNum = 6;// 可购买次数
	int32 maxBuyNum = 7;// 最大购买次数
}


// -------------------------------------请求消息-------------------------------------

// 请求商店信息 msgId=115101		-----返回消息  msgId=115201
message ReqShopInfo{
	int32 id = 1;// 商店id 1=竞技场商店 2=熔炼商店...（详情查看商店配置id字段）
}

// 请求商店手动刷新商品 msgId=115102		-----返回消息  msgId=115201
message ReqShopRefresh{
	int32 id = 1;// 商店id 1=竞技场商店 2=熔炼商店...（详情查看商店配置id字段）
}

// 请求商店购买商品 msgId=115103		-----返回消息  msgId=115202
message ReqShopBuy{	
	int32 id = 1;// 商店id 1=竞技场商店 2=熔炼商店...（详情查看商店配置id字段）
	fixed64 goodsId = 2;// 购买商品唯一id
}

// -------------------------------------返回消息-------------------------------------

// 返回商店信息 msgId=115201
message ResShopInfo{
	int32 id = 1;// 商店id 1=竞技场商店 2=熔炼商店...（详情查看商店配置id字段）
	int32 reNum = 2;// 今日已刷新次数
	repeated ShopGoodsInfo goodsList = 3;// 商品列表
}

// 返回商店购买商品 msgId=115202
message ResShopBuy{
	int32 id = 1;// 商店id 1=竞技场商店 2=熔炼商店...（详情查看商店配置id字段）
	ShopGoodsInfo goods = 2;// 商品信息更新
}













