|
@@ -2,13 +2,18 @@ import { ResPage, StoreUser } from "@/api/interface/index";
|
|
|
import { PORT_NONE } from "@/api/config/servicePort";
|
|
import { PORT_NONE } from "@/api/config/servicePort";
|
|
|
import http from "@/api";
|
|
import http from "@/api";
|
|
|
|
|
|
|
|
-/**
|
|
|
|
|
- * @name 商铺用户模块
|
|
|
|
|
- */
|
|
|
|
|
-// 获取商铺用户列表
|
|
|
|
|
export const getThaliList = params => {
|
|
export const getThaliList = params => {
|
|
|
return http.get<ResPage<StoreUser.ResStoreUserList>>(PORT_NONE + `/PcGroupBuy/getThaliList`, params);
|
|
return http.get<ResPage<StoreUser.ResStoreUserList>>(PORT_NONE + `/PcGroupBuy/getThaliList`, params);
|
|
|
};
|
|
};
|
|
|
|
|
+export const deleteThali = (params: { id: string }) => {
|
|
|
|
|
+ return http.delete(PORT_NONE + `/PcGroupBuy/deleteThali`, params);
|
|
|
|
|
+};
|
|
|
|
|
+export const sjxj = params => {
|
|
|
|
|
+ return http.get(PORT_NONE + `/PcGroupBuy/sjxj`, params);
|
|
|
|
|
+};
|
|
|
|
|
+export const xgkc = params => {
|
|
|
|
|
+ return http.get(PORT_NONE + `/PcGroupBuy/xgkc`, params);
|
|
|
|
|
+};
|
|
|
export const saveDraft = params => {
|
|
export const saveDraft = params => {
|
|
|
return http.post(PORT_NONE + `/PcGroupBuy/saveDraft`, params);
|
|
return http.post(PORT_NONE + `/PcGroupBuy/saveDraft`, params);
|
|
|
};
|
|
};
|
|
@@ -22,62 +27,6 @@ export const getMenuByStoreId = params => {
|
|
|
return http.get(PORT_NONE + `/menuPlatform/getMenuByStoreId`, params);
|
|
return http.get(PORT_NONE + `/menuPlatform/getMenuByStoreId`, params);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-// 新增商家端用户
|
|
|
|
|
-export const addStoreUser = (params: { id: string }) => {
|
|
|
|
|
- return http.post(PORT_NONE + `/store/user/addStoreUser`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-// 修改商家端用户
|
|
|
|
|
-export const editStoreUser = (params: { id: string }) => {
|
|
|
|
|
- return http.post(PORT_NONE + `/store/user/editStoreUser`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-// 重置商家端用户密码及支付密码
|
|
|
|
|
-export const resetStoreUserPassword = (params: { id: string }) => {
|
|
|
|
|
- return http.put(PORT_NONE + `/store/user/resetStoreUserPassword`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-// 删除商家端用户
|
|
|
|
|
-export const deleteStoreUser = (params: { id: string }) => {
|
|
|
|
|
- return http.delete(PORT_NONE + `/store/user/deleteStoreUser`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-// 切换商家端用户状态
|
|
|
|
|
-export const switchingStates = (params: { id: string }) => {
|
|
|
|
|
- return http.put(PORT_NONE + `/store/user/switchingStates`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-// 获取商铺列表
|
|
|
|
|
-export const getStoreInfoList = (params: StoreUser.ReqUserParams) => {
|
|
|
|
|
- return http.get<ResPage<StoreUser.ResStoreUserList>>(PORT_NONE + `/store/info/getStorePage`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-//获取商铺经营板块列表
|
|
|
|
|
-export const getBusinessSection = () => {
|
|
|
|
|
- return http.get(PORT_NONE + `/store/info/getBusinessSection`);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-//获取商铺经营种类列表
|
|
|
|
|
-export const getBusinessSectionTypes = (params: { parentId: string }) => {
|
|
|
|
|
- return http.get<ResPage<StoreUser.ResStoreUserList>>(PORT_NONE + `/store/info/getBusinessSectionTypes`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-//获取未绑定的商家端账号
|
|
|
|
|
-export const getUnboundAccountList = (params: { id: string }) => {
|
|
|
|
|
- return http.get(PORT_NONE + `/store/info/getUnboundAccountList`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-//新增经营板块
|
|
|
|
|
-export const addBusinessSectionAndTypes = (params: {
|
|
|
|
|
- businessSectionName: string;
|
|
|
|
|
- businessTypeValue: string;
|
|
|
|
|
- businessTypesList: [];
|
|
|
|
|
-}) => {
|
|
|
|
|
- return http.post(PORT_NONE + `/store/info/addBusinessSectionAndTypes`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-//新增商铺信息
|
|
|
|
|
-
|
|
|
|
|
//获取商铺明细信息
|
|
//获取商铺明细信息
|
|
|
export const getStoreDetail = (params: StoreUser.ReqUserParams) => {
|
|
export const getStoreDetail = (params: StoreUser.ReqUserParams) => {
|
|
|
return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/store/info/getStoreDetail`, params);
|
|
return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/store/info/getStoreDetail`, params);
|
|
@@ -87,92 +36,3 @@ export const getStoreDetail = (params: StoreUser.ReqUserParams) => {
|
|
|
export const editStoreInfo = (params: { id: string }) => {
|
|
export const editStoreInfo = (params: { id: string }) => {
|
|
|
return http.post(PORT_NONE + `/store/info/editStoreInfo`, params);
|
|
return http.post(PORT_NONE + `/store/info/editStoreInfo`, params);
|
|
|
};
|
|
};
|
|
|
-// 删除商铺信息
|
|
|
|
|
-export const deleteStoreInfo = (params: { id: string }) => {
|
|
|
|
|
- return http.post(PORT_NONE + `/store/info/deleteStoreInfo`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-//审批商户
|
|
|
|
|
-export const approveStoreInfo = (params: { id: string; approvalStatus: number; reason: string }) => {
|
|
|
|
|
- return http.get(PORT_NONE + `/store/info/approveStoreInfo`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-//审批商户续约
|
|
|
|
|
-export const updateContractImageStatus = (params: { id: string; approvalStatus: number }) => {
|
|
|
|
|
- return http.post(PORT_NONE + `/store/info/updateContractImageStatus`, params);
|
|
|
|
|
-};
|
|
|
|
|
-//审批经营许可证变更
|
|
|
|
|
-export const updatefoodLicenceImageStatus = (params: { id: string; approvalStatus: number }) => {
|
|
|
|
|
- return http.post(PORT_NONE + `/store/info/updatefoodLicenceImageStatus`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-// 重置商户或者用户密码
|
|
|
|
|
-export const resetStoreUserPassWord = (params: { id: string }) => {
|
|
|
|
|
- return http.post(PORT_NONE + `/store/info/restPassword`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-// 获取店铺状态
|
|
|
|
|
-export const getStoreAuditStatus = (params: { id: string }) => {
|
|
|
|
|
- return http.post(PORT_NONE + `/store/info/getStoreAuditStatus`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-//商铺页面导出excel
|
|
|
|
|
-export const exportExcel = (params: {}) => {
|
|
|
|
|
- return http.get(PORT_NONE + `/store/info/exportExcel`, params);
|
|
|
|
|
-};
|
|
|
|
|
-//商铺过期查询页面导出excel
|
|
|
|
|
-export const exportExcelExpirationTime = (params: {}) => {
|
|
|
|
|
- return http.get(
|
|
|
|
|
- PORT_NONE +
|
|
|
|
|
- `/store/info/exportExcelExpirationTime
|
|
|
|
|
-`,
|
|
|
|
|
- params
|
|
|
|
|
- );
|
|
|
|
|
-};
|
|
|
|
|
-//商铺用户页面导出excel
|
|
|
|
|
-export const exportUserExcel = (params: {}) => {
|
|
|
|
|
- return http.get(
|
|
|
|
|
- PORT_NONE +
|
|
|
|
|
- `/store/user/exportExcel
|
|
|
|
|
-`,
|
|
|
|
|
- params
|
|
|
|
|
- );
|
|
|
|
|
-};
|
|
|
|
|
-//根据详细信息获取经纬度名称
|
|
|
|
|
-export const getInputPrompt = (params: StoreUser.ReqUserParams) => {
|
|
|
|
|
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/gaode/getInputPrompt`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-//获取行政区域信息
|
|
|
|
|
-export const getDistrict = (params: StoreUser.ReqUserParams) => {
|
|
|
|
|
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/gaode/getDistrict`, params);
|
|
|
|
|
-};
|
|
|
|
|
-// 更改店铺抽成百分比
|
|
|
|
|
-export const updateStoreCommissionRate = (params: { id: string; commissionRate: any }) => {
|
|
|
|
|
- return http.post(PORT_NONE + `/store/info/updateStoreCommissionRate`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-// 节假日列表
|
|
|
|
|
-export const getHolidayList = (params: any) => {
|
|
|
|
|
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/couponPlatform/getHolidayList`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-// 节假日列表
|
|
|
|
|
-export const saveHoliday = (params: any) => {
|
|
|
|
|
- return http.post<StoreUser.ResStoreUserList>(PORT_NONE + `/coupon/saveHoliday`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-//删除节假日
|
|
|
|
|
-export const delHoliday = (params: any) => {
|
|
|
|
|
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/coupon/delHoliday`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-// 按年份删除节假日
|
|
|
|
|
-export const delHolidayByYear = (params: any) => {
|
|
|
|
|
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/coupon/delHolidayByYear`, params);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-//启用禁用节假日
|
|
|
|
|
-export const openCloseHoliday = (params: any) => {
|
|
|
|
|
- return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/coupon/openCloseHoliday`, params);
|
|
|
|
|
-};
|
|
|