You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
zhishifufei_uniapp/api/material.js

31 lines
704 B

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
});
}