mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-08-06 19:07:25 +08:00
commit message
This commit is contained in:
69
seller/src/api/other.js
Normal file
69
seller/src/api/other.js
Normal file
@@ -0,0 +1,69 @@
|
||||
// 统一请求路径前缀在libs/axios.js中修改
|
||||
import {
|
||||
getRequest,
|
||||
postRequest,
|
||||
putRequest,
|
||||
deleteRequest,
|
||||
importRequest,
|
||||
getRequestWithNoToken,
|
||||
putRequestWithNoForm,
|
||||
postRequestWithNoForm,
|
||||
} from "@/libs/axios";
|
||||
|
||||
/**
|
||||
* 楼层装修设置
|
||||
*
|
||||
*/
|
||||
export const setHomeSetup = params => {
|
||||
|
||||
return postRequest("/pageData/add", params);
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取页面信息
|
||||
*
|
||||
*/
|
||||
export const getHomeData = params => {
|
||||
|
||||
return getRequest(`/pageData/${params}`);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* 查询楼层装修
|
||||
*
|
||||
*/
|
||||
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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user