Commit b434c5cc authored by Liu Peng's avatar Liu Peng

完成首页配置

parent 948f1d0a
...@@ -12,3 +12,32 @@ export const fetchAllSwiper = () => { ...@@ -12,3 +12,32 @@ export const fetchAllSwiper = () => {
export const fetchHomeTags = () => { export const fetchHomeTags = () => {
return request("get", "/api/mgr/mainPageTagConfig", {}); return request("get", "/api/mgr/mainPageTagConfig", {});
}; };
export const fetchAvaliHomeTags = (data) => {
return request("post", "/api/mgr/mainPageTagConfig/tags", {data});
};
export const addHomeTag = (tag) => {
return request("post", "/api/mgr/mainPageTagConfig/add", tag);
};
export const removeHomeTag = (tagId) => {
return request("get", `/api/mgr/mainPageTagConfig/delete/${tagId}`, {});
};
export const fetchRecVideos = () => {
return request("get", `/api/mgr/recommendConfig/list`, {});
};
export const fetchAvailRecVideos = (data) => {
return request("post", `/api/mgr/recommendConfig/select`, {data});
};
export const addHomeRecVideos = (data) => {
return request("post", `/api/mgr/recommendConfig/add`, data);
};
export const removeHomeRecVideos = (id) => {
return request("get", `/api/mgr/recommendConfig/delete/${id}`, {});
};
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment