Files
goGin/frontend/types/user.ts
Beyhan Oğur 2a5b661443 first commit
2026-04-26 21:46:42 +03:00

27 lines
481 B
TypeScript

export interface User {
id: number;
username: string;
email: string;
email_verified: boolean;
is_admin: boolean;
deleted_at?: string;
}
export interface UserListResponse {
items: User[] | null;
page: number;
per_page: number;
total: number;
}
export interface UserResponse {
data: User;
}
export interface UserPayload {
username: string;
email: string;
is_admin?: boolean;
password?: string; // Optional for updates
}