fixed ui, connected role user, branch user permissions user api
This commit is contained in:
1 parent
d230b12d6a
commit
f00d2abcac
20 files changed
+906
-391
No files matched your search
@@ -2,6 +2,19 @@ import { create } from "zustand";
|
||||
import { persist } from "zustand/middleware";
|
||||
import axios from "axios";
|
||||
import type { ApiSuccessResponse } from "@/lib/api/client";
|
||||
import type { LocalizedText } from "@/features/branches/api/branchesApi";
|
||||
|
||||
export interface AuthUserRole {
|
||||
id: number;
|
||||
code: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface AuthUserBranch {
|
||||
id: number;
|
||||
uniqueCode: string;
|
||||
name: LocalizedText;
|
||||
}
|
||||
|
||||
export interface AuthUser {
|
||||
id?: string | number;
|
||||
@@ -10,8 +23,9 @@ export interface AuthUser {
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
phone?: string;
|
||||
role?: string;
|
||||
role?: AuthUserRole;
|
||||
avatar?: string;
|
||||
branches?: AuthUserBranch[];
|
||||
createdAt?: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user