2026-02-25 14:45:08 +08:00
|
|
|
class SignupStartRequest {
|
|
|
|
|
final String username;
|
|
|
|
|
final String email;
|
|
|
|
|
final String password;
|
2026-02-27 15:22:42 +08:00
|
|
|
final String? inviteCode;
|
2026-02-25 14:45:08 +08:00
|
|
|
|
|
|
|
|
const SignupStartRequest({
|
|
|
|
|
required this.username,
|
|
|
|
|
required this.email,
|
|
|
|
|
required this.password,
|
2026-02-27 15:22:42 +08:00
|
|
|
this.inviteCode,
|
2026-02-25 14:45:08 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
|
|
|
'username': username,
|
|
|
|
|
'email': email,
|
|
|
|
|
'password': password,
|
2026-02-27 15:22:42 +08:00
|
|
|
if (inviteCode != null) 'invite_code': inviteCode,
|
2026-02-25 14:45:08 +08:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class SignupVerifyRequest {
|
|
|
|
|
final String email;
|
|
|
|
|
final String token;
|
|
|
|
|
|
|
|
|
|
const SignupVerifyRequest({required this.email, required this.token});
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => {'email': email, 'token': token};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class SignupResendRequest {
|
|
|
|
|
final String email;
|
|
|
|
|
|
|
|
|
|
const SignupResendRequest({required this.email});
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() => {'email': email};
|
|
|
|
|
}
|