error handler + login
This commit is contained in:
@ -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>;
|
||||
|
||||
|
Reference in New Issue
Block a user