package top.lejings.demo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import top.lejings.demo.pojo.Announcements;

import java.util.List;

@Mapper
public interface AnnouncementsMapper {

    @Select("select announcement_id,title,content,updated_at from announcements order by updated_at desc ")
    List<Announcements> announcementsAll();
}
