error handler + login

This commit is contained in:
2022-10-15 22:04:27 +02:00
parent b2024bf4aa
commit f6a7415884
15 changed files with 197 additions and 43 deletions

View File

@ -2,7 +2,7 @@ import { EntityInfo } from './entity';
export type UserInfo = {
uuid: string;
name: string;
username: string;
};
export type UserInfoWithPassword = {
@ -14,11 +14,14 @@ export type User = UserInfo & EntityInfo;
export type UserWithPassword = UserInfoWithPassword & EntityInfo;
export type CreateUserBody = {
name: string;
username: string;
password: string;
};
export type LoginUserBody = CreateUserBody;
export type LoginUserBody = {
username: string;
password: string;
};
export type UserCtor = Partial<User>;