feat: 创建数据库

This commit is contained in:
R524809
2026-10-12 16:56:42 +08:00
parent 3c6fd2c8ca
commit 63a6993276
35 changed files with 826 additions and 266 deletions
+21 -21
View File
@@ -1,24 +1,24 @@
{
"name": "@doodle/contracts",
"version": "0.1.0",
"private": true,
"type": "commonjs",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"name": "@doodle/contracts",
"version": "0.1.0",
"private": true,
"type": "commonjs",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsc -p tsconfig.json",
"typecheck": "tsc --noEmit -p tsconfig.json"
},
"devDependencies": {
"typescript": "5.9.3"
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsc -p tsconfig.json",
"typecheck": "tsc --noEmit -p tsconfig.json"
},
"devDependencies": {
"typescript": "5.9.3"
}
}
+5 -5
View File
@@ -1,12 +1,12 @@
/** 可公开的成功响应类型;不定义服务端内部错误或数据库实体。 */
export interface ApiSuccess<T> {
code: 0;
message: string;
data: T;
code: 0;
message: string;
data: T;
}
/** 只描述 HTTP 进程存活,不代表外部服务已接入或健康。 */
export interface HealthStatus {
status: 'ok';
service: 'doodle-store-server';
status: 'ok';
service: 'doodle-store-server';
}
+12 -12
View File
@@ -1,14 +1,14 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "Node16",
"moduleResolution": "Node16",
"lib": ["ES2022"],
"types": [],
"declaration": true,
"rootDir": "src",
"outDir": "dist"
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "dist"]
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "Node16",
"moduleResolution": "Node16",
"lib": ["ES2022"],
"types": [],
"declaration": true,
"rootDir": "src",
"outDir": "dist"
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "dist"]
}