typings.d.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. groupUsersDTO?: { [x: string]: any };
  16. }
  17. interface DispatchGroupChatCreate {
  18. settings: SettingsProps
  19. setSettings: React.Dispatch<React.SetStateAction<SettingsProps>>
  20. onPreviewReset: () => void
  21. }
  22. interface FoundationProps<T> extends TASK_CREATE.DefaultProps, TASK_CREATE.DefaultChangeProps<T> {
  23. value?: { [x: string]: any };
  24. }
  25. interface AddGroupObjectProps {
  26. value?: { [x: string]: any };
  27. onChange?: (value: any) => void;
  28. }
  29. interface AddGroupObjectModalProps {
  30. value?: { [x: string]: any };
  31. onChange?: (value: any) => void;
  32. visible?: boolean;
  33. onClose?: () => void;
  34. }
  35. }