审查视图

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

import (
	"time"
)
郑周 authored
7
type NodeTask struct {
郑周 authored
8 9 10 11 12 13 14 15
	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"`
	NodeType     int        `json:"nodeType" comment:"环节类型"`
	NodeName     string     `json:"nodeName" comment:"环节名称"`
	NodeDescribe string     `json:"nodeDescribe" comment:"环节描述"`
郑周 authored
16
	NodeSort     int        `json:"nodeSort" comment:"环节顺序"`
郑周 authored
17 18 19 20 21 22 23
	TimeStart    *time.Time `json:"timeStart" comment:"起始时间"`
	TimeEnd      *time.Time `json:"timeEnd" comment:"截至时间"`
	KpiCycle     int        `json:"kpiCycle" comment:"考核周期(1日、2周、3月)"`
	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
24 25
}
郑周 authored
26 27 28 29 30
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
31
}