class TaskController {

    @Autowired
    private TaskService taskService;

    /**
     * 查询我的任务
     * @return
     */
    @GetMapping("/task/mine")
    @EruptRouter(verifyType = EruptRouter.VerifyType.LOGIN)
    public EruptApiModel listMyTasks(String keywords, int pageIndex, int pageSize) {<FILL_FUNCTION_BODY>}

    /**
     * 完成任务
     * @return
     */
    @PostMapping("/task/complete/{taskId}")
    @EruptRouter(verifyType = EruptRouter.VerifyType.LOGIN)
    public EruptApiModel complete(@PathVariable("taskId") Long taskId, @RequestBody JSONObject formContent) {
        taskService.complete(taskId, formContent.getString("remarks"), formContent.getJSONObject("data").toJSONString());
        return EruptApiModel.successApi();
    }

    /**
     * 拒绝任务
     * @return
     */
    @PostMapping("/task/refuse/{taskId}")
    @EruptRouter(verifyType = EruptRouter.VerifyType.LOGIN)
    public EruptApiModel refuse(@PathVariable("taskId") Long taskId, @RequestBody JSONObject formContent) {
        taskService.refuse(taskId, formContent.getString("remarks"), formContent.getJSONObject("data").toJSONString());
        return EruptApiModel.successApi();
    }

    /**
     * 查询任务详情
     * @return
     */
    @GetMapping("/task/detail/{taskId}")
    @EruptRouter(verifyType = EruptRouter.VerifyType.LOGIN)
    public EruptApiModel getTaskDetail(@PathVariable("taskId") Long taskId) {
        TaskDetailVo taskView = taskService.getTaskDetail(taskId);
        return EruptApiModel.successApi(taskView);
    }

    /**
     * 查询任务详情
     * @return
     */
    @GetMapping("/inst/detail/{instId}")
    @EruptRouter(verifyType = EruptRouter.VerifyType.LOGIN)
    public EruptApiModel getInstDetail(@PathVariable("instId") Long instId) {
        TaskDetailVo taskView = taskService.getInstDetail(instId);
        return EruptApiModel.successApi(taskView);
    }
}

        PageHelper.startPage(pageIndex, pageSize);//分页
        List<OaTask> page = taskService.listMyTasks(keywords);
        return EruptApiPageModel.successApi(page, pageIndex, pageSize);
    
<no_super_class>