typings.d.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. declare namespace ROBOT_CHAT_CREATE {
  2. interface DispatchRobotChatCreate {
  3. settings: SettingsProps
  4. setSettings: React.Dispatch<React.SetStateAction<SettingsProps>>
  5. onPreviewReset: () => void
  6. bookPlatForm: TASK_CREATE.BookPlatFormProps[]
  7. bookList: TASK_CREATE.BookListProps[]
  8. mpList: DefaultOptionType[]
  9. corpList: DefaultOptionType[]
  10. }
  11. // 官方群发创建参数配置
  12. interface SettingsProps {
  13. mpAccount?: MpAccountProps[];
  14. bizType?: string; // 业务类型
  15. platform?: string; // 书城
  16. channel?: string; // 渠道
  17. templateProductId?: string; // 适用产品
  18. strategyDTO?: { [x: string]: any };
  19. }
  20. interface SettingsSendObjectProps {
  21. mpList: DefaultOptionType[]
  22. corpList: DefaultOptionType[]
  23. value?: { [x: string]: any }[];
  24. onChange?: (value: { [x: string]: any }[]) => void;
  25. }
  26. interface AddSendObjectProps {
  27. mpList: DefaultOptionType[]
  28. corpList: DefaultOptionType[]
  29. initialValues?: any;
  30. onChange?: (value: { [x: string]: any }) => void;
  31. visible?: boolean;
  32. onClose?: () => void;
  33. }
  34. interface ShowSendObjectTable {
  35. mpList: DefaultOptionType[]
  36. corpList: DefaultOptionType[]
  37. data: { [x: string]: any }[]
  38. isPreview?: boolean
  39. handleEdit?: (data: { [x: string]: any }) => void
  40. handleDelete?: (id: number) => void
  41. }
  42. }