mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 02:36:19 +00:00
Add Tag Module with CRUD operations
This commit is contained in:
@ -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';
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user