FEAT => 本次更新项目为:contentLibraries
This commit is contained in:
@@ -54,4 +54,6 @@ export const defFormData: FormData = {
|
|||||||
deveiceGroupsOptions: [],
|
deveiceGroupsOptions: [],
|
||||||
wechatGroups: [],
|
wechatGroups: [],
|
||||||
wechatGroupsOptions: [],
|
wechatGroupsOptions: [],
|
||||||
|
contentGroups: [],
|
||||||
|
contentGroupsOptions: [],
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -71,6 +71,8 @@ export default function NewPlan() {
|
|||||||
deveiceGroupsOptions: detail.deveiceGroupsOptions ?? [],
|
deveiceGroupsOptions: detail.deveiceGroupsOptions ?? [],
|
||||||
wechatGroups: detail.wechatGroups ?? [],
|
wechatGroups: detail.wechatGroups ?? [],
|
||||||
wechatGroupsOptions: detail.wechatGroupsOptions ?? [],
|
wechatGroupsOptions: detail.wechatGroupsOptions ?? [],
|
||||||
|
contentGroups: detail.contentGroups ?? [],
|
||||||
|
contentGroupsOptions: detail.contentGroupsOptions ?? [],
|
||||||
status: detail.status ?? 0,
|
status: detail.status ?? 0,
|
||||||
messagePlans: detail.messagePlans ?? [],
|
messagePlans: detail.messagePlans ?? [],
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -58,6 +58,8 @@ export interface MessageContentItem {
|
|||||||
groupIds?: string[]; // 改为数组以支持GroupSelection组件
|
groupIds?: string[]; // 改为数组以支持GroupSelection组件
|
||||||
groupOptions?: any[]; // 添加群选项数组
|
groupOptions?: any[]; // 添加群选项数组
|
||||||
linkUrl?: string;
|
linkUrl?: string;
|
||||||
|
coverImage?: string;
|
||||||
|
[key: string]: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MessageContentGroup {
|
export interface MessageContentGroup {
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ const NewMomentsSync: React.FC = () => {
|
|||||||
const params = {
|
const params = {
|
||||||
name: formData.taskName,
|
name: formData.taskName,
|
||||||
deveiceGroups: formData.deveiceGroups,
|
deveiceGroups: formData.deveiceGroups,
|
||||||
contentLibraries: formData.contentGroups.map((lib: any) => lib.id),
|
contentGroups: formData.contentGroups.map((lib: any) => lib.id),
|
||||||
syncInterval: formData.syncInterval,
|
syncInterval: formData.syncInterval,
|
||||||
syncCount: formData.syncCount,
|
syncCount: formData.syncCount,
|
||||||
syncType: formData.syncType, // 账号类型真实传参
|
syncType: formData.syncType, // 账号类型真实传参
|
||||||
|
|||||||
Reference in New Issue
Block a user