staff_assess_content.go 1.1 KB
package models

import (
	"time"

	"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
)

// 填写的评估内容
type StaffAssessContent struct {
	tableName     struct{} `pg:"staff_assess_content" comment:"填写的评估项"`
	Id            int      `pg:",pk"` //id
	StaffAssessId int      //用户需要的评估项id
	SortBy        int      //排序
	Category      string   //类别
	Name          string   //名称
	PromptTitle   string   //问题标题
	PromptText    string   //提示项正文
	Value         string   //评估填写的值
	ReteResult    string   //评估的结果
	Rule          domain.EvaluationRule
	Remark        []domain.AssessContemtRemark
	CreatedAt     time.Time //数据创建时间
	UpdatedAt     time.Time //数据更新时间
	DeletedAt     *time.Time
}

type StaffAssessContentRepository interface {
	Save(param *StaffAssessContent) (*StaffAssessContent, error)
	Remove(id int) error
	FindOne(queryOptions map[string]interface{}) (*StaffAssessContent, error)
	Find(queryOptions map[string]interface{}) (int, []*StaffAssessContent, error)
}