package com.ycl.service;
|
|
import com.ycl.common.enums.business.FlowLogEventTypeEnum;
|
import com.ycl.domain.entity.FlowLog;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.ycl.common.base.Result;
|
import com.ycl.domain.query.FlowLogQuery;
|
import java.util.List;
|
|
/**
|
* 流程日志 服务类
|
*
|
* @author xp
|
* @since 2025-01-02
|
*/
|
public interface FlowLogService extends IService<FlowLog> {
|
|
/**
|
* 添加
|
* @param taskId 任务id
|
* @param flowInsId 流程实例id
|
* @param eventType 事件类型
|
* @param projectId 项目id
|
* @param eventDataJson json扩展内容
|
*/
|
void add(String taskId, String flowInsId, FlowLogEventTypeEnum eventType, Long projectId, String eventDataJson);
|
|
/**
|
* 批量删除
|
* @param ids
|
* @return
|
*/
|
Result remove(List<String> ids);
|
|
/**
|
* id删除
|
* @param id
|
* @return
|
*/
|
Result removeById(String id);
|
|
/**
|
* 分页查询
|
* @param query
|
* @return
|
*/
|
Result page(FlowLogQuery query);
|
|
/**
|
* 根据id查找
|
* @param id
|
* @return
|
*/
|
Result detail(Long id);
|
|
/**
|
* 列表
|
* @return
|
*/
|
Result all();
|
}
|