-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from KCY-Fit-a-Pet/feat/30
✨ DtoMapper v1.0
- Loading branch information
Showing
41 changed files
with
388 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: "Run TODO to Issue" | ||
on: | ||
push: | ||
workflow_dispatch: | ||
inputs: | ||
MANUAL_COMMIT_REF: | ||
description: "The SHA of the commit to get the diff for" | ||
required: true | ||
MANUAL_BASE_REF: | ||
description: "By default, the commit entered above is compared to the one directly before it; to go back further, enter an earlier SHA here" | ||
required: false | ||
jobs: | ||
build: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: "actions/checkout@v3" | ||
- name: "TODO to Issue" | ||
uses: "alstr/todo-to-issue-action@master" | ||
env: | ||
MANUAL_COMMIT_REF: ${{ inputs.MANUAL_COMMIT_REF }} | ||
MANUAL_BASE_REF: ${{ inputs.MANUAL_BASE_REF }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,6 @@ out/ | |
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
### test ### | ||
src/main/java/com/kcy/fitapet/test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
package com.kcy.fitapet; | ||
|
||
import jakarta.annotation.PostConstruct; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
import java.util.TimeZone; | ||
|
||
@SpringBootApplication | ||
public class FitapetApplication { | ||
public static void main(String[] args) { | ||
SpringApplication.run(FitapetApplication.class, args); | ||
} | ||
|
||
@PostConstruct | ||
public void init() { | ||
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/com/kcy/fitapet/domain/member/dto/auth/SignUpReq.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...main/member/domain/RoleTypeConverter.java → ...domain/member/type/RoleTypeConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.kcy.fitapet.domain.pet.api; | ||
|
||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
public class PetApi { | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/kcy/fitapet/domain/pet/dao/PetRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.kcy.fitapet.domain.pet.dao; | ||
|
||
import com.kcy.fitapet.domain.pet.domain.Pet; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface PetRepository extends JpaRepository<Pet, Long> { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/main/java/com/kcy/fitapet/domain/pet/dto/PetRegisterReq.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.kcy.fitapet.domain.pet.dto; | ||
|
||
import com.kcy.fitapet.domain.pet.type.GenderType; | ||
|
||
import java.time.LocalDate; | ||
|
||
public class PetRegisterReq { | ||
private String petName; | ||
private String species; | ||
private GenderType gender; | ||
private boolean neutralization; | ||
private LocalDate birthDate; | ||
|
||
|
||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/com/kcy/fitapet/domain/pet/service/PetManageService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.kcy.fitapet.domain.pet.service; | ||
|
||
import com.kcy.fitapet.domain.pet.dao.PetRepository; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
@RequiredArgsConstructor | ||
public class PetManageService { | ||
private final PetRepository petRepository; | ||
|
||
|
||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/com/kcy/fitapet/domain/pet/service/PetSearchService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.kcy.fitapet.domain.pet.service; | ||
|
||
public class PetSearchService { | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/kcy/fitapet/domain/pet/type/GenderType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.kcy.fitapet.domain.pet.type; | ||
|
||
import com.kcy.fitapet.global.common.util.converter.LegacyCommonType; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@RequiredArgsConstructor | ||
public enum GenderType implements LegacyCommonType { | ||
MALE("1", "수컷"), | ||
FEMALE("2", "암컷"); | ||
|
||
private final String code; | ||
private final String gender; | ||
|
||
@Override | ||
public String getCode() { | ||
return null; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/com/kcy/fitapet/domain/pet/type/GenderTypeConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.kcy.fitapet.domain.pet.type; | ||
|
||
import com.kcy.fitapet.global.common.util.converter.AbstractLegacyEnumAttributeConverter; | ||
import jakarta.persistence.Converter; | ||
|
||
@Converter | ||
public class GenderTypeConverter extends AbstractLegacyEnumAttributeConverter<GenderType> { | ||
private static final String ENUM_NAME = "성별"; | ||
|
||
public GenderTypeConverter() { | ||
super(GenderType.class, false, ENUM_NAME); | ||
} | ||
} |
Oops, something went wrong.