package com.xzx.gc.system.mapper; import com.xzx.gc.entity.SysNews; import com.xzx.gc.system.dto.SysNewsListDto; import com.xzx.gc.system.vo.ApiNewsListVo; import com.xzx.gc.system.vo.SysNewsListVo; import com.xzx.gc.util.GcMapper; import org.apache.ibatis.annotations.Param; import java.util.List; public interface SysNewsMapper extends GcMapper { List selectSysNewsListVo(SysNewsListDto sysNewsListDto); SysNews selectById(@Param("id")Long id); void updateById(@Param("newsId")long newsId); void updateStatusById(@Param("newsId")long id, @Param("status")Integer status); void updateSysNews(@Param("title")String title, @Param("content")String content, @Param("sort")Integer sort, @Param("newsId")long id); List selectSysNews(); }