¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.dromara.workflow.service; |
| | | |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.dromara.common.mybatis.core.page.PageQuery; |
| | | import org.dromara.common.mybatis.core.page.TableDataInfo; |
| | | import org.dromara.warm.flow.orm.entity.FlowDefinition; |
| | | import org.dromara.workflow.domain.vo.FlowDefinitionVo; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æµç¨å®ä¹ æå¡å± |
| | | * |
| | | * @author may |
| | | */ |
| | | public interface IFlwDefinitionService { |
| | | |
| | | /** |
| | | * æ¥è¯¢æµç¨å®ä¹å表 |
| | | * |
| | | * @param flowDefinition åæ° |
| | | * @param pageQuery å页 |
| | | * @return è¿åå页å表 |
| | | */ |
| | | TableDataInfo<FlowDefinitionVo> queryList(FlowDefinition flowDefinition, PageQuery pageQuery); |
| | | |
| | | /** |
| | | * æ¥è¯¢æªåå¸çæµç¨å®ä¹å表 |
| | | * |
| | | * @param flowDefinition åæ° |
| | | * @param pageQuery å页 |
| | | * @return è¿åå页å表 |
| | | */ |
| | | TableDataInfo<FlowDefinitionVo> unPublishList(FlowDefinition flowDefinition, PageQuery pageQuery); |
| | | |
| | | |
| | | /** |
| | | * å叿µç¨å®ä¹ |
| | | * |
| | | * @param id æµç¨å®ä¹id |
| | | * @return ç»æ |
| | | */ |
| | | boolean publish(Long id); |
| | | |
| | | /** |
| | | * å¯¼åºæµç¨å®ä¹ |
| | | * |
| | | * @param id æµç¨å®ä¹id |
| | | * @param response ååº |
| | | * @throws IOException å¼å¸¸ |
| | | */ |
| | | void exportDef(Long id, HttpServletResponse response) throws IOException; |
| | | |
| | | /** |
| | | * 导å
¥æµç¨å®ä¹ |
| | | * |
| | | * @param file æä»¶ |
| | | * @param category åç±» |
| | | * @return ç»æ |
| | | */ |
| | | boolean importJson(MultipartFile file, String category); |
| | | |
| | | /** |
| | | * å 餿µç¨å®ä¹ |
| | | * |
| | | * @param ids æµç¨å®ä¹id |
| | | * @return ç»æ |
| | | */ |
| | | boolean removeDef(List<Long> ids); |
| | | |
| | | /** |
| | | * æ°å¢ç§æ·æµç¨å®ä¹ |
| | | * |
| | | * @param tenantId ç§æ·id |
| | | */ |
| | | void syncDef(String tenantId); |
| | | } |