1
0

feat: 搭建前后端可执行程序示例

This commit is contained in:
2026-05-09 12:25:39 +08:00
commit 5b412c624d
27 changed files with 1860 additions and 0 deletions

23
src/shared/api.ts Normal file
View File

@@ -0,0 +1,23 @@
export type RuntimeMode = "development" | "production" | "test";
export interface DemoResponse {
message: string;
runtime: {
mode: RuntimeMode;
bunVersion: string;
platform: string;
arch: string;
timestamp: string;
};
}
export interface HealthResponse {
ok: true;
service: "gateway-checker";
timestamp: string;
}
export interface ApiErrorResponse {
error: string;
status: number;
}