2025-08-18 17:22:09 +08:00
|
|
|
import type {PageQuery, BaseEntity} from '#/api/common';
|
2025-08-15 15:58:57 +08:00
|
|
|
import type {
|
2025-08-18 17:22:09 +08:00
|
|
|
QuestionItemForm, QuestionItemVO
|
2025-08-15 15:58:57 +08:00
|
|
|
} from "#/api/property/customerService/questionnaire/questionItem/model";
|
2025-08-14 15:12:40 +08:00
|
|
|
|
|
|
|
export interface QuestionVO {
|
|
|
|
/**
|
|
|
|
* id
|
|
|
|
*/
|
|
|
|
id: string | number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 调查问卷id
|
|
|
|
*/
|
|
|
|
questionnaireId: string | number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 标题
|
|
|
|
*/
|
|
|
|
head: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 问题类型(1单行文本2多行文本3单选题4多选题5评分题6日期选择)
|
|
|
|
*/
|
|
|
|
type: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 是否必填(1不必填2必填)
|
|
|
|
*/
|
|
|
|
isRequired: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 描述
|
|
|
|
*/
|
|
|
|
depict: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 排序
|
|
|
|
*/
|
|
|
|
sort: number;
|
|
|
|
|
2025-08-18 17:22:09 +08:00
|
|
|
/**
|
|
|
|
* 问题选项
|
|
|
|
*/
|
|
|
|
questionnaireQuestionItemVos: QuestionItemVO[];
|
|
|
|
|
|
|
|
options: string[];
|
|
|
|
|
|
|
|
answer: string;
|
|
|
|
|
|
|
|
rate:number;
|
|
|
|
|
|
|
|
checked:string[];
|
|
|
|
|
2025-08-14 15:12:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface QuestionForm extends BaseEntity {
|
|
|
|
/**
|
|
|
|
* id
|
|
|
|
*/
|
|
|
|
id?: string | number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 调查问卷id
|
|
|
|
*/
|
|
|
|
questionnaireId?: string | number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 标题
|
|
|
|
*/
|
|
|
|
head?: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 问题类型(1单行文本2多行文本3单选题4多选题5评分题6日期选择)
|
|
|
|
*/
|
2025-08-15 15:58:57 +08:00
|
|
|
type: string;
|
2025-08-14 15:12:40 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 是否必填(1不必填2必填)
|
|
|
|
*/
|
|
|
|
isRequired?: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 描述
|
|
|
|
*/
|
|
|
|
depict?: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 排序
|
|
|
|
*/
|
|
|
|
sort?: number;
|
|
|
|
|
2025-08-15 15:58:57 +08:00
|
|
|
/**
|
|
|
|
* 选项
|
|
|
|
*/
|
2025-08-18 17:22:09 +08:00
|
|
|
questionnaireQuestionItems: QuestionItemForm[]
|
2025-08-15 15:58:57 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 评分预览
|
|
|
|
*/
|
2025-08-18 17:22:09 +08:00
|
|
|
rate?: number;
|
2025-08-15 15:58:57 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 时间预览
|
|
|
|
*/
|
2025-08-18 17:22:09 +08:00
|
|
|
dateTime?: string;
|
2025-08-15 15:58:57 +08:00
|
|
|
|
2025-08-14 15:12:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface QuestionQuery extends PageQuery {
|
|
|
|
/**
|
|
|
|
* 调查问卷id
|
|
|
|
*/
|
|
|
|
questionnaireId?: string | number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 标题
|
|
|
|
*/
|
|
|
|
head?: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 问题类型(1单行文本2多行文本3单选题4多选题5评分题6日期选择)
|
|
|
|
*/
|
|
|
|
type?: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 是否必填(1不必填2必填)
|
|
|
|
*/
|
|
|
|
isRequired?: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 描述
|
|
|
|
*/
|
|
|
|
depict?: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 排序
|
|
|
|
*/
|
|
|
|
sort?: number;
|
|
|
|
|
|
|
|
/**
|
2025-08-18 17:22:09 +08:00
|
|
|
* 日期范围参数
|
|
|
|
*/
|
2025-08-14 15:12:40 +08:00
|
|
|
params?: any;
|
|
|
|
}
|