Add Tag Module with CRUD operations

This commit is contained in:
faris Aljohari
2025-02-12 00:42:47 -06:00
parent 5129724a8a
commit 7546dbbf35
11 changed files with 211 additions and 1 deletions

View File

@ -318,6 +318,19 @@ export class ControllerRoute {
'Fetches a list of all products along with their associated device details';
};
};
static TAG = class {
public static readonly ROUTE = 'tags';
static ACTIONS = class {
public static readonly CREATE_TAG_SUMMARY = 'Create a new tag';
public static readonly CREATE_TAG_DESCRIPTION =
'Creates a new tag and assigns it to a specific project and product.';
public static readonly GET_TAGS_BY_PROJECT_SUMMARY =
'Get tags by project';
public static readonly GET_TAGS_BY_PROJECT_DESCRIPTION =
'Retrieves a list of tags associated with a specific project.';
};
};
static USER = class {
public static readonly ROUTE = '/user';

View File

@ -3,7 +3,7 @@ import { NewTagEntity } from '../entities';
import { DataSource, Repository } from 'typeorm';
@Injectable()
export class NewTagRepository extends Repository<NewTagRepository> {
export class NewTagRepository extends Repository<NewTagEntity> {
constructor(private dataSource: DataSource) {
super(NewTagEntity, dataSource.createEntityManager());
}