system.js 518 B

1234567891011121314
  1. import request from './request.js';
  2. const getSystemNoticeList = async data => {
  3. const res = await request.get({ url: `/system/notice/list`, data });
  4. return res.data;
  5. }
  6. const getSystemNoticeNew = async data => {
  7. const res = await request.get({ url: '/system/notice/newest' });
  8. return res.data;
  9. }
  10. const getSystemNoticeDetails = async ({ id }) => {
  11. const res = await request.get({ url: `/system/notice/${id}` });
  12. return res.data;
  13. }
  14. export default { getSystemNoticeList, getSystemNoticeNew, getSystemNoticeDetails };