package domain import ( "time" ) type NodeTask struct { Id int64 `json:"id,string" comment:"ID"` CompanyId int64 `json:"companyId,string" comment:"公司ID"` CycleId int64 `json:"cycleId,string" comment:"周期ID"` ProjectId int64 `json:"projectId,string" comment:"项目ID"` NodeId int64 `json:"nodeId,string" comment:"节点ID"` KpiCycle int `json:"kpiCycle" comment:"周期"` BeginAt *time.Time `json:"beginAt" comment:"起始时间"` EndAt *time.Time `json:"endAt" comment:"截至时间"` NextSentAt *time.Time `json:"nextSentAt" comment:"下一次发送时间"` CreatedAt time.Time `json:"createdAt" comment:"创建时间"` UpdatedAt time.Time `json:"updatedAt" comment:"更新时间"` DeletedAt *time.Time `json:"deletedAt" comment:"删除时间"` } type NodeTaskRepository interface { Insert(task *NodeTask) (*NodeTask, error) Remove(task *NodeTask) (*NodeTask, error) FindOne(queryOptions map[string]interface{}) (*NodeTask, error) Find(queryOptions map[string]interface{}) ([]*NodeTask, error) }