import { Injectable } from '@nestjs/common' ; import { CategoryEntity } from '../entities/category.entity' ; import { CreateCategoryDto } from '../form/create_category.dto' ; import { UpdateCategoryDto } from '../form/update_category.dto' ; @ Injectable ( ) export class CategoryService { constructor ( ) { } createCategory ( createCategoryDto , userId ) { return CategoryEntity . createCategory ( createCategoryDto , userId ) ; } updateCategory ( updateCategoryDto , userId ) { return CategoryEntity . updateCategory ( updateCategoryDto , userId ) ; } daleteCategory ( tagId , userId ) { return CategoryEntity . deleteCategory ( tagId , userId ) ; } getList ( page , size , userId ) { return CategoryEntity . getList ( page , size , userId ) ; } }