feat(REQ-2752) - 添加操作ES 的 API

This commit is contained in:
wangli 2024-10-07 21:16:43 +08:00
parent ec5590e9e8
commit e88267b883
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,16 @@
package cn.axzo.workflow.client.feign.es;
import cn.axzo.workflow.client.annotation.WorkflowEngineFeignClient;
import cn.axzo.workflow.common.annotation.Manageable;
/**
* 操作 ES 的流程实例 API
*
* @author wangli
* @since 2024-10-07 21:12
*/
@WorkflowEngineFeignClient
@Manageable
public interface EsProcessInstanceApi {
}

View File

@ -1,5 +1,6 @@
package cn.axzo.workflow.server.controller.es;
import cn.axzo.workflow.client.feign.es.EsProcessInstanceApi;
import cn.axzo.workflow.es.mapper.EsProcessInstanceMapper;
import cn.axzo.workflow.es.mapper.EsProcessTaskMapper;
import lombok.extern.slf4j.Slf4j;
@ -20,7 +21,7 @@ import javax.annotation.Resource;
@RequestMapping("/web/v1/api/es")
@RestController
@Validated
public class EsIndexController {
public class EsIndexController implements EsProcessInstanceApi {
@Resource
public EsProcessInstanceMapper esProcessInstanceMapper;