staff_assess_content.go 911 字节
package models

import "time"

//填写的评估内容
type StaffAssessContent struct {
	tableName     struct{}  `pg:"staff_assess_content" comment:"填写的评估项"`
	Id            int       `pg:",pk"` //id
	StaffAssessId int       //用户需要的评估项id
	SortBy        int       //排序
	Category      string    //类别
	Title         string    //问题标题
	Remark        string    //填写的反馈
	Rate          string    //评估填写的值
	ReteResult    string    //评估的结果
	CreatedAt     time.Time //数据创建时间
	UpdatedAt     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)
}