typings.d.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. declare namespace OFFICIAL_CHAT_CREATE {
  2. interface DispatchOfficialChatCreate {
  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. bizType?: string; // 业务类型
  14. platform?: string; // 书城
  15. channel?: string; // 渠道
  16. templateProductId?: string; // 适用产品
  17. strategyDTO?: { [x: string]: any };
  18. }
  19. interface SettingsSendObjectProps {
  20. mpList: DefaultOptionType[]
  21. corpList: DefaultOptionType[]
  22. value?: { [x: string]: any }[];
  23. onChange?: (value: { [x: string]: any }[]) => void;
  24. }
  25. interface AddSendObjectProps {
  26. mpList: DefaultOptionType[]
  27. corpList: DefaultOptionType[]
  28. initialValues?: any;
  29. onChange?: (value: { [x: string]: any }) => void;
  30. visible?: boolean;
  31. onClose?: () => void;
  32. }
  33. interface ShowSendObjectTable {
  34. mpList: DefaultOptionType[]
  35. corpList: DefaultOptionType[]
  36. data: { [x: string]: any }[]
  37. isPreview?: boolean
  38. handleEdit?: (data: { [x: string]: any }) => void
  39. handleDelete?: (id: number) => void
  40. }
  41. }