This commit is contained in:
mahyargdz
2025-09-14 15:15:03 +03:30
commit be82059172
534 changed files with 51310 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { IShop } from "./models/Abstraction/IShop";
import { ShopModel } from "./models/shop.model";
import { BaseRepository } from "../../common/base/repository";
export class ShopRepo extends BaseRepository<IShop> {
constructor() {
super(ShopModel);
}
async findWithShopcode(shopCode: number) {
return this.model.findOne({ shopCode }, { _id: 1, shopName: 1, shopCode: 1, shopDescription: 1, logo: 1 });
}
}
export function createShopRepo(): ShopRepo {
return new ShopRepo();
}