Ver código fonte

:fire: IUserApiData

visuddhinanda 2 anos atrás
pai
commit
7d2c2353df
1 arquivos alterados com 4 adições e 7 exclusões
  1. 4 7
      dashboard/src/components/api/Auth.ts

+ 4 - 7
dashboard/src/components/api/Auth.ts

@@ -1,3 +1,5 @@
+import { IUser } from "../auth/User";
+
 export type TRole =
 export type TRole =
   | "owner"
   | "owner"
   | "manager"
   | "manager"
@@ -14,17 +16,12 @@ export interface IUserRequest {
   nickName?: string;
   nickName?: string;
   avatar?: string;
   avatar?: string;
 }
 }
-export interface IUserApiData {
-  id: string;
-  userName: string;
-  nickName: string;
-  avatar?: string;
-}
+
 export interface IUserListResponse {
 export interface IUserListResponse {
   ok: boolean;
   ok: boolean;
   message: string;
   message: string;
   data: {
   data: {
-    rows: IUserApiData[];
+    rows: IUser[];
     count: number;
     count: number;
   };
   };
 }
 }