import { GenericCrudService } from '@d8d/shared-crud';
import { DataSource } from 'typeorm';
import { GoodsCategory } from '../entities/goods-category.entity.js';

export class GoodsCategoryService extends GenericCrudService<GoodsCategory> {
  constructor(dataSource: DataSource) {
    super(dataSource, GoodsCategory, {
      userTracking: {
        createdByField: 'createdBy',
        updatedByField: 'updatedBy'
      }
    });
  }
}