ff-admin-server/src/command/userCommand.ts

31 lines
505 B
TypeScript
Raw Normal View History

export interface CreateUserCommand {
mail: string;
username: string;
2024-08-25 11:36:19 +00:00
firstname: string;
lastname: string;
secret: string;
2024-10-07 16:09:27 +00:00
isOwner: boolean;
}
2024-09-01 12:55:05 +00:00
export interface UpdateUserCommand {
id: number;
mail: string;
username: string;
firstname: string;
lastname: string;
}
2024-11-21 14:58:47 +00:00
export interface TransferUserOwnerCommand {
fromId: number;
toId: number;
}
2024-09-01 12:55:05 +00:00
export interface UpdateUserRolesCommand {
id: number;
roleIds: Array<number>;
}
export interface DeleteUserCommand {
id: number;
}