cn.herodotus.stirrup.logic.bpmn.camunda.controller.ExtendedTaskController Maven / Gradle / Ivy
The newest version!
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2020-2030 郑庚伟 ZHENGGENGWEI (码匠君), Licensed under the AGPL License
*
* This file is part of Herodotus Stirrup.
*
* Herodotus Stirrup is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Herodotus Stirrup is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package cn.herodotus.stirrup.logic.bpmn.camunda.controller;
import cn.herodotus.stirrup.core.definition.domain.Result;
import cn.herodotus.stirrup.logic.bpmn.camunda.entity.ExtendedTask;
import cn.herodotus.stirrup.logic.bpmn.camunda.service.ExtendedTaskService;
import cn.herodotus.stirrup.web.api.servlet.MybatisPlusController;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import jakarta.validation.constraints.NotBlank;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
* Description: 扩展的 Camunda ExtendedTask 接口
*
* @author : gengwei.zheng
* @date : 2023/1/21 16:20
*/
@RestController
@RequestMapping("/camunda-extended/task")
public class ExtendedTaskController implements MybatisPlusController {
private final ExtendedTaskService extendedTaskService;
public ExtendedTaskController(ExtendedTaskService extendedTaskService) {
this.extendedTaskService = extendedTaskService;
}
@Operation(summary = "分页查询待办任务列表", description = "根据输入的 employeeId 分页查询待办任务列表",
responses = {@ApiResponse(description = "分页查询待办任务列表", content = @Content(mediaType = "application/json", schema = @Schema(implementation = Map.class)))})
@Parameters({
@Parameter(name = "pageNumber", required = true, description = "当前页码"),
@Parameter(name = "pageSize", required = true, description = "每页显示数量"),
@Parameter(name = "employeeId", required = true, description = "人员ID"),
})
@GetMapping("/todo")
public Result
© 2015 - 2025 Weber Informatics LLC | Privacy Policy