faet:列表做好了,开始做其他的

This commit is contained in:
许永平
2025-07-09 16:22:13 +08:00
parent dfc1637d6a
commit 4367d5a5f3
6 changed files with 776 additions and 625 deletions

View File

@@ -0,0 +1,88 @@
// 朋友圈同步任务状态
export type MomentsSyncStatus = 1 | 2; // 1: 开启, 2: 关闭
// 内容类型
export type ContentType = 'text' | 'image' | 'video' | 'link';
// 同步模式
export type SyncMode = 'auto' | 'manual';
// 朋友圈同步任务
export interface MomentsSyncTask {
id: string;
name: string;
status: MomentsSyncStatus;
deviceCount: number;
targetGroup: string;
syncCount: number;
lastSyncTime: string;
createTime: string;
creator: string;
syncInterval: number;
maxSyncPerDay: number;
timeRange: { start: string; end: string };
contentTypes: ContentType[];
targetTags: string[];
syncMode: SyncMode;
filterKeywords: string[];
contentLib?: string;
devices: string[];
friends: string[];
todaySyncCount: number;
totalSyncCount: number;
updateTime: string;
}
// 创建任务数据
export interface CreateMomentsSyncData {
name: string;
interval: number;
maxSync: number;
startTime: string;
endTime: string;
contentTypes: ContentType[];
devices: string[];
friends?: string[];
syncMode: SyncMode;
targetTags: string[];
filterKeywords: string[];
contentLib?: string;
}
// 更新任务数据
export interface UpdateMomentsSyncData extends CreateMomentsSyncData {
id: string;
}
// 同步记录
export interface SyncRecord {
id: string;
workbenchId: string;
momentsId: string;
snsId: string;
wechatAccountId: string;
wechatFriendId: string;
syncTime: string;
content: string;
resUrls: string[];
momentTime: string;
userName: string;
operatorName: string;
operatorAvatar: string;
friendName: string;
friendAvatar: string;
}
// API 响应格式
export interface ApiResponse<T = any> {
code: number;
msg: string;
data: T;
}
export interface PaginatedResponse<T> {
list: T[];
total: number;
page: number;
limit: number;
}