package com.zsc.edu.gateway.modules.message.repo;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zsc.edu.gateway.modules.message.entity.Bulletin;
import com.zsc.edu.gateway.modules.message.query.BulletinQuery;
import com.zsc.edu.gateway.modules.message.vo.BulletinVo;
import org.apache.ibatis.annotations.Param;


/**
 * 公告Repo
 *
 * @author harry_yao
 */
public interface BulletinRepository extends BaseMapper<Bulletin> {


    BulletinVo selectByBulletinId(@Param("bulletinId") Long bulletinId);

    IPage<BulletinVo> selectPageByConditions(Page<BulletinVo> page, @Param("query") BulletinQuery query);
}
