visuddhinanda 2 роки тому
батько
коміт
7d2c2353df
1 змінених файлів з 4 додано та 7 видалено
  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;
   };
   };
 }
 }