WorkflowController.java 1.27 KB
Newer Older
1 2 3 4
package pwc.taxtech.atms.controller;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
5
import pwc.taxtech.atms.dto.OperationResultDto;
6 7
import pwc.taxtech.atms.dto.taxadmin.NotificationFilterDto;
import pwc.taxtech.atms.dto.taxadmin.PushNotificationsWithTasksInfor;
8
import pwc.taxtech.atms.dto.vatdto.WorkflowDetailsDto;
9 10 11 12

@RestController
@RequestMapping("/api/v1/workflow/")
public class WorkflowController {//TODO:only for index running,should be delete future (neo)
13

14 15 16 17 18 19
    @RequestMapping(value = "getPushNotifications", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public @ResponseBody
    PushNotificationsWithTasksInfor getPushNotifications(@RequestBody NotificationFilterDto notificationFilterDto) {
        PushNotificationsWithTasksInfor notificationsWithTasksInfor = new PushNotificationsWithTasksInfor();
        return notificationsWithTasksInfor;
    }
20 21 22 23 24 25

    @RequestMapping(value = "getWorkflowDetailByDb/{dbName}/{periodId}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public @ResponseBody
    OperationResultDto<WorkflowDetailsDto> getWorkflowDetailByDb(@PathVariable String dbName, @PathVariable int periodId) {
        return new OperationResultDto<>();
    }
26
}