typings.d.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. interface GroupsProps {
  12. mpAccount?: {
  13. label: string;
  14. value: number;
  15. appid: string; // 公众号appid
  16. }
  17. corp?: any[];
  18. }
  19. // 官方群发创建参数配置
  20. interface SettingsProps {
  21. group?: groupsProps[];
  22. bizType?: string; // 业务类型
  23. platform?: number; // 书城
  24. channel?: string; // 渠道
  25. templateProductId?: string; // 适用产品
  26. strategyDTO?: { [x: string]: any };
  27. }
  28. interface SettingsSendObjectProps {
  29. mpList: DefaultOptionType[]
  30. corpList: DefaultOptionType[]
  31. value?: { [x: string]: any }[];
  32. onChange?: (value: { [x: string]: any }[]) => void;
  33. }
  34. interface AddSendObjectProps {
  35. mpList: DefaultOptionType[]
  36. corpList: DefaultOptionType[]
  37. initialValues?: any;
  38. onChange?: (value: { [x: string]: any }) => void;
  39. visible?: boolean;
  40. onClose?: () => void;
  41. }
  42. interface ShowSendObjectTable {
  43. mpList: DefaultOptionType[]
  44. corpList: DefaultOptionType[]
  45. data: { [x: string]: any }[]
  46. isPreview?: boolean
  47. handleEdit?: (data: { [x: string]: any }) => void
  48. handleDelete?: (id: number) => void
  49. }
  50. }