// message结构的属性名请使用 驼峰小写字母开始 syntax = "proto3"; option go_package = "/pb"; package pb; import "base_type.proto"; // 商店列表 message ShopList { repeated Shop list = 1; // 商店列表 } // 商店信息 message Shop { int32 shopID = 1; // 商店ID S-商店表商店ID int32 shopPoolID = 2; // 当前商店商品库ID S-商店-商品库表商品库ID repeated I32I32 goodsList = 3; // 商品列表 key 为商品ID value 为购买次数 int64 resetTime = 4; // 重置时间戳 0 为不重置 } // 商店购买 message ShopBuyRequest { int32 shopID = 1; // 商店ID S-商店表商店ID repeated I32I32 goodsList = 2; // 购买商品列表 key 购买商品ID S-商店-商品库表商品ID value 购买数量 } // 商店购买返回 message ShopBuyResponse { int32 shopID = 1; // 商店ID S-商店表商店ID repeated I32I32 goodsList = 2; // 购买商品列表 key 购买商品ID S-商店-商品库表商品ID value 累计购买数量 repeated Asset assets = 3; // 购买获得的资产列表 } // 商店变更 message ShopChangePush { repeated int32 delShopIDs = 1; // 删除商店ID列表 repeated Shop list = 2; // 变更商店列表 }