issue #
- 팔로우 DTO 구현 중
This commit is contained in:
16
src/scheduler/http/dto/follow/list/list-response.dto.ts
Normal file
16
src/scheduler/http/dto/follow/list/list-response.dto.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { IsRequired } from "src/scheduler/decorator/required-decorator";
|
||||
import { IsString } from 'class-validator';
|
||||
import { getMessage } from "src/scheduler/type/class-validator/MessageType";
|
||||
import type { BaseResponseDTO } from "../../base/base-response.dto"
|
||||
|
||||
export class FollowList {
|
||||
@IsRequired()
|
||||
@IsString({ message: getMessage('TYPE') })
|
||||
id!: string;
|
||||
|
||||
@IsRequired()
|
||||
@IsString({ message: getMessage('TYPE') })
|
||||
name!: string;
|
||||
}
|
||||
|
||||
export type FollowListResponse = BaseResponseDTO<FollowList[]>;
|
||||
Reference in New Issue
Block a user