feat(reset): 以构造器模式重构
- 加了大文件传输自定义分片协议 BREAKING CHANGES: 0.1.0(latest)
This commit is contained in:
@@ -1,53 +1,14 @@
|
||||
import { NotificationType } from './enum';
|
||||
|
||||
// 最小用户信息
|
||||
export interface User{
|
||||
id: string;
|
||||
username: string;
|
||||
}
|
||||
|
||||
// 认证
|
||||
export interface LoginRequest{
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
|
||||
export interface LoginResponse{
|
||||
export interface UserProfile{
|
||||
user: User;
|
||||
sessionId: string;
|
||||
avatar: string;
|
||||
introduction: string;
|
||||
level: string;
|
||||
}
|
||||
|
||||
export interface RegisterRequest {
|
||||
username: string;
|
||||
email: string;
|
||||
password: string;
|
||||
}
|
||||
|
||||
export interface RegisterResponse {
|
||||
user: User;
|
||||
sessionId: string;
|
||||
}
|
||||
|
||||
export interface ChangePasswordRequest { // 暂时用不到
|
||||
oldPassword: string;
|
||||
newPassword: string;
|
||||
}
|
||||
|
||||
// 目前只用得到session
|
||||
// export interface RefreshTokenRequest {
|
||||
// sessionId: string;
|
||||
// }
|
||||
|
||||
// export interface RefreshTokenResponse {
|
||||
// sessionId: string;
|
||||
// }
|
||||
|
||||
// 用户通知(暂时用不到)
|
||||
export interface UserNotification {
|
||||
id: string;
|
||||
userId: string;
|
||||
type: NotificationType;
|
||||
content: string;
|
||||
isRead: boolean;
|
||||
createdAt: Date;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user