task_level.go
707 字节
package domain
// 任务的新建分类
type TaskLevel struct {
Id int `json:"id"`
LevelName string `json:"levelName"`
CompanyId int `json:"companyId"`
}
type TaskLevelRepository interface {
Save(t *TaskLevel) error
// Remove(t *TaskLevel) (*TaskLevel, error)
// FindOne(queryOptions map[string]interface{}) (*TaskLevel, error)
Find(queryOptions map[string]interface{}) (int, []*TaskLevel, error)
}
func DefaultTaskLevel() []*TaskLevel {
return []*TaskLevel{
{
Id: 0,
LevelName: "战略任务",
CompanyId: 0,
},
{
Id: 0,
LevelName: "重点任务",
CompanyId: 0,
},
{
Id: 0,
LevelName: "常规任务",
CompanyId: 0,
},
}
}