-
Notifications
You must be signed in to change notification settings - Fork 2
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 #571 from bounswe/feature/BE-397-coordinator-impro…
…vements Improved/Added coordinator functionalities.
- Loading branch information
Showing
15 changed files
with
491 additions
and
1 deletion.
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
5 changes: 5 additions & 0 deletions
5
resq/backend/resq/src/main/java/com/groupa1/resq/repository/ActionRepository.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,7 +1,12 @@ | ||
package com.groupa1.resq.repository; | ||
|
||
import com.groupa1.resq.entity.Action; | ||
import org.springframework.data.jpa.domain.Specification; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import java.util.List; | ||
|
||
public interface ActionRepository extends JpaRepository<Action, Long> { | ||
|
||
List<Action> findAll(Specification<Action> specification); | ||
} |
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
resq/backend/resq/src/main/java/com/groupa1/resq/request/UpdateActionRequest.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.groupa1.resq.request; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
import java.time.LocalDateTime; | ||
|
||
|
||
@Data | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class UpdateActionRequest { | ||
private Long taskId; | ||
private Long verifierId; | ||
private String description; | ||
private boolean isCompleted; | ||
private boolean isVerified; | ||
private BigDecimal startLatitude; | ||
private BigDecimal startLongitude; | ||
|
||
private BigDecimal endLatitude; | ||
private BigDecimal endLongitude; | ||
private LocalDateTime dueDate; | ||
|
||
|
||
|
||
} |
50 changes: 50 additions & 0 deletions
50
resq/backend/resq/src/main/java/com/groupa1/resq/request/UpdateTaskRequest.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,50 @@ | ||
package com.groupa1.resq.request; | ||
|
||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.groupa1.resq.entity.enums.EGender; | ||
import com.groupa1.resq.entity.enums.EStatus; | ||
import com.groupa1.resq.entity.enums.EUrgency; | ||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.List; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@Data | ||
public class UpdateTaskRequest { | ||
private Long assignerId; | ||
private Long assigneeId; | ||
private String description; | ||
private List<Action> actions; | ||
private List<Resource> resources; | ||
private EUrgency urgency; | ||
private EStatus status; | ||
|
||
@Data | ||
public static class Action { | ||
private Long verifierId; | ||
private String description; | ||
private BigDecimal startLatitude; | ||
private BigDecimal startLongitude; | ||
private BigDecimal endLatitude; | ||
private BigDecimal endLongitude; | ||
private boolean isCompleted; | ||
private boolean isVerified; | ||
} | ||
|
||
@Data | ||
public static class Resource { | ||
private Long senderId; | ||
private String categoryTreeId; | ||
private EGender gender; | ||
private Integer quantity; | ||
private BigDecimal latitude; | ||
private BigDecimal longitude; | ||
|
||
|
||
} | ||
|
||
|
||
} | ||
|
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.