mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 10:46:17 +00:00
update space-model service
This commit is contained in:
@ -3,7 +3,7 @@ import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
|||||||
|
|
||||||
export class CreateTagModelDto {
|
export class CreateTagModelDto {
|
||||||
@ApiProperty({
|
@ApiProperty({
|
||||||
description: 'Tag models associated with the space or subspace models',
|
description: 'Tag associated with the space or subspace models',
|
||||||
example: 'Temperature Control',
|
example: 'Temperature Control',
|
||||||
})
|
})
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
|
@ -14,12 +14,14 @@ import {
|
|||||||
import { ProductService } from 'src/product/services';
|
import { ProductService } from 'src/product/services';
|
||||||
import { ModifyAction } from '@app/common/constants/modify-action.enum';
|
import { ModifyAction } from '@app/common/constants/modify-action.enum';
|
||||||
import { ModifiedTagsModelPayload } from '../interfaces';
|
import { ModifiedTagsModelPayload } from '../interfaces';
|
||||||
|
import { NewTagRepository } from '@app/common/modules/tag/repositories/tag-repository';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class TagModelService {
|
export class TagModelService {
|
||||||
constructor(
|
constructor(
|
||||||
private readonly tagModelRepository: TagModelRepository,
|
private readonly tagModelRepository: TagModelRepository,
|
||||||
private readonly productService: ProductService,
|
private readonly productService: ProductService,
|
||||||
|
private readonly tagRepository: NewTagRepository,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
async createTags(
|
async createTags(
|
||||||
|
Reference in New Issue
Block a user