refactor(goods): streamline goods service and controller, remove favorites module
- Removed the PosGoodFavorite module, controller, and service to simplify the codebase. - Updated goods service to handle cache invalidation directly. - Refactored goods controller to remove commented-out code and improve clarity. - Introduced OwnedGoods module for better organization of owned goods functionality. - Updated DTOs to extend from existing structures for consistency. - Enhanced cache invalidation logic in goods service and owned goods service.
This commit is contained in:
+5
-3
@@ -8,8 +8,8 @@
|
||||
"@nestjs/jwt": "^11.0.2",
|
||||
"@nestjs/platform-express": "^11.1.19",
|
||||
"@nestjs/swagger": "^11.3.2",
|
||||
"@prisma/client": "^7.7.0",
|
||||
"@prisma/adapter-mariadb": "^7.7.0",
|
||||
"@prisma/client": "^7.7.0",
|
||||
"@types/bcrypt": "^6.0.0",
|
||||
"@types/multer": "^2.1.0",
|
||||
"bcrypt": "^6.0.0",
|
||||
@@ -18,13 +18,13 @@
|
||||
"cookie-parser": "^1.4.7",
|
||||
"dayjs": "^1.11.20",
|
||||
"dotenv": "^17.4.2",
|
||||
"ioredis": "^5.8.2",
|
||||
"jalaliday": "^3.1.1",
|
||||
"jsonwebtoken": "^9.0.3",
|
||||
"multer": "^2.1.1",
|
||||
"mysql2": "^3.22.2",
|
||||
"prisma": "^7.7.0",
|
||||
"reflect-metadata": "^0.2.2",
|
||||
"ioredis": "^5.8.2",
|
||||
"rxjs": "^7.8.2",
|
||||
"uuid": "^13.0.0"
|
||||
},
|
||||
@@ -45,6 +45,7 @@
|
||||
"eslint-plugin-prettier": "^5.5.5",
|
||||
"globals": "^16.5.0",
|
||||
"jest": "^30.3.0",
|
||||
"plop": "^4.0.5",
|
||||
"prettier": "^3.8.3",
|
||||
"prettier-plugin-prisma": "^5.0.0",
|
||||
"source-map-support": "^0.5.21",
|
||||
@@ -82,9 +83,10 @@
|
||||
"db:reset": "tsx scripts/dump-triggers.ts && npx prisma migrate reset --force",
|
||||
"dump-triggers": "tsx scripts/dump-triggers.ts",
|
||||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
||||
"generate": "plop",
|
||||
"generate:permissions": "tsx scripts/generate-permissions.ts",
|
||||
"seed:sku": "tsx scripts/seedStockKeepingUnits.ts",
|
||||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
||||
"seed:sku": "tsx scripts/seedStockKeepingUnits.ts",
|
||||
"start": "nest start",
|
||||
"start:debug": "nest start --debug --watch",
|
||||
"start:dev": "nest start --watch",
|
||||
|
||||
Reference in New Issue
Block a user