update breadcrumb and create account module

This commit is contained in:
2026-03-11 20:42:15 +03:30
parent d61a5a6250
commit 9bfbef6f64
36 changed files with 570 additions and 130 deletions
@@ -0,0 +1,13 @@
import { TAccountType } from '@/core/constants/accountTypes.const';
export interface IAccountRawResponse {
username: string;
id: number;
}
export interface IAccountResponse extends IAccountRawResponse {}
export interface IAccountRequest {
username: string;
password?: string;
type: TAccountType;
}
@@ -1 +1,2 @@
export * from './accounts_io';
export * from './io';
+11 -10
View File
@@ -1,17 +1,18 @@
import { IRoleResponse } from '@/shared/catalog/roles';
import { TRoles } from '@/core';
export interface IUserRawResponse {
mobileNumber: string;
firstName: string;
lastName: string;
id: number;
role: IRoleResponse;
mobile_number: string;
first_name: string;
last_name: string;
fullname: string;
id: string;
role: TRoles;
}
export interface IUserResponse extends IUserRawResponse {}
export interface IUserRequest {
firstName: string;
lastName: string;
mobileNumber: string;
roleId: number;
first_name: string;
last_name: string;
mobile_number: string;
role: TRoles;
}