forked from umur/waa-june-2024-project
-
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 #30 from hariclerry/feat/UI-feedback
Merge INTO develop: Updated the link and added NavBar to all pages
- Loading branch information
Showing
80 changed files
with
2,254 additions
and
306 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
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
16 changes: 0 additions & 16 deletions
16
backend/src/main/java/com/waa/project/dto/AcademicResourceRequest.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
30 changes: 30 additions & 0 deletions
30
backend/src/main/java/com/waa/project/dto/requests/AcademicResourceRequest.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,30 @@ | ||
package com.waa.project.dto.requests; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Size; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.File; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class AcademicResourceRequest { | ||
@NotNull(message = "Name cannot be null.") | ||
@NotBlank(message = "Name cannot be blank.") | ||
@Size(min = 2, max = 250, message = "Name must be minimum of 2 characters long.") | ||
private String name; | ||
|
||
@NotNull(message = "Description cannot be null.") | ||
@NotBlank(message = "Description cannot be blank.") | ||
@Size(min = 2, max = 250, message = "Description must be minimum of 2 characters long.") | ||
private String body; | ||
|
||
private File file; | ||
|
||
@NotNull(message = "Category cannot be empty.") | ||
private Long resourceId; | ||
} |
15 changes: 15 additions & 0 deletions
15
backend/src/main/java/com/waa/project/dto/requests/AcademicResourceTypeRequest.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,15 @@ | ||
package com.waa.project.dto.requests; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Size; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class AcademicResourceTypeRequest { | ||
@NotNull(message = "Name cannot be null.") | ||
@NotBlank(message = "Name cannot be blank.") | ||
@Size(min = 2, max = 250, message = "Name must be minimum of 2 characters long.") | ||
private String name; | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
backend/src/main/java/com/waa/project/dto/requests/FeedbackCategoryRequest.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,19 @@ | ||
package com.waa.project.dto.requests; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Size; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class FeedbackCategoryRequest { | ||
@NotNull(message = "Category name cannot be null.") | ||
@NotBlank(message = "Category name cannot be blank.") | ||
@Size(min = 2, max = 250, message = "Category name must be minimum of 2 characters long.") | ||
private String name; | ||
|
||
@NotNull(message = "Description cannot be null.") | ||
@NotBlank(message = "Description cannot be blank.") | ||
@Size(min = 2, max = 250, message = "Description must be minimum of 2 characters long.") | ||
private String description; | ||
} |
Oops, something went wrong.