Add Nuxt
This commit is contained in:
55
app/dto/formular.dto.ts
Normal file
55
app/dto/formular.dto.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
export class Formular {
|
||||
public id: number;
|
||||
public name: string;
|
||||
public minitext: string;
|
||||
public ispublic: boolean;
|
||||
public multiple: boolean;
|
||||
public fields: MyField[];
|
||||
public results: FormularResults[];
|
||||
}
|
||||
|
||||
export enum FieldType {
|
||||
TEXT = "text",
|
||||
PASSWORD = "password",
|
||||
NUMBER = "number",
|
||||
RANGE = "range",
|
||||
DATE = "date",
|
||||
TIME = "time",
|
||||
CHECKBOX = "checkbox",
|
||||
RADIO = "radio",
|
||||
COLOR = "color",
|
||||
SUBMIT = "submit",
|
||||
TEXTAREA = "textarea"
|
||||
}
|
||||
|
||||
export class MyField {
|
||||
id?: number;
|
||||
formular: number;
|
||||
name: string;
|
||||
displayname?: string | null;
|
||||
value: string;
|
||||
displayvalue?: string | null;
|
||||
placeholder?: string | null;
|
||||
type: FieldType;
|
||||
title?: string | null;
|
||||
required: boolean;
|
||||
maxlength?: number | null;
|
||||
min?: number | null;
|
||||
max?: number | null;
|
||||
checked?: boolean | null;
|
||||
}
|
||||
|
||||
export class FormularResult {
|
||||
id: number;
|
||||
parentid: number;
|
||||
parentobj: FormularResults;
|
||||
name: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export class FormularResults {
|
||||
id:number;
|
||||
formular: Formular;
|
||||
formularid: number;
|
||||
results: FormularResult[];
|
||||
}
|
||||
Reference in New Issue
Block a user