Fix tauri, add DTO Submodule

This commit is contained in:
2026-04-26 22:29:51 +02:00
parent ba7a1b0dc8
commit d388d7048a
8 changed files with 226 additions and 81 deletions

View File

@@ -1,3 +0,0 @@
# Ritzenbergen DTO
- Test

View File

@@ -1,23 +0,0 @@
export class MyEvent {
id: number;
eventname: string;
datum: Date;
type: EventType;
content: string;
minitext: string;
link: string|null;
foto: string;
formular: number|null;
}
export enum EventType {
html = "html",
markdown = "markdown",
fotos = "fotos",
link = "link",
dlink = "dlink"
}

View File

@@ -1,55 +0,0 @@
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[];
}

1
app/ritzenbergen-dto Submodule

Submodule app/ritzenbergen-dto added at 12938c8125