import http from "@/utils/request"; export function toggleCollectMaterial(id) { return http.get("/material/collect", { id }, { requireAuth: true }); } export function recordDownload(id) { return http.get("/material/userDownload", { id }, { requireAuth: true }); } export function getMaterialList(params) { return http.get("/material/my_material_list", params, { requireAuth: true }); } export function getMaterialCate() { return http.get("/material/get_material_cate", {}, { requireAuth: true }); } export function getMaterialList2(data) { return http.post("/material/get_material_list", data, { requireAuth: true }); }