feat: 🚀 店铺资料接口联调
This commit is contained in:
30
src/api/modules/shop.ts
Normal file
30
src/api/modules/shop.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import http from "@/api";
|
||||
|
||||
//店鋪資料列表
|
||||
export const getShopListApi = () => {
|
||||
return http.get<any>(`store`);
|
||||
};
|
||||
//獲取接入系統列表數據
|
||||
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.post<any>(`store/${id}`);
|
||||
};
|
||||
//导出
|
||||
export const getShopListExportApi = (params: any) => {
|
||||
return http.get<any>(`store/export`, params);
|
||||
};
|
||||
Reference in New Issue
Block a user