import request from '@/common/system/request'; /** * 获取单个公告内容 * @param {number} id 公告ID * @returns {Promise} */ export const noticeInfo = async (id) => { const res = await request.getOrCache("Notice/NoticeInfo", { id }); if (res.code == 0) { return res.data; } return null; } /** * 获取公告列表 * @param {Object} params 查询参数 * @returns {Promise} */ export const noticeList = async (params) => { const res = await request.post("Notice/NoticeList", params); if (res.code == 0) { return res.data; } return null; }