This commit is contained in:
Louis 2024-08-26 18:12:52 +08:00
parent 2eebead81c
commit 081f5e002d
6 changed files with 8547 additions and 6719 deletions

View File

@ -2,7 +2,7 @@
"name": "huaxin-admin",
"version": "2.0.0",
"private": true,
"packageManager": "pnpm@8.10.2",
"packageManager": "pnpm@9.1.4",
"license": "MIT",
"engines": {
"node": ">=18",

File diff suppressed because it is too large Load Diff

View File

@ -32,6 +32,7 @@ import { ProjectModule } from './modules/project/project.module';
import {VehicleUsageModule} from './modules/vehicle_usage/vehicle_usage.module';
import {SaleQuotationModule} from './modules/sale_quotation/sale_quotation.module';
import {DomainModule} from './modules/domian/domain.module';
import {BabyRecordModule} from "~/modules/baby_record/baby_record.module";
@Module({
imports: [
@ -80,7 +81,9 @@ import { DomainModule } from './modules/domian/domain.module';
//报价管理
SaleQuotationModule,
//域
DomainModule
DomainModule,
// 宝宝管理
BabyRecordModule
],
providers: [
{provide: APP_FILTER, useClass: AllExceptionsFilter},
@ -95,4 +98,5 @@ import { DomainModule } from './modules/domian/domain.module';
],
controllers: []
})
export class AppModule {}
export class AppModule {
}

View File

@ -46,3 +46,8 @@ export enum ResourceDeviceEnum {
APP = 0,
PC = 1
}
// 宝宝动作
export enum BabyActionEnum {
Pee, Shit, Breast, Bottle
}

View File

@ -0,0 +1,22 @@
import {Module} from '@nestjs/common';
import {TypeOrmModule} from '@nestjs/typeorm';
import {StorageModule} from '../tools/storage/storage.module';
import {ParamConfigModule} from '../system/param-config/param-config.module';
import {ProjectModule} from '../project/project.module';
import {ProjectEntity} from '../project/project.entity';
import {BabyRecordEntity} from "~/modules/baby_record/baby_record.entity";
import {BabyRecordService} from "~/modules/baby_record/baby_record.service";
import {BabyRecordController} from "~/modules/baby_record/baby_record.controller";
@Module({
imports: [
TypeOrmModule.forFeature([BabyRecordEntity,]),
ParamConfigModule,
StorageModule,
ProjectModule
],
controllers: [BabyRecordController],
providers: [BabyRecordService]
})
export class BabyRecordModule {
}

View File

@ -10,10 +10,11 @@ import { MaterialsInOutEntity } from './in_out/materials_in_out.entity';
import { ParamConfigModule } from '../system/param-config/param-config.module';
import { ProjectModule } from '../project/project.module';
import { ProjectEntity } from '../project/project.entity';
import {BabyRecordEntity} from "~/modules/baby_record/baby_record.entity";
@Module({
imports: [
TypeOrmModule.forFeature([MaterialsInventoryEntity, MaterialsInOutEntity,ProjectEntity]),
TypeOrmModule.forFeature([MaterialsInventoryEntity, MaterialsInOutEntity,ProjectEntity,BabyRecordEntity]),
ParamConfigModule,
StorageModule,
ProjectModule