syntax = "proto3";
option go_package = ".;pb";
import "task/task_db.proto";

message TaskGetrecordReq {}
message TaskGetrecordResp { DBRtaskRecord record = 1; }

//任务触发
message TaskSendReq {
  int32 taskType = 1;        //任务类型
  repeated int32 params = 2; //任务参数
}
message TaskSendResp {
  bool isSucc = 1;
}

//领取
message TaskReceiveReq {
  int32 taskTag = 1; // 1日常/2周常/3成就
  int32 id = 2;     //任务唯一ID
}

message TaskReceiveResp {
  int32 taskId = 1; //任务配置ID
}

//任务列表
message TaskListReq {
  int32 taskTag = 1; //日常/周常/成就
}

message TaskListResp { repeated TaskData list = 1; }

//活跃度
message TaskActiveListReq { int32 taskTag = 1; }
message TaskActiveListResp {
  repeated ActivityData list = 1; //活跃度列表
  int32 active = 2;               //活跃度值
}

//活跃度领取
message TaskActiveReceiveReq {
  int32 taskTag = 1; // 1日常/2周常
  int32 id = 2;     //唯一id
}
message TaskActiveReceiveResp {
  int32 taskTag = 1;
  int32 id = 2;
}


//任务完成推送
message TaskFinishedPush { int32 taskId = 1; }

message TaskActiveReceivePush {
  int32 taskTag = 1;
  int32 id = 2;
}
