syntax = "proto3";
option go_package = ".;pb";
import "troll_db.proto";
// 查询进度
message TrollGetListReq {

}
// 返回进度信息
message TrollGetListResp { 
    DBTrollTrain data = 1; 
}

// 买卖货物
message TrollBuyOrSellReq {
    map<int32,int32> items =1;//买入货物的数量(负数为卖)
}

message TrollBuyOrSellResp { 
    DBTrollTrain data = 1; 
}

// afk 设置
message TrollAfkSetReq {
    int32 buy = 1;
    int32 sell = 2;
    int32 count = 3; // 挂机次数
}

message TrollAfkSetResp { 
    DBTrollTrain data = 1; 
}

// npv等级奖励
message TrollNpcRewardReq {
    int32 rewardId = 1;
}

message TrollNpcRewardResp { 
    DBTrollTrain data = 1; 
}
 
// 获取收益排行榜
message TrollRankListReq {

}
message RankData{
    int32 rankId = 1; // 排名
    string uid = 2; 
    string name = 3; // 昵称
    int64 gold = 4; // 收益金币
    int32 figure = 5; // 形象
    int32 title = 6;
}
message TrollRankListResp { 
    repeated RankData data = 1; 
}

// 获取收益明细
message TrollRecordListReq {

}

message TrollRecordListResp { 
    repeated DBTrollRecord data = 1; 
}
// 获取惊喜商品
message TrollSurpriseIdReq {

}

// 返回进度信息
message TrollSurpriseIdResp { 
    map<int32,int32> surpriseID = 1; //@go_tags(`bson:"surpriseID"`) key商人id value惊喜货物ID
}