localhost_oa_based/src/modules/common/base.service.ts

12 lines
267 B
TypeScript

import { Injectable } from '@nestjs/common';
@Injectable()
export class BaseService {
generateInventoryNumber(): string {
// Generate a random inventory number
return Math.floor(Math.random() * 1000000).toString();
}
// Add more common methods here
}