index.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import type { FileItem } from '@/views/disaster/types';
  2. interface BasicResponse {
  3. id: number;
  4. disasterType: string;
  5. disasterLevel: string;
  6. pushTime: string;
  7. effectState: number;
  8. isPush: number;
  9. }
  10. export interface WarningInfoListResponse extends BasicResponse {
  11. warnTime: string;
  12. content: string;
  13. }
  14. interface BasicListQuery {
  15. disasterType?: string;
  16. disasterLevel?: string;
  17. }
  18. export interface WarningInfoListQuery extends BasicListQuery {}
  19. export interface DefenseNoticeListQuery extends BasicListQuery {
  20. effectState?: string;
  21. }
  22. export interface DefenseNoticeListResponse extends BasicResponse {
  23. title: string;
  24. }
  25. interface BasicDetailResponse {
  26. userGroupList?: number[];
  27. createUser: string;
  28. realname: string;
  29. }
  30. export interface WarningInfoDetailResponse
  31. extends BasicDetailResponse,
  32. Omit<WarningInfoListResponse, 'effectState' | 'isPush' | 'pushTime'> {
  33. source: string;
  34. }
  35. export interface DefenseNoticeDetailResponse
  36. extends BasicDetailResponse,
  37. Omit<DefenseNoticeListResponse, 'effectState'> {
  38. content: string;
  39. attachmentListRes: FileItem[];
  40. }