|
|
@@ -83,4 +83,25 @@ public class CrowdTaskController {
|
|
|
}
|
|
|
return taskService.acceptTask(projectCode, taskCode, userId);
|
|
|
}
|
|
|
+
|
|
|
+ @LoginRequired
|
|
|
+ @RequestMapping(value = "/project/{projectCode}/task/{taskCode}/status/reject", method = RequestMethod.PUT)
|
|
|
+ public TaskDetailsDTO rejectTask(@PathVariable("projectCode") String projectCode, @PathVariable("taskCode") String taskCode, HttpSession session){
|
|
|
+ Long userId = Long.parseLong((String)session.getAttribute("userId"));
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @LoginRequired
|
|
|
+ @RequestMapping(value = "/project/{projectCode}/task/{taskCode}/status/commit", method = RequestMethod.PUT)
|
|
|
+ public TaskDetailsDTO commitTask(@PathVariable("projectCode") String projectCode, @PathVariable("taskCode") String taskCode, HttpSession session){
|
|
|
+ Long userId = Long.parseLong((String)session.getAttribute("userId"));
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @LoginRequired
|
|
|
+ @RequestMapping(value = "/project/{projectCode}/task/{taskCode}/status/finished", method = RequestMethod.PUT)
|
|
|
+ public TaskDetailsDTO confirmFinishTask(@PathVariable("projectCode") String projectCode, @PathVariable("taskCode") String taskCode, HttpSession session){
|
|
|
+ Long userId = Long.parseLong((String)session.getAttribute("userId"));
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|