syntax = "proto3";
option go_package = ".;pb";
import "dispatch/dispatch_db.proto";

// 玩家公告
message DispatchNoticeReq{}

message DispatchNoticeResp{
    Noticeboard dispatch = 1;
}

//刷新公告
message DispatchRefreshReq{}

message DispatchRefreshResp{
    int32 freeCount = 1; //已使用的免费次数
    int32 refreshCount = 2; //已刷新次数
}

message DispatchTaskRsp{
    int32 taskId =1;
    bool exaward = 2;
}

// 领取任务奖励
message DispatchReceiveReq{
    int32 taskId = 1; //任务ID
}
message DispatchReceiveResp{
    DispatchTaskRsp rsp = 1;
}

//一键领取任务奖励
message DispatchAutoReceiveReq{}

message DispatchAutoReceiveResp{
    repeated DispatchTaskRsp task = 1; //领取奖励的任务ID
}

// 派遣
message DispatchDoReq{
    int32 taskId = 1;
    repeated string heroIds = 2;
}

message DispatchDoResp{
    bool isSucc = 1; //派遣是否成功
}

// 周奖励领取
message DispatchWeekReciveReq{
    int32 idx = 1; // 奖励节点索引号从0开始
}

message DispatchWeekReciveResp{
    int32 idx= 1;
}

