package domain import ( "time" ) type NodeTimerTask 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"` LastSentAt *time.Time `json:"lastSentAt" 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 NodeTimerTaskRepository interface { Insert(template *NodeTimerTask) (*NodeTimerTask, error) Remove(template *NodeTimerTask) (*NodeTimerTask, error) FindOne(queryOptions map[string]interface{}) (*NodeTimerTask, error) Find(queryOptions map[string]interface{}, excludeColumns ...string) (int64, []*NodeTimerTask, error) Count(queryOptions map[string]interface{}) (int64, error) }