package com.njcn.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njcn.system.pojo.po.EventTemplate;
import com.njcn.system.pojo.vo.EventTemplateVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hany
 * @createTime 2022/09/08
 */
public interface EventTemplateMapper extends BaseMapper<EventTemplate> {

    /**
     * 分页查询模板数据
     */
    Page<EventTemplateVO> page(@Param("page")Page<EventTemplateVO> page, @Param("ew") QueryWrapper<EventTemplateVO> queryWrapper);

    /**
     * 删除模板和字典关系
     */
    Boolean deleteRelevancy(@Param("ids")List<String> ids);

}
