typings.d.ts 1.7 KB

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