-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
222 additions
and
30 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
9 changes: 9 additions & 0 deletions
9
operation-api/src/main/java/org/sopt/makers/operation/web/banner/service/BannerService.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,22 @@ | ||
package org.sopt.makers.operation.web.banner.service; | ||
|
||
import java.util.List; | ||
|
||
import org.sopt.makers.operation.web.banner.dto.request.*; | ||
import org.sopt.makers.operation.web.banner.dto.response.BannerResponse; | ||
import org.sopt.makers.operation.web.banner.dto.response.BannerResponse.BannerDetail; | ||
import org.sopt.makers.operation.web.banner.dto.response.BannerResponse.BannerImageUrl; | ||
|
||
public interface BannerService { | ||
|
||
BannerResponse.BannerDetail getBannerDetail(final long bannerId); | ||
|
||
void deleteBanner(final long bannerId); | ||
|
||
List<BannerImageUrl> getExternalBanners(final String platform, final String location); | ||
|
||
BannerResponse.ImagePreSignedUrl getIssuedPreSignedUrlForPutImage(String contentName, String imageType, String imageExtension, String contentType); | ||
|
||
BannerResponse.BannerDetail createBanner(BannerRequest.BannerCreate request); | ||
|
||
} |
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
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
4 changes: 4 additions & 0 deletions
4
...on-domain/src/main/java/org/sopt/makers/operation/banner/repository/BannerRepository.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,10 +1,14 @@ | ||
package org.sopt.makers.operation.banner.repository; | ||
|
||
import java.util.List; | ||
import org.sopt.makers.operation.banner.domain.Banner; | ||
|
||
import org.sopt.makers.operation.banner.domain.PublishLocation; | ||
import org.springframework.stereotype.Repository; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
@Repository | ||
public interface BannerRepository extends JpaRepository<Banner, Long> { | ||
|
||
List<Banner> findBannersByLocation(PublishLocation publishLocation); | ||
} |