Skip to content

Commit

Permalink
docs: swagger 반려동물 관리 Tag 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
psychology50 committed Nov 19, 2023
1 parent 026bdd5 commit d9bd2e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/kcy/fitapet/api/pet/PetManageApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -32,4 +25,5 @@ public void savePet(Pet pet, Long memberId) {
memberSaveService.mappingMemberAndPet(member, pet, ManageType.MASTER);
}


}

0 comments on commit d9bd2e5

Please sign in to comment.