evaluation_project.go 1.3 KB
package domain

import (
	"time"
)

type EvaluationProject struct {
	Id         int64               `json:"id,string" comment:"ID"`
	Name       string              `json:"name" comment:"名称"`
	Describe   string              `json:"describe" comment:"描述"`
	CompanyId  int64               `json:"companyId,string" comment:"公司ID"`
	CreatorId  int64               `json:"creatorId,string" comment:"创建人ID"`
	HrBp       int                 `json:"hrBp" comment:"HR角色权限"`
	Pms        []string            `json:"pms" comment:"项目管理员ID"`
	Recipients []string            `json:"recipients" comment:"被评估人ID"`
	Template   *EvaluationTemplate `json:"template" comment:"评估模板"`
	CreatedAt  time.Time           `json:"createdAt" comment:"创建时间"`
	UpdatedAt  time.Time           `json:"updatedAt" comment:"更新时间"`
	DeletedAt  *time.Time          `json:"deletedAt" comment:"删除时间"`
}

type EvaluationProjectRepository interface {
	Insert(project *EvaluationProject) (*EvaluationProject, error)
	Remove(project *EvaluationProject) (*EvaluationProject, error)
	FindOne(queryOptions map[string]interface{}) (*EvaluationProject, error)
	Find(queryOptions map[string]interface{}) (int64, []*EvaluationProject, error)
	Count(queryOptions map[string]interface{}) (int64, error)
}