import { Controller } from '@nestjs/common'; import { Crud } from "@dataui/crud"; import { UserTypeCrudService } from './user-type-crud.service'; import { ApiTags } from '@nestjs/swagger'; import { PUserType } from 'kkk-lib/auth/entity/p-user-type.entity'; import { ManagerOnly } from 'kkk-lib/auth/manager-only.decorator'; @ApiTags('Usertypes-CRUD') @ManagerOnly() @Crud({ model: { type: PUserType, }, }) @Controller('api/p/crud/usertypes') export class UserTypeCrudController { constructor(public service: UserTypeCrudService) {} }