审查视图

pkg/domain/node_task.go 1.1 KB
郑周 authored
1 2 3 4 5 6
package domain

import (
	"time"
)
郑周 authored
7
type NodeTask struct {
郑周 authored
8 9 10 11 12
	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"`
郑周 authored
13 14 15
	KpiCycle   int        `json:"kpiCycle" comment:"周期"`
	BeginAt    *time.Time `json:"beginAt" comment:"起始时间"`
	EndAt      *time.Time `json:"endAt" comment:"截至时间"`
郑周 authored
16 17 18 19 20 21
	NextSentAt *time.Time `json:"nextSentAt" comment:"下一次发送时间"`
	CreatedAt  time.Time  `json:"createdAt" comment:"创建时间"`
	UpdatedAt  time.Time  `json:"updatedAt" comment:"更新时间"`
	DeletedAt  *time.Time `json:"deletedAt" comment:"删除时间"`
}
郑周 authored
22 23 24 25 26
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)
郑周 authored
27
}