feat: crud service

This commit is contained in:
2025-01-03 13:00:51 +07:00
parent ac5b1c1b7a
commit 0c9f60bba5
10 changed files with 176 additions and 13 deletions

View File

@@ -0,0 +1,31 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import {Create as $Create} from "@wailsio/runtime";
export class Post {
"Id": number;
"Text": string;
/** Creates a new Post instance. */
constructor($$source: Partial<Post> = {}) {
if (!("Id" in $$source)) {
this["Id"] = 0;
}
if (!("Text" in $$source)) {
this["Text"] = "";
}
Object.assign(this, $$source);
}
/**
* Creates a new Post instance from a string or object.
*/
static createFrom($$source: any = {}): Post {
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
return new Post($$parsedSource as Partial<Post>);
}
}