-
Notifications
You must be signed in to change notification settings - Fork 2
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 #56 from kkijuk/feature/introduce
- Loading branch information
Showing
19 changed files
with
216 additions
and
94 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
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
23 changes: 0 additions & 23 deletions
23
src/main/java/umc/kkijuk/server/record/controller/response/UrlResponse.java
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package umc.kkijuk.server.record.domain; | ||
|
||
public enum FileType { | ||
File, | ||
|
||
URL | ||
} |
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
3 changes: 3 additions & 0 deletions
3
src/main/java/umc/kkijuk/server/record/repository/FileRepository.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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
package umc.kkijuk.server.record.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import umc.kkijuk.server.record.domain.Award; | ||
import umc.kkijuk.server.record.domain.File; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
public interface FileRepository extends JpaRepository<File,Long> { | ||
Optional<File> findByMemberIdAndFileTitle(Long memberId, String fileTitle); | ||
boolean existsByMemberIdAndFileTitle(Long memberId, String fileTitle); | ||
boolean existsByMemberIdAndUrlTitle(Long memberId, String urlTitle); | ||
Optional<File> findByMemberIdAndUrlTitle(Long memberId, String urlTitle); | ||
List<File> findByRecordId(Long recordId); | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/umc/kkijuk/server/record/repository/LicenseRepository.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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
package umc.kkijuk.server.record.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import umc.kkijuk.server.record.domain.Award; | ||
import umc.kkijuk.server.record.domain.License; | ||
|
||
import java.util.List; | ||
|
||
public interface LicenseRepository extends JpaRepository<License, Long> { | ||
List<License> findByRecordId(Long recordId); | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/umc/kkijuk/server/record/repository/SkillRepository.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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
package umc.kkijuk.server.record.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import umc.kkijuk.server.record.domain.Award; | ||
import umc.kkijuk.server.record.domain.Skill; | ||
|
||
import java.util.List; | ||
|
||
public interface SkillRepository extends JpaRepository<Skill, Long> { | ||
List<Skill> findByRecordId(Long recordId); | ||
} |
8 changes: 3 additions & 5 deletions
8
src/main/java/umc/kkijuk/server/record/service/FileService.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 |
---|---|---|
@@ -1,19 +1,17 @@ | ||
package umc.kkijuk.server.record.service; | ||
|
||
|
||
import umc.kkijuk.server.member.domain.Member; | ||
import umc.kkijuk.server.record.controller.response.FileResponse; | ||
import umc.kkijuk.server.record.controller.response.UrlResponse; | ||
import umc.kkijuk.server.record.dto.FileReqDto; | ||
import umc.kkijuk.server.record.dto.UrlReqDto; | ||
|
||
import java.util.Map; | ||
|
||
public interface FileService { | ||
Map<String, String> getSignUrl (Long memberId, String fileName); | ||
FileResponse createFile(Long memberId, FileReqDto request); | ||
FileResponse saveFile(Long memberId, Long recordId, FileReqDto request); | ||
Map<String, String> getDownloadUrl(Long memberId, String keyName); | ||
FileResponse deleteFile(Long memberId, String fileName); | ||
UrlResponse saveUrl(Long memberId, UrlReqDto urlReqDto); | ||
UrlResponse deleteUrl(Long memberId, UrlReqDto urlReqDto); | ||
FileResponse saveUrl(Long memberId, Long recordId, UrlReqDto urlReqDto); | ||
FileResponse deleteUrl(Long memberId, UrlReqDto urlReqDto); | ||
} |
Oops, something went wrong.