go_dreamfactory/pb/proto/task/task_db.proto
2022-07-07 14:36:33 +08:00

19 lines
824 B
Protocol Buffer

syntax = "proto3";
option go_package = ".;pb";
message DBTask {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) 用户ID
int32 taskId = 3; //@go_tags(`bson:"taskId"`) 任务Id
int32 progress = 4; //@go_tags(`bson:"progress"`) 任务进度/完成次数
int32 active = 5; //@go_tags(`bson:"active"`) 活跃度
int32 status = 6; //@go_tags(`bson:"status"`) 任务状态 默认0未完成 1已完成
int32 received = 7; //@go_tags(`bson:"received"`) 领取状态 默认0未领取 1已领取
}
message DBTaskActive {
string id = 1; //@go_tags(`bson:"_id"`) ID
string uid = 2; //@go_tags(`bson:"uid"`) 用户ID
int32 rId = 3; //@go_tags(`bson:"taskId"`) rewardId
int32 received = 4; //@go_tags(`bson:"received"`) 领取状态 默认0未领取 1已领取
}