add backend dir

This commit is contained in:
2026-07-23 17:31:42 +08:00
parent bc269f91eb
commit 4d1ca8ffaf
10 changed files with 79 additions and 88 deletions
+21 -21
View File
@@ -1,3 +1,24 @@
export namespace backend {
export class Response {
code: number;
message: string;
data?: any;
static createFrom(source: any = {}) {
return new Response(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.code = source["code"];
this.message = source["message"];
this.data = source["data"];
}
}
}
export namespace clause {
export class Clause {
@@ -327,27 +348,6 @@ export namespace gorm {
}
export namespace main {
export class Response {
code: number;
message: string;
data?: any;
static createFrom(source: any = {}) {
return new Response(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.code = source["code"];
this.message = source["message"];
this.data = source["data"];
}
}
}
export namespace reflect {