xiaoju-survey/server/src/interfaces/survey.ts

124 lines
2.1 KiB
TypeScript
Raw Normal View History

2024-01-30 14:19:45 +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
// 问卷头部内容:标题和头图
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;
2024-03-14 13:50:57 +00:00
valid?: string;
field: string;
title: string;
placeholder: string;
2024-03-14 13:50:57 +00:00
randomSort?: boolean;
checked: boolean;
minNum: string;
maxNum: string;
star: number;
2024-03-14 13:50:57 +00:00
nps?: NPS;
placeholderDesc: string;
2024-03-14 13:50:57 +00:00
textRange?: TextRange;
options?: Option[];
importKey?: string;
importData?: string;
cOption?: string;
cOptions?: string[];
exclude?: boolean;
2024-03-14 13:50:57 +00:00
rangeConfig?: any;
starStyle?: string;
innerType?: string;
}
export interface Option {
text: string;
others: boolean;
2024-03-14 13:50:57 +00:00
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;
language: string;
}
export interface SkinConf {
skinColor: string;
inputBgColor: string;
}
2024-03-14 13:50:57 +00:00
export interface BottomConf {
logoImage: string;
logoImageWidth: string;
}
2024-01-30 14:19:45 +00:00
export interface SurveySchemaInterface {
bannerConf: BannerConf;
dataConf: DataConf;
submitConf: SubmitConf;
baseConf: BaseConf;
skinConf: SkinConf;
2024-03-14 13:50:57 +00:00
bottomConf: BottomConf;
}