-
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 #57 from Dev-Tinos/develop
Imporve_version_2.2 deploy
- Loading branch information
Showing
100 changed files
with
1,569 additions
and
381 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
22 changes: 22 additions & 0 deletions
22
src/main/java/com/example/jsgamesbackendmain/Bean/GameBean/GameGetListByPlayedUser.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,22 @@ | ||
package com.example.jsgamesbackendmain.Bean.GameBean; | ||
|
||
import com.example.jsgamesbackendmain.Bean.SmallBean.GameBean.GameGetListByPlayedUserSmallBean; | ||
import com.example.jsgamesbackendmain.Model.DTO.Game.Response.GameListResponseDTO; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.data.domain.PageRequest; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.List; | ||
|
||
@Component | ||
public class GameGetListByPlayedUser { | ||
|
||
@Autowired | ||
private GameGetListByPlayedUserSmallBean gameGetListByPlayedUserSmallBean; | ||
|
||
public List<GameListResponseDTO> exec(String userId, Long page, Long size) { | ||
PageRequest request = PageRequest.of(page.intValue(), size.intValue()); | ||
|
||
return gameGetListByPlayedUserSmallBean.exec(userId, 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
22 changes: 22 additions & 0 deletions
22
src/main/java/com/example/jsgamesbackendmain/Bean/HelpfulBean/HelpfulDeleteBean.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,22 @@ | ||
package com.example.jsgamesbackendmain.Bean.HelpfulBean; | ||
|
||
import com.example.jsgamesbackendmain.Bean.SmallBean.HelpfulBean.HelpfulDeleteSmallBean; | ||
import com.example.jsgamesbackendmain.Controller.ExceptionControll.DuplicateException; | ||
import com.example.jsgamesbackendmain.Model.DAO.HelpfulDAO; | ||
import com.example.jsgamesbackendmain.Model.DTO.StateResponseDTO; | ||
import com.example.jsgamesbackendmain.Repository.HelpfulRepository; | ||
import com.example.jsgamesbackendmain.Repository.ReviewRepository; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.Optional; | ||
|
||
@Component | ||
public class HelpfulDeleteBean { | ||
@Autowired | ||
private HelpfulDeleteSmallBean helpfulDeleteSmallBean; | ||
public StateResponseDTO exec(String userId, Long reviewId) { | ||
helpfulDeleteSmallBean.exec(userId, reviewId); | ||
return new StateResponseDTO(true); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/com/example/jsgamesbackendmain/Bean/HelpfulBean/HelpfulGetBean.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,23 @@ | ||
package com.example.jsgamesbackendmain.Bean.HelpfulBean; | ||
|
||
import com.example.jsgamesbackendmain.Bean.SmallBean.HelpfulBean.HelpfulGetSmallBean; | ||
import com.example.jsgamesbackendmain.Controller.ExceptionControll.ResourceNotFoundException; | ||
import com.example.jsgamesbackendmain.Model.DAO.HelpfulDAO; | ||
import com.example.jsgamesbackendmain.Model.DTO.Helpful.HelpfulGetReponseDTO; | ||
import com.example.jsgamesbackendmain.Repository.HelpfulRepository; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.Optional; | ||
|
||
@Component | ||
public class HelpfulGetBean { | ||
@Autowired | ||
private HelpfulGetSmallBean helpfulGetSmallBean; | ||
|
||
public HelpfulGetReponseDTO exec(String userId, Long reviewId) { | ||
HelpfulGetReponseDTO responseDTO = new HelpfulGetReponseDTO(); | ||
responseDTO.setHelpful(helpfulGetSmallBean.exec(userId, reviewId)); | ||
return responseDTO; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/com/example/jsgamesbackendmain/Bean/HelpfulBean/HelpfulPostBean.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,24 @@ | ||
package com.example.jsgamesbackendmain.Bean.HelpfulBean; | ||
|
||
import com.example.jsgamesbackendmain.Bean.SmallBean.HelpfulBean.HelpfulDeleteSmallBean; | ||
import com.example.jsgamesbackendmain.Bean.SmallBean.HelpfulBean.HelpfulPostSmallBean; | ||
import com.example.jsgamesbackendmain.Controller.ExceptionControll.DuplicateException; | ||
import com.example.jsgamesbackendmain.Model.DAO.HelpfulDAO; | ||
import com.example.jsgamesbackendmain.Model.DAO.ReviewDAO; | ||
import com.example.jsgamesbackendmain.Model.DTO.StateResponseDTO; | ||
import com.example.jsgamesbackendmain.Repository.HelpfulRepository; | ||
import com.example.jsgamesbackendmain.Repository.ReviewRepository; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.Optional; | ||
|
||
@Component | ||
public class HelpfulPostBean { | ||
@Autowired | ||
private HelpfulPostSmallBean helpfulPostSmallBean; | ||
public StateResponseDTO exec(String userId, Long reviewId) { | ||
helpfulPostSmallBean.exec(userId, reviewId); | ||
return new StateResponseDTO(true); | ||
} | ||
} |
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
Oops, something went wrong.