feat:参照研听的基础工程
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
class JinzhiUser {
|
||||
const JinzhiUser({
|
||||
required this.phone,
|
||||
required this.nickname,
|
||||
required this.createdAt,
|
||||
});
|
||||
|
||||
final String phone;
|
||||
final String nickname;
|
||||
final DateTime createdAt;
|
||||
}
|
||||
|
||||
sealed class AuthState {
|
||||
const AuthState();
|
||||
}
|
||||
|
||||
class GuestAuthState extends AuthState {
|
||||
const GuestAuthState();
|
||||
}
|
||||
|
||||
class LoggedInAuthState extends AuthState {
|
||||
const LoggedInAuthState({required this.user, required this.token});
|
||||
|
||||
final JinzhiUser user;
|
||||
final String token;
|
||||
}
|
||||
Reference in New Issue
Block a user