evaluation_cycle_template.go 1.0 KB
package domain

import (
	"time"
)

type EvaluationCycleTemplate struct {
	Id        int64               `json:"id,string" comment:"模板ID"`
	Name      string              `json:"name" comment:"模板名称"`
	Template  *EvaluationTemplate `json:"template" comment:"模板数据"`
	CycleId   int64               `json:"cycleId,string" comment:"周期ID"`
	CreatedAt time.Time           `json:"createdAt" comment:"创建时间"`
	UpdatedAt time.Time           `json:"updatedAt" comment:"更新时间"`
	DeletedAt *time.Time          `json:"deletedAt" comment:"删除时间"`
}

type EvaluationCycleTemplateRepository interface {
	Insert(cycle *EvaluationCycleTemplate) (*EvaluationCycleTemplate, error)
	Remove(cycle *EvaluationCycleTemplate) (*EvaluationCycleTemplate, error)
	FindOne(queryOptions map[string]interface{}) (*EvaluationCycleTemplate, error)
	Find(queryOptions map[string]interface{}, excludeColumns ...string) (int64, []*EvaluationCycleTemplate, error)
	Count(queryOptions map[string]interface{}) (int64, error)
	BatchDeleteByCycleId(cycleId int64) error
}