|
|
@@ -1,6 +1,7 @@
|
|
|
import { PORT_NONE } from "@/api/config/servicePort";
|
|
|
import http from "@/api";
|
|
|
import httpStore from "@/api/indexStore";
|
|
|
+import httpApi from "@/api/indexApi";
|
|
|
|
|
|
/**
|
|
|
* 动态管理相关接口
|
|
|
@@ -246,8 +247,10 @@ export const getUserByPhone = (params: {
|
|
|
export const getBlackList = (params: {
|
|
|
userType: number; // 用户类型:1表示商家
|
|
|
userId: number | string; // 用户ID(store_user表的ID)
|
|
|
+ type: number; // 类型:0表示查询所有
|
|
|
}) => {
|
|
|
- return httpStore.get(PORT_NONE + `/life-blacklist/blackListByUserId`, params);
|
|
|
+ return httpApi.get(`alienStore/life-blacklist/blackListByUserId`, params, { loading: false });
|
|
|
+ // return httpStore.get( `/life-blacklist/blackListByUserId`, params);
|
|
|
};
|
|
|
|
|
|
// 取消拉黑
|
|
|
@@ -258,7 +261,8 @@ export const unblockUser = (params: {
|
|
|
blockerId: number | string; // 拉黑方ID
|
|
|
blockerType: number; // 拉黑方类型:1商户,2用户
|
|
|
}) => {
|
|
|
- return httpStore.post(PORT_NONE + `/life-blacklist/cancelBlacklist`, params);
|
|
|
+ return httpApi.post(`alienStore/life-blacklist/cancelBlacklist`, params, { loading: false });
|
|
|
+ // return httpStore.post(PORT_NONE + `/life-blacklist/cancelBlacklist`, params);
|
|
|
};
|
|
|
|
|
|
// 获取评论列表
|