lilishop-ui/seller/src/api/other.js

70 lines
1.0 KiB
JavaScript
Raw Normal View History

2021-05-13 10:56:04 +08:00
// 统一请求路径前缀在libs/axios.js中修改
import {
getRequest,
postRequest,
putRequest,
deleteRequest,
importRequest,
getRequestWithNoToken,
putRequestWithNoForm,
postRequestWithNoForm,
} from "@/libs/axios";
/**
* 楼层装修设置
*
*/
export const setHomeSetup = params => {
2022-01-25 09:22:22 +08:00
return postRequest("/other/pageData/add", params);
2021-05-13 10:56:04 +08:00
};
/**
* 获取页面信息
*
*/
export const getHomeData = params => {
2022-01-25 09:22:22 +08:00
return getRequest(`/other/pageData/${params}`);
2021-05-13 10:56:04 +08:00
};
/**
* 查询楼层装修
*
*/
export const getHomeList = params => {
return getRequest("/pageData/pageDataList", params);
};
/**
* 修改楼层装修
*
*/
export const updateHome = (id,params) => {
return putRequest(`/pageData/update/${id}`, params);
};
/**
* 删除楼层装修
*
*/
export const removePageHome = (id) => {
return deleteRequest(`/pageData/removePageData/${id}`);
};
/**
* 发布页面
*
*/
export const releasePageHome = (id) => {
return putRequest(`/pageData/releasePageData`,id);
};