typings.d.ts 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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?: number; // 书城
  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. strategyList: any
  36. index: number
  37. value?: { [x: string]: any }[];
  38. onChange?: (value: { [x: string]: any }[]) => void;
  39. onCopy?: (data: any, copyIndex: number) => void
  40. }
  41. interface ShowGroupUserTableProps {
  42. bookPlatForm: TASK_CREATE.BookPlatFormProps[]
  43. bookList: TASK_CREATE.BookListProps[]
  44. value: { [x: string]: any }[];
  45. handleEdit?: (data: { [x: string]: any }) => void
  46. handleDelete?: (id: number) => void
  47. isPreview?: boolean
  48. handleCopy?: (data: any) => void
  49. }
  50. interface AddGroupObjectModalProps {
  51. initialValues?: any;
  52. onChange?: (value: { [x: string]: any }[]) => void;
  53. visible?: boolean;
  54. onClose?: () => void;
  55. }
  56. }