import { addNoticeRequestOptions, editNoticeRequestOptions, getNoticeListRequestOptions } from '@/types/request' import { getNoticeListResponse } from '@/types/response' import Request from '@/utils/request' // 获取公告列表 export function getNoticesListApi(data: getNoticeListRequestOptions) { return Request({ method: 'POST', url: '/pa/web/v1/notice/getpagedlistnotice', data }) } // 新增公告 export function addNoticeApi(data: addNoticeRequestOptions) { return Request({ method: 'POST', url: '/pa/web/v1/notice/addnotice', data }) } // 编辑公告 export function editNoticeApi(data: editNoticeRequestOptions) { return Request({ method: 'POST', url: '/pa/web/v1/notice/updatenotice', data }) } // 删除公告 export function deleteNoticeApi(data) { return Request({ method: 'POST', url: '/pa/web/v1/notice/deletenotice', data }) } // 公告详情 export function getNoticesDetailApi(params) { return Request({ method: 'GET', url: '/pa/web/v1/notice/getnoticebyid', params }) }