Browse Source

add IUserApiData

visuddhinanda 3 years ago
parent
commit
d5dde6bd76
1 changed files with 15 additions and 0 deletions
  1. 15 0
      dashboard/src/components/api/Auth.ts

+ 15 - 0
dashboard/src/components/api/Auth.ts

@@ -6,6 +6,21 @@ export interface IUserRequest {
   nickName?: string;
   avatar?: string;
 }
+export interface IUserApiData {
+  id?: string;
+  userName?: string;
+  nickName?: string;
+  avatar?: string;
+}
+export interface IUserListResponse {
+  ok: boolean;
+  message: string;
+  data: {
+    rows: IUserApiData[];
+    count: number;
+  };
+}
+
 export interface IUserApiResponse {
   id: string;
   userName: string;