2024-01-30 14:19:45 +00:00
|
|
|
// 问卷配置内容定义
|
|
|
|
|
2023-12-27 11:29:20 +00:00
|
|
|
export interface TitleConfig {
|
|
|
|
mainTitle: string;
|
|
|
|
subTitle: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BannerConfig {
|
|
|
|
bgImage: string;
|
|
|
|
videoLink: string;
|
|
|
|
postImg: string;
|
|
|
|
}
|
|
|
|
|
2024-01-30 14:19:45 +00:00
|
|
|
// 问卷头部内容:标题和头图
|
2023-12-27 11:29:20 +00:00
|
|
|
export interface BannerConf {
|
|
|
|
titleConfig: TitleConfig;
|
|
|
|
bannerConfig: BannerConfig;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface NPS {
|
|
|
|
leftText: string;
|
|
|
|
rightText: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface TextRange {
|
|
|
|
min: {
|
|
|
|
placeholder: string;
|
|
|
|
value: number;
|
|
|
|
};
|
|
|
|
max: {
|
|
|
|
placeholder: string;
|
|
|
|
value: number;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface DataItem {
|
|
|
|
isRequired: boolean;
|
|
|
|
showIndex: boolean;
|
|
|
|
showType: boolean;
|
|
|
|
showSpliter: boolean;
|
|
|
|
type: string;
|
|
|
|
valid: string;
|
|
|
|
field: string;
|
|
|
|
title: string;
|
|
|
|
placeholder: string;
|
|
|
|
randomSort: boolean;
|
|
|
|
checked: boolean;
|
|
|
|
minNum: string;
|
|
|
|
maxNum: string;
|
|
|
|
star: number;
|
|
|
|
nps: NPS;
|
|
|
|
placeholderDesc: string;
|
|
|
|
addressType: number;
|
|
|
|
isAuto: boolean;
|
|
|
|
urlKey: string;
|
|
|
|
textRange: TextRange;
|
|
|
|
options?: Option[];
|
|
|
|
importKey?: string;
|
|
|
|
importData?: string;
|
|
|
|
cOption?: string;
|
|
|
|
cOptions?: string[];
|
|
|
|
exclude?: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Option {
|
|
|
|
text: string;
|
|
|
|
imageUrl: string;
|
|
|
|
others: boolean;
|
|
|
|
mustOthers: boolean;
|
|
|
|
othersKey: string;
|
|
|
|
placeholderDesc: string;
|
|
|
|
hash: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface DataConf {
|
|
|
|
dataList: DataItem[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ConfirmAgain {
|
|
|
|
is_again: boolean;
|
|
|
|
again_text: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface MsgContent {
|
|
|
|
msg_200: string;
|
|
|
|
msg_9001: string;
|
|
|
|
msg_9002: string;
|
|
|
|
msg_9003: string;
|
|
|
|
msg_9004: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface SubmitConf {
|
|
|
|
submitTitle: string;
|
|
|
|
confirmAgain: ConfirmAgain;
|
|
|
|
msgContent: MsgContent;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BaseConf {
|
|
|
|
begTime: string;
|
|
|
|
endTime: string;
|
2024-01-30 14:19:45 +00:00
|
|
|
answerBegTime: string;
|
|
|
|
answerEndTime: string;
|
|
|
|
tLimit: number;
|
2023-12-27 11:29:20 +00:00
|
|
|
language: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface SkinConf {
|
|
|
|
skinColor: string;
|
|
|
|
inputBgColor: string;
|
|
|
|
}
|
|
|
|
|
2024-01-30 14:19:45 +00:00
|
|
|
export interface SurveySchemaInterface {
|
2023-12-27 11:29:20 +00:00
|
|
|
bannerConf: BannerConf;
|
|
|
|
dataConf: DataConf;
|
|
|
|
submitConf: SubmitConf;
|
|
|
|
baseConf: BaseConf;
|
|
|
|
skinConf: SkinConf;
|
|
|
|
}
|