diff --git a/layer-api/src/main/java/org/layer/domain/form/controller/dto/response/CustomTemplateResponse.java b/layer-api/src/main/java/org/layer/domain/form/controller/dto/response/CustomTemplateResponse.java index be2064b0..0ffa28ad 100644 --- a/layer-api/src/main/java/org/layer/domain/form/controller/dto/response/CustomTemplateResponse.java +++ b/layer-api/src/main/java/org/layer/domain/form/controller/dto/response/CustomTemplateResponse.java @@ -9,6 +9,9 @@ @Builder @Schema(name = "DefaultFormGetResponse", description = "커스텀 템플릿 조회 간단 정보 응답 Dto") public record CustomTemplateResponse( + @NotNull + @Schema(description = "회고폼 ID", example = "1") + Long id, @NotNull @Schema(description = "회고폼 이름", example = "Mad Sad Glad 커스텀 템플릿") String title, diff --git a/layer-api/src/main/java/org/layer/domain/form/service/FormService.java b/layer-api/src/main/java/org/layer/domain/form/service/FormService.java index 47cb5e6e..d1ccccd2 100644 --- a/layer-api/src/main/java/org/layer/domain/form/service/FormService.java +++ b/layer-api/src/main/java/org/layer/domain/form/service/FormService.java @@ -1,19 +1,9 @@ package org.layer.domain.form.service; -import static org.layer.common.exception.FormExceptionType.*; -import static org.layer.domain.form.entity.FormType.*; - -import java.util.List; -import java.util.Optional; -import java.util.Random; - +import lombok.RequiredArgsConstructor; import org.layer.domain.form.controller.dto.request.FormNameUpdateRequest; import org.layer.domain.form.controller.dto.request.RecommendFormQueryDto; -import org.layer.domain.form.controller.dto.response.CustomTemplateListResponse; -import org.layer.domain.form.controller.dto.response.CustomTemplateResponse; -import org.layer.domain.form.controller.dto.response.FormGetResponse; -import org.layer.domain.form.controller.dto.response.QuestionGetResponse; -import org.layer.domain.form.controller.dto.response.RecommendFormResponseDto; +import org.layer.domain.form.controller.dto.response.*; import org.layer.domain.form.entity.Form; import org.layer.domain.form.exception.FormException; import org.layer.domain.form.repository.FormRepository; @@ -31,7 +21,12 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; -import lombok.RequiredArgsConstructor; +import java.util.List; +import java.util.Optional; +import java.util.Random; + +import static org.layer.common.exception.FormExceptionType.UNAUTHORIZED_GET_FORM; +import static org.layer.domain.form.entity.FormType.CUSTOM; @Service @RequiredArgsConstructor @@ -111,7 +106,7 @@ public CustomTemplateListResponse getCustomTemplateList(Pageable pageable, Long Page