251209:1453 Frontend: progress nest = UAT & Bug Fixing
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-09 14:53:42 +07:00
parent 8aceced902
commit aa96cd90e3
125 changed files with 11052 additions and 785 deletions

48
frontend/types/user.ts Normal file
View File

@@ -0,0 +1,48 @@
export interface Role {
roleId: number;
roleName: string;
description: string;
}
export interface UserOrganization {
organization_id: number;
org_code: string;
org_name: string;
org_name_th?: string;
}
export interface User {
user_id: number;
username: string;
email: string;
first_name: string;
last_name: string;
is_active: boolean;
line_id?: string;
primary_organization_id?: number;
organization?: UserOrganization;
roles?: Role[];
created_at?: string;
updated_at?: string;
}
export interface CreateUserDto {
username: string;
email: string;
first_name: string;
last_name: string;
password?: string;
is_active: boolean;
line_id?: string;
primary_organization_id?: number;
role_ids: number[];
}
export interface UpdateUserDto extends Partial<CreateUserDto> {}
export interface SearchUserDto {
page?: number;
limit?: number;
search?: string;
role_id?: number;
}