syntax = "proto3"; option go_package = ".;pb"; import "items_db.proto"; //查询用户背包请求 message ItemsGetlistReq { int32 IType = 1; //道具类型 } //查询用户背包请求 回应 message ItemsGetlistResp { repeated DB_UserItemData Grids = 1; //用户背包列表 } //背包变化推送 message ItemsChangePush { repeated DB_UserItemData Grids = 1; //变化数据 } //使用物品请求 message ItemsUseItemReq { string GridId = 1; //格子Id uint32 Amount = 2; //使用数量 int32 Select = 3; //选择下标 } //使用物品请求 回应 message ItemsUseItemResp { string GridId = 1; //格子Id uint32 Amount = 2; //使用数量 bool issucc = 3; //是否成功 } //出售道具请求sailitem message ItemsSellItemReq { string GridId = 1; //格子Id string ItemId = 2; //物品Id uint32 Amount = 3; //使用数量 } //出售道具请求 回应 message ItemsSellItemResp { string GridId = 1; //格子Id uint32 Amount = 2; //使用数量 bool issucc = 3; //是否成功 }