api.js 574 B

1234567891011121314151617
  1. const { http } = uni.$u
  2. // 获取菜单
  3. export const fetchMenu = (params, config = {}) => http.post(
  4. '/ebapi/public_api/index', params, config);
  5. export const fetchContentInfo = (params) => http.get('/cp/contentInfo/list',
  6. { params });
  7. export const fetchContentDetail = (id) => http.get(`/cp/contentInfo/${id}`);
  8. export const fetchMsgList = (params) => http.get('/cp/msg/list',
  9. { params });
  10. export const fetchViewCfgList = (params) => http.get('/cp/viewcfg/list',
  11. { params });
  12. export const fetchFileList = (params) => http.get('/cp/fileInfo/list',
  13. { params });