typings.d.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. declare namespace GROUP_CHAT_CREATE {
  2. interface corpUsersProps {
  3. corpUserId: string,
  4. name: string,
  5. corpName: string,
  6. corpId: string,
  7. }
  8. interface SettingsProps {
  9. corpUsers?: corpUsersProps[]; // 企微号列表
  10. bizType?: string; // 业务类型
  11. platform?: string; // 书城
  12. channel?: string; // 渠道
  13. templateProductId?: string; // 适用产品
  14. strategyDTO?: { [x: string]: any };
  15. }
  16. interface DispatchGroupChatCreate {
  17. settings: SettingsProps
  18. setSettings: React.Dispatch<React.SetStateAction<SettingsProps>>
  19. onPreviewReset: () => void
  20. bookPlatForm: TASK_CREATE.BookPlatFormProps[]
  21. bookList: TASK_CREATE.BookListProps[]
  22. }
  23. interface FoundationProps<T> extends TASK_CREATE.DefaultProps, TASK_CREATE.DefaultChangeProps<T> {
  24. value?: { [x: string]: any };
  25. }
  26. interface AddGroupObjectProps {
  27. bookPlatForm: TASK_CREATE.BookPlatFormProps[]
  28. bookList: TASK_CREATE.BookListProps[]
  29. value?: { [x: string]: any }[];
  30. onChange?: (value: { [x: string]: any }[]) => void;
  31. }
  32. interface ShowGroupUserTableProps {
  33. bookPlatForm: TASK_CREATE.BookPlatFormProps[]
  34. bookList: TASK_CREATE.BookListProps[]
  35. value: { [x: string]: any }[];
  36. handleEdit?: (data: { [x: string]: any }) => void
  37. handleDelete?: (id: number) => void
  38. isPreview?: boolean
  39. }
  40. interface AddGroupObjectModalProps {
  41. initialValues?: any;
  42. onChange?: (value: { [x: string]: any }[]) => void;
  43. visible?: boolean;
  44. onClose?: () => void;
  45. }
  46. }