-
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.
- Loading branch information
1 parent
d78cd55
commit 48eeb8b
Showing
9 changed files
with
121 additions
and
9 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
27 changes: 27 additions & 0 deletions
27
Api/src/main/java/com/example/api/Popcorn/service/PostPopcornReviewComplainUseCase.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,27 @@ | ||
package com.example.api.Popcorn.service; | ||
|
||
import com.example.adaptor.UseCase; | ||
import com.example.api.config.security.SecurityUtil; | ||
import com.example.domains.block.adaptor.BlockAdaptor; | ||
import com.example.domains.popcornUser.adaptor.PopcornUserAdaptor; | ||
import com.example.domains.popcornUser.entity.PopcornUser; | ||
import com.example.domains.popcornUser.repository.PopcornUserRepository; | ||
import com.example.domains.screeningReview.entity.QScreeningReview; | ||
import com.example.domains.screeningReview.entity.ScreeningReview; | ||
import com.example.domains.user.entity.User; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.transaction.annotation.Transactional; | ||
|
||
@UseCase | ||
@RequiredArgsConstructor | ||
public class PostPopcornReviewComplainUseCase { | ||
private final BlockAdaptor blockAdaptor; | ||
private final PopcornUserAdaptor popcornUserAdaptor; | ||
private final PopcornUserRepository popcornUserRepository; | ||
public void execute(Long reviewId) { | ||
Long userId = SecurityUtil.getCurrentUserId(); | ||
popcornUserAdaptor.postComplain(reviewId,userId); | ||
} | ||
|
||
|
||
} |
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
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