package cn.axzo.workflow.client.feign.manage;

import cn.axzo.framework.domain.web.result.ApiPageResult;
import cn.axzo.workflow.common.model.request.bpmn.basic.ProcessBasicInfoQuery;
import cn.axzo.workflow.common.model.request.bpmn.basic.ProcessBasicInfoResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * OMS流程业务管理API
 *
 * @author zuoqinbo
 * @version V1.0
 * @date 2023/11/6 16:01
 */

@FeignClient(name = "workflow-engine", url = "${axzo.service.workflow-engine:http://workflow-engine:8080}")
public interface ProcessManageApi {

    /**
     * 获取流程基本信息列表
     *
     * @param basicInfoQuery 查询流程基本信息条件
     * @return 流程基本信息列表
     */
    @GetMapping("/api/process/basic/list")
    ApiPageResult<ProcessBasicInfoResp> getProcessBasicInfos(@Validated @RequestBody ProcessBasicInfoQuery basicInfoQuery);


}
