31 lines
822 B
TypeScript
31 lines
822 B
TypeScript
import http from "@/api";
|
|
|
|
//店鋪資料列表
|
|
export const getShopListApi = (params: any) => {
|
|
return http.get<any>(`store`, params);
|
|
};
|
|
//獲取接入系統列表數據
|
|
export const getShopAccessSystemApi = () => {
|
|
return http.get<any>(`store/access_system`);
|
|
};
|
|
//删除
|
|
export const getShopDelApi = (params: any) => {
|
|
return http.delete<any>(`store/${params}`);
|
|
};
|
|
//新增
|
|
export const getShopAddApi = (params: any) => {
|
|
return http.post<any>(`store`, params);
|
|
};
|
|
//更新
|
|
export const getShopUpApi = (id: any, params: any) => {
|
|
return http.post<any>(`store/${id}`, params);
|
|
};
|
|
//详情
|
|
export const getShopDetailsApi = (id: any) => {
|
|
return http.get<any>(`store/${id}`);
|
|
};
|
|
//导出
|
|
export const getShopListExportApi = (params: any) => {
|
|
return http.get<any>(`store/export`, params);
|
|
};
|