29 lines
518 B
Dart
29 lines
518 B
Dart
class JinzhiUser {
|
|
const JinzhiUser({
|
|
required this.id,
|
|
required this.phone,
|
|
required this.createdAt,
|
|
});
|
|
|
|
final String id;
|
|
final String phone;
|
|
final String createdAt;
|
|
|
|
String get nickname => '金值用户';
|
|
}
|
|
|
|
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;
|
|
}
|