import { http } from '../http'

const announcementApi = {
  /**
   * 分页获取公告标题
   */
  getAnnouncementListApi: (data: anyObj) => {
    return http.request({
      url: '/userAnnouncement/getAnnouncementTitleByPage',
      method: 'POST',
      data,
    })
  },

  /**
   * 修改未读状态公告
   */
  updateAnnouncemenStatusApi: (id: any) => {
    return http.request({
      url: `/userAnnouncement/updateReadStatusByAnnounceId/${id}`,
      method: 'POST',
    })
  },
}

export default announcementApi
