package domain import "time" //填写的评估内容 type StaffAssessContent struct { Id int `json:"id"` //id StaffAssessId int `json:"staffAssessId"` //用户需要的评估项id SortBy int `json:"sortBy"` //排序 Category string `json:"category"` //类别 Name string `json:"name"` //名称 PromptTitle string `json:"promptTitle"` //提示项标题 PromptText string `json:"promptText"` //提示项正文 Remark []AssessContemtRemark `json:"remark"` //填写的反馈 Value string `json:"value"` //评估填写的值 ReteResult string `json:"reteResult"` //评估的结果 Rule EvaluationRule `json:"rule"` //评估的选项规则 CreatedAt time.Time `json:"createdAt"` //数据创建时间 UpdatedAt time.Time `json:"updatedAt"` //数据更新时间 DeletedAt *time.Time `json:"deletedAt"` } type AssessContemtRemark struct { Title string `json:"title"` //comment:"填写标题" HintText string `json:"hintText"` // comment:"文本内容提示" RemarkText string `json:"remarkText"` // comment:"填写文本内容" } 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) }