feat: 初始化挪移完成
This commit is contained in:
@@ -15,7 +15,7 @@ export interface SceneItem {
|
||||
// 服务器返回的场景列表响应类型
|
||||
export interface ScenesResponse {
|
||||
code: number;
|
||||
msg: string;
|
||||
message: string;
|
||||
data: SceneItem[];
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ export const fetchScenes = async (params: {
|
||||
// 返回一个错误响应
|
||||
return {
|
||||
code: 500,
|
||||
msg: "获取场景列表失败",
|
||||
message: "获取场景列表失败",
|
||||
data: []
|
||||
};
|
||||
}
|
||||
@@ -113,7 +113,7 @@ export const fetchSceneDetail = async (id: string | number): Promise<ApiResponse
|
||||
console.error("Error fetching scene detail:", error);
|
||||
return {
|
||||
code: 500,
|
||||
msg: "获取场景详情失败",
|
||||
message: "获取场景详情失败",
|
||||
data: null
|
||||
};
|
||||
}
|
||||
|
||||
@@ -29,13 +29,13 @@ interface WechatAccountSummary {
|
||||
|
||||
interface WechatAccountSummaryResponse {
|
||||
code: number;
|
||||
msg: string;
|
||||
message: string;
|
||||
data: WechatAccountSummary;
|
||||
}
|
||||
|
||||
interface ServerWechatAccountsResponse {
|
||||
code: number;
|
||||
msg: string;
|
||||
message: string;
|
||||
data: {
|
||||
list: any[];
|
||||
total: number;
|
||||
@@ -75,8 +75,8 @@ export const fetchWechatAccountList = async (params: QueryWechatAccountParams =
|
||||
* 刷新微信账号状态
|
||||
* @returns 刷新结果
|
||||
*/
|
||||
export const refreshWechatAccounts = async (): Promise<{ code: number; msg: string; data: any }> => {
|
||||
return put<{ code: number; msg: string; data: any }>('/v1/wechats/refresh', {});
|
||||
export const refreshWechatAccounts = async (): Promise<{ code: number; message: string; data: any }> => {
|
||||
return put<{ code: number; message: string; data: any }>('/v1/wechats/refresh', {});
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -85,8 +85,8 @@ export const refreshWechatAccounts = async (): Promise<{ code: number; msg: stri
|
||||
* @param targetId 目标微信账号ID
|
||||
* @returns 转移结果
|
||||
*/
|
||||
export const transferWechatFriends = async (sourceId: string | number, targetId: string | number): Promise<{ code: number; msg: string; data: any }> => {
|
||||
return post<{ code: number; msg: string; data: any }>('/v1/wechats/transfer-friends', {
|
||||
export const transferWechatFriends = async (sourceId: string | number, targetId: string | number): Promise<{ code: number; message: string; data: any }> => {
|
||||
return post<{ code: number; message: string; data: any }>('/v1/wechats/transfer-friends', {
|
||||
source_id: sourceId,
|
||||
target_id: targetId
|
||||
});
|
||||
@@ -205,7 +205,7 @@ export interface WechatFriendDetail {
|
||||
|
||||
interface WechatFriendDetailResponse {
|
||||
code: number;
|
||||
msg: string;
|
||||
message: string;
|
||||
data: WechatFriendDetail;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user