typings.d.ts 1.8 KB

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