syntax = "proto3";
option go_package = ".;pb";
import "shop_db.proto";
import "comm.proto";
import "equipment_db.proto";

//商品对象数据
message ShopItem {
  int32 GoodsId = 1;               //商品Id
  repeated UserAssets Items = 2;   //货物
  repeated UserAssets Consume = 3; //消耗
  int32 Sale = 4;                  //打折
  int32 LeftBuyNum = 5;            //还可购买次数
  DB_Equipment preview = 6;        //装备预览数据
}

//获取装备列表请求
message ShopGetListReq {
  ShopType sType = 1;       //商城类型
  bool IsManualRefresh = 2; //是否手动刷新
}

//获取装备列表请求
message ShopGetListResp {
  ShopType sType = 1;          //商城类型
  bool IsManualRefresh = 2;    //是否手动刷新
  repeated ShopItem Goods = 4; //商品列表
  int32 SurplusRefreshNum = 5; //剩余手动刷新次数
}

//购买商品 请求
message ShopBuyReq {
  ShopType ShopType = 1; //商店类型
  int32 GoodsId = 2;     //商品Id
  int32 BuyNum = 3;      //商品购买数量
}

//购买商品 回应
message ShopBuyResp {
  bool IsSucc = 1; //是否成功
}
