Build on the developer machine without Docker, commit dist/, and run on the server with Dockerfile.dist plus compose env_file. Co-authored-by: Cursor <cursoragent@cursor.com>
62 lines
1.9 KiB
TypeScript
62 lines
1.9 KiB
TypeScript
import { AdminUsersService } from './admin-users.service';
|
|
import { CreateAdminUserDto, SetAdminActiveDto, UpdateAdminUserDto } from './dto/admin-user.dto';
|
|
export declare class AdminUsersController {
|
|
private readonly adminUsersService;
|
|
constructor(adminUsersService: AdminUsersService);
|
|
findAll(): Promise<{
|
|
id: string;
|
|
fullName: string;
|
|
phone: string;
|
|
email: string;
|
|
role: import("@prisma/client").$Enums.AdminRole;
|
|
isActive: boolean;
|
|
lastLoginAt: string | null;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}[]>;
|
|
findOne(id: string): Promise<{
|
|
id: string;
|
|
fullName: string;
|
|
phone: string;
|
|
email: string;
|
|
role: import("@prisma/client").$Enums.AdminRole;
|
|
isActive: boolean;
|
|
lastLoginAt: string | null;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}>;
|
|
create(dto: CreateAdminUserDto): Promise<{
|
|
id: string;
|
|
fullName: string;
|
|
phone: string;
|
|
email: string;
|
|
role: import("@prisma/client").$Enums.AdminRole;
|
|
isActive: boolean;
|
|
lastLoginAt: string | null;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}>;
|
|
update(id: string, dto: UpdateAdminUserDto): Promise<{
|
|
id: string;
|
|
fullName: string;
|
|
phone: string;
|
|
email: string;
|
|
role: import("@prisma/client").$Enums.AdminRole;
|
|
isActive: boolean;
|
|
lastLoginAt: string | null;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}>;
|
|
setActive(id: string, dto: SetAdminActiveDto): Promise<{
|
|
id: string;
|
|
fullName: string;
|
|
phone: string;
|
|
email: string;
|
|
role: import("@prisma/client").$Enums.AdminRole;
|
|
isActive: boolean;
|
|
lastLoginAt: string | null;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}>;
|
|
}
|