server.js 358 B

12345678910111213141516171819
  1. import { creatRequest } from '../../utils/request.js';
  2. const requestList = {
  3. // 获取日历
  4. getCalList: {
  5. method: 'GET',
  6. url: 'checkTask/calendar'
  7. },
  8. //获取分页列表
  9. messagesList: {
  10. method: 'GET',
  11. url: 'notice/page'
  12. },
  13. };
  14. export const commServer = ({ key, data }) => {
  15. let obj = requestList[key];
  16. return creatRequest(obj, data);
  17. }