From d9bd2e5e5f40404690ed75ac3c5a956a916cfbcc Mon Sep 17 00:00:00 2001 From: JaeSeo Yang <96044622+psychology50@users.noreply.github.com> Date: Sun, 19 Nov 2023 18:48:08 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20swagger=20=EB=B0=98=EB=A0=A4=EB=8F=99?= =?UTF-8?q?=EB=AC=BC=20=EA=B4=80=EB=A6=AC=20Tag=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/kcy/fitapet/api/pet/PetManageApi.java | 2 ++ .../domain/pet/service/component/PetManageService.java | 8 +------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/kcy/fitapet/api/pet/PetManageApi.java b/src/main/java/com/kcy/fitapet/api/pet/PetManageApi.java index 694af8bb..42438820 100644 --- a/src/main/java/com/kcy/fitapet/api/pet/PetManageApi.java +++ b/src/main/java/com/kcy/fitapet/api/pet/PetManageApi.java @@ -13,6 +13,7 @@ import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.responses.ApiResponse; import io.swagger.v3.oas.annotations.responses.ApiResponses; +import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.validation.Valid; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -23,6 +24,7 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; +@Tag(name = "반려동물 관리 API") @RestController @RequestMapping("/api/v1/pets") @RequiredArgsConstructor diff --git a/src/main/java/com/kcy/fitapet/domain/pet/service/component/PetManageService.java b/src/main/java/com/kcy/fitapet/domain/pet/service/component/PetManageService.java index 54e11397..931c5ef9 100644 --- a/src/main/java/com/kcy/fitapet/domain/pet/service/component/PetManageService.java +++ b/src/main/java/com/kcy/fitapet/domain/pet/service/component/PetManageService.java @@ -1,22 +1,15 @@ package com.kcy.fitapet.domain.pet.service.component; -import com.kcy.fitapet.domain.care.domain.Care; -import com.kcy.fitapet.domain.care.domain.DayOfWeek; -import com.kcy.fitapet.domain.care.service.CareSaveService; -import com.kcy.fitapet.domain.care.type.CareType; import com.kcy.fitapet.domain.member.domain.Member; import com.kcy.fitapet.domain.member.service.module.MemberSaveService; import com.kcy.fitapet.domain.member.service.module.MemberSearchService; import com.kcy.fitapet.domain.member.type.ManageType; import com.kcy.fitapet.domain.pet.domain.Pet; -import com.kcy.fitapet.domain.pet.dto.PetRegisterReq; import com.kcy.fitapet.domain.pet.service.module.PetSaveService; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; -import java.util.List; - @Service @RequiredArgsConstructor public class PetManageService { @@ -32,4 +25,5 @@ public void savePet(Pet pet, Long memberId) { memberSaveService.mappingMemberAndPet(member, pet, ManageType.MASTER); } + }