From 0d438cd8ff0e23dcf0bff90a09a4c520c6b72818 Mon Sep 17 00:00:00 2001 From: ChoiYongWon Date: Fri, 9 Dec 2022 21:49:24 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20#46=20Dto=20=EC=97=90=EB=9F=AC=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/admin.controller.ts | 2 +- src/admin/dto/RequestUpdateUser.dto.ts | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/admin/admin.controller.ts b/src/admin/admin.controller.ts index c83819e..69a0107 100644 --- a/src/admin/admin.controller.ts +++ b/src/admin/admin.controller.ts @@ -25,7 +25,6 @@ import { User } from 'src/user/user.entity'; import { UserService } from 'src/user/user.service'; import { AdminService } from './admin.service'; import { RequestCreateUserDto } from '../user/dto/RequestCreateUser.dto'; -import { RequestUpdateUserDto } from 'src/user/dto/RequestUpdateUser.dto'; import { ResponseReadUserDto } from './dto/ResponseReadUser.dto'; import { ResponseGetUserATDto } from './dto/ResponseGetUserAT.dto'; import { FriendsService } from 'src/friends/friends.service'; @@ -40,6 +39,7 @@ import { ResponseGetAllPostDto } from './dto/ResponseGetAllPost.dto'; import { ReportService } from 'src/report/report.service'; import { ResponseGetAllReportDto } from './dto/ResponseGetAllReport.dto'; import { RequestDeleteReportDto } from 'src/report/dto/RequestDeleteReport.dto'; +import { RequestUpdateUserDto } from './dto/RequestUpdateUser.dto'; @ApiTags('admin') @ApiBearerAuth() diff --git a/src/admin/dto/RequestUpdateUser.dto.ts b/src/admin/dto/RequestUpdateUser.dto.ts index e69de29..28db2b6 100644 --- a/src/admin/dto/RequestUpdateUser.dto.ts +++ b/src/admin/dto/RequestUpdateUser.dto.ts @@ -0,0 +1,16 @@ +import { IsEmail, IsString } from 'class-validator'; +import { ApiProperty } from '@nestjs/swagger'; + +export class RequestUpdateUserDto { + @ApiProperty() + @IsString() + user_id: string; + + @ApiProperty() + @IsString() + name: string; + + @ApiProperty() + @IsString() + message: string; +}