-
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.
Merge pull request #855 from bounswe/main
Deploying latest changes
- Loading branch information
Showing
14 changed files
with
474 additions
and
115 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
27 changes: 27 additions & 0 deletions
27
app/backend/src/main/java/com/app/gamereview/dto/request/profile/EditProfileRequestDto.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.app.gamereview.dto.request.profile; | ||
|
||
import jakarta.validation.constraints.Size; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class EditProfileRequestDto { | ||
|
||
@Size(min = 3, message = "Username must be at least 3 characters long") | ||
@Size(max = 15, message = "Username must be at most 15 characters long") | ||
private String username; | ||
|
||
private Boolean isPrivate; | ||
|
||
private String profilePhoto; | ||
|
||
private String steamProfile; | ||
|
||
private String epicGamesProfile; | ||
|
||
private String xboxProfile; | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
...end/src/main/java/com/app/gamereview/dto/request/profile/ProfileUpdateGameRequestDto.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.app.gamereview.dto.request.profile; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Pattern; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class ProfileUpdateGameRequestDto { | ||
@NotNull(message = "Game Id cannot be null or empty.") | ||
@Pattern(regexp = "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", | ||
message = "Game has invalid Id (UUID) format") | ||
private String game; | ||
|
||
} |
56 changes: 56 additions & 0 deletions
56
...backend/src/main/java/com/app/gamereview/dto/response/profile/ProfilePageResponseDto.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,56 @@ | ||
package com.app.gamereview.dto.response.profile; | ||
|
||
import com.app.gamereview.dto.response.game.GameDetailResponseDto; | ||
import com.app.gamereview.model.Achievement; | ||
import com.app.gamereview.model.Review; | ||
import com.app.gamereview.model.User; | ||
import com.app.gamereview.model.Group; | ||
import lombok.*; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Getter | ||
@Setter | ||
public class ProfilePageResponseDto { | ||
|
||
private String id; | ||
|
||
private User user; | ||
|
||
private List<Achievement> achievements; | ||
|
||
private int reviewCount; | ||
|
||
private int voteCount; | ||
|
||
private int commentCount; | ||
|
||
private int postCount; | ||
|
||
private Boolean isReviewedYet; | ||
|
||
private Boolean isVotedYet; | ||
|
||
private Boolean isCommentedYet; | ||
|
||
private Boolean isPostedYet; | ||
|
||
private Boolean isPrivate; | ||
|
||
private String profilePhoto; | ||
|
||
private List<GameDetailResponseDto> games; | ||
|
||
private List<Review> reviews; | ||
|
||
private List<Group> groups; | ||
|
||
private String steamProfile; | ||
|
||
private String epicGamesProfile; | ||
|
||
private String xboxProfile; | ||
} |
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
Oops, something went wrong.