typings.d.ts 410 B

123456789101112131415161718192021222324252627
  1. export type Response<T> = {
  2. message: 'success' | 'error';
  3. result: PageResult | Record<string, any> | T | T[];
  4. status: number;
  5. timestamp: number;
  6. };
  7. type PageResult = {
  8. pageIndex: number;
  9. pageSize: number;
  10. total: number;
  11. data: T[];
  12. };
  13. type BaseItem = {
  14. id: string;
  15. name: string;
  16. };
  17. type State = {
  18. value: string;
  19. text: string;
  20. };
  21. type EnumData = {
  22. label: string;
  23. value: string;
  24. };