package org.springblade.plugin.workflow.chat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.springblade.plugin.workflow.chat.excel.WfChatAppExcel;
import org.springblade.plugin.workflow.chat.pojo.entity.WfChatAppEntity;
import org.springblade.plugin.workflow.chat.pojo.vo.WfChatAppVO;

import java.util.List;

/**
 * dify - 应用 Mapper 接口
 *
 * @author ssc
 */
public interface WfChatAppMapper extends BaseMapper<WfChatAppEntity> {

	/**
	 * 自定义分页
	 *
	 * @param page 分页参数
	 * @param model 查询参数
	 * @return List<ChatAppVO>
	 */
	List<WfChatAppVO> selectAppPage(IPage page, WfChatAppVO model);


	/**
	 * 获取导出数据
	 *
	 * @param queryWrapper 查询条件
	 * @return List<ChatAppExcel>
	 */
	List<WfChatAppExcel> exportApp(@Param("ew") Wrapper<WfChatAppEntity> queryWrapper);

}
