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(); + } +}