2025-08-14 15:12:40 +08:00
|
|
|
import type { PageQuery, BaseEntity } from '#/api/common';
|
2025-08-15 15:58:57 +08:00
|
|
|
import type {
|
|
|
|
QuestionItemForm
|
|
|
|
} 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;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
/**
|
|
|
|
* 选项
|
|
|
|
*/
|
|
|
|
questionnaireQuestionItems:QuestionItemForm[]
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 评分预览
|
|
|
|
*/
|
|
|
|
rate?:number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 时间预览
|
|
|
|
*/
|
|
|
|
dateTime?:string;
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 日期范围参数
|
|
|
|
*/
|
|
|
|
params?: any;
|
|
|
|
}
|