50 lines
913 B
Go
50 lines
913 B
Go
![]() |
package old
|
|||
|
|
|||
|
type Task struct {
|
|||
|
Id uint32 `json:"Id"`
|
|||
|
Process []int `json:"Process"`
|
|||
|
Status uint32 `json:"Status"` //任务状态:0.未完成,1.已完成,2.已提交(已领取)
|
|||
|
}
|
|||
|
|
|||
|
type MsgTaskListAck struct {
|
|||
|
List []*Task `json:"List,omitempty"`
|
|||
|
}
|
|||
|
|
|||
|
type TaskChange struct {
|
|||
|
*Task
|
|||
|
ChangeType uint32 `json:"ChangeType"`
|
|||
|
}
|
|||
|
|
|||
|
type MsgTaskChangeListAck struct {
|
|||
|
List []*TaskChange `json:"List"`
|
|||
|
}
|
|||
|
|
|||
|
type MsgTaskCommitReq struct {
|
|||
|
Id uint32 `json:"Id"`
|
|||
|
}
|
|||
|
|
|||
|
type MsgTaskCommitAck struct {
|
|||
|
*MsgRewardListAck
|
|||
|
|
|||
|
Id uint32 `json:"Id"`
|
|||
|
}
|
|||
|
|
|||
|
type ActiveReward struct {
|
|||
|
Id uint32 `json:"Id"`
|
|||
|
Status uint32 `json:"Status"`
|
|||
|
}
|
|||
|
|
|||
|
type MsgActiveInfoAck struct {
|
|||
|
Value uint32 `json:"Value,omitempty"`
|
|||
|
StatusList []*ActiveReward `json:"StatusList,omitempty"`
|
|||
|
}
|
|||
|
|
|||
|
type MsgActiveGetRewardReq struct {
|
|||
|
Id uint32 `json:"Id"`
|
|||
|
}
|
|||
|
|
|||
|
type MsgActiveGetRewardAck struct {
|
|||
|
*ActiveReward
|
|||
|
*MsgRewardListAck
|
|||
|
}
|