Skip to content

Commit

Permalink
fix: #46 Dto 에러수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ChoiYongWon committed Dec 9, 2022
1 parent be6c1b9 commit 0d438cd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/admin/admin.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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()
Expand Down
16 changes: 16 additions & 0 deletions src/admin/dto/RequestUpdateUser.dto.ts
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 0d438cd

Please sign in to comment.