251210:1709 Frontend: reeactor organization and run build
Some checks failed
Spec Validation / validate-markdown (push) Has been cancelled
Spec Validation / validate-diagrams (push) Has been cancelled
Spec Validation / check-todos (push) Has been cancelled

This commit is contained in:
admin
2025-12-10 17:09:11 +07:00
parent aa96cd90e3
commit c8a0f281ef
140 changed files with 3780 additions and 1473 deletions

View File

@@ -5,44 +5,52 @@ export interface Role {
}
export interface UserOrganization {
organization_id: number;
org_code: string;
org_name: string;
org_name_th?: string;
organizationId: number;
orgCode: string;
orgName: string;
orgNameTh?: string;
}
export interface User {
user_id: number;
userId: number;
username: string;
email: string;
first_name: string;
last_name: string;
is_active: boolean;
line_id?: string;
primary_organization_id?: number;
firstName: string;
lastName: string;
isActive: boolean;
lineId?: string;
primaryOrganizationId?: number;
organization?: UserOrganization;
roles?: Role[];
created_at?: string;
updated_at?: string;
// Security fields (from backend v1.5.1)
failedAttempts: number;
lockedUntil?: string;
lastLoginAt?: string;
// Audit columns
createdAt?: string;
updatedAt?: string;
}
export interface CreateUserDto {
username: string;
email: string;
first_name: string;
last_name: string;
firstName: string;
lastName: string;
password?: string;
is_active: boolean;
line_id?: string;
primary_organization_id?: number;
role_ids: number[];
isActive: boolean;
lineId?: string;
primaryOrganizationId?: number;
roleIds: number[];
}
export interface UpdateUserDto extends Partial<CreateUserDto> {}
export type UpdateUserDto = Partial<CreateUserDto>;
export interface SearchUserDto {
page?: number;
limit?: number;
search?: string;
role_id?: number;
roleId?: number;
primaryOrganizationId?: number;
}