task_record.go
1.7 KB
package domain
import "time"
const (
AssistLevel1 int = 1 // 未辅导
AssistLevel2 int = 2 // 已辅导-辅导对里程碑无作用
AssistLevel3 int = 3 // 已辅导-辅导对里程碑作用一般
AssistLevel4 int = 4 // 已辅导-辅导对里程碑作用很好
)
// TaskRecord 任务反馈情况记录
type TaskRecord struct {
Id int `json:"id,string" comment:"记录ID"`
CompanyId int `json:"companyId,string" comment:"公司ID"`
StaffAssessId int `json:"staffAssessId,string" comment:"每日评估的ID"`
TaskId int `json:"taskId,string" comment:"任务ID"`
TaskCategory string `json:"taskCategory" comment:"任务类别"`
TaskName string `json:"taskName" comment:"任务名称"`
TaskAlias string `json:"taskAlias" comment:"任务别名"`
TaskLeader TaskLeader `json:"taskLeader" comment:"任务负责人"`
AssistLevel int `json:"assistLevel" comment:"上级辅导情况"`
AssistContent string `json:"assistContent" comment:"上级辅导内容"`
TaskStages []TaskStage `json:"taskStages" comment:"里程碑列表"`
TaskStageCheck TaskStage `json:"taskStageCheck" comment:"提交的里程碑"`
CreatedAt time.Time `json:"createdAt" comment:"创建时间"`
UpdatedAt time.Time `json:"updatedAt" comment:"更新时间"`
DeletedAt *time.Time `json:"deletedAt" comment:"删除时间"`
}
type TaskRecordRepository interface {
Insert(t *TaskRecord) (*TaskRecord, error)
Remove(t *TaskRecord) (*TaskRecord, error)
FindOne(queryOptions map[string]interface{}) (*TaskRecord, error)
Find(queryOptions map[string]interface{}) (int, []*TaskRecord, error)
}