Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
115 lines
1.5 KiB
TypeScript
115 lines
1.5 KiB
TypeScript
import type { PageQuery, BaseEntity } from '#/api/common';
|
|
|
|
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日期选择)
|
|
*/
|
|
type?: string;
|
|
|
|
/**
|
|
* 是否必填(1不必填2必填)
|
|
*/
|
|
isRequired?: string;
|
|
|
|
/**
|
|
* 描述
|
|
*/
|
|
depict?: string;
|
|
|
|
/**
|
|
* 排序
|
|
*/
|
|
sort?: number;
|
|
|
|
}
|
|
|
|
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;
|
|
}
|