From 5cc09f265d9f40bf94efea7482414edef9c77022 Mon Sep 17 00:00:00 2001 From: MinchoGreenT Date: Fri, 26 Jul 2024 18:11:22 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20=ED=8C=9C=ED=81=B4=EB=9F=BD=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=20=EA=B0=80=EB=8A=A5=20=EC=97=AC=EB=B6=80=20?= =?UTF-8?q?api=20res=20dto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/res/CreateFarmClubCheckResponseDto.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/main/java/com/modernfarmer/farmusspring/domain/farmclub/dto/res/CreateFarmClubCheckResponseDto.java diff --git a/src/main/java/com/modernfarmer/farmusspring/domain/farmclub/dto/res/CreateFarmClubCheckResponseDto.java b/src/main/java/com/modernfarmer/farmusspring/domain/farmclub/dto/res/CreateFarmClubCheckResponseDto.java new file mode 100644 index 00000000..146aa1d6 --- /dev/null +++ b/src/main/java/com/modernfarmer/farmusspring/domain/farmclub/dto/res/CreateFarmClubCheckResponseDto.java @@ -0,0 +1,17 @@ +package com.modernfarmer.farmusspring.domain.farmclub.dto.res; + +import lombok.AccessLevel; +import lombok.Builder; + +@Builder(access = AccessLevel.PRIVATE) +public record CreateFarmClubCheckResponseDto( + Boolean isPossible, + Long reason +) { + public static CreateFarmClubCheckResponseDto of(Boolean isPossible, Long reason) { + return CreateFarmClubCheckResponseDto.builder() + .isPossible(isPossible) + .reason(reason) + .build(); + } +}