|
@@ -91,3 +91,39 @@ class LoginResult {
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+class SignInRequest {
|
|
|
+ final String userName;
|
|
|
+ final String secretPassword;
|
|
|
+ final String? phone;
|
|
|
+ final String? email;
|
|
|
+ final String? nickName;
|
|
|
+ final String? fullName;
|
|
|
+ final String? headImageToken;
|
|
|
+ final String? lastIp;
|
|
|
+
|
|
|
+ SignInRequest({
|
|
|
+ required this.userName,
|
|
|
+ required this.secretPassword,
|
|
|
+ this.phone,
|
|
|
+ this.email,
|
|
|
+ this.nickName,
|
|
|
+ this.fullName,
|
|
|
+ this.headImageToken,
|
|
|
+ this.lastIp,
|
|
|
+ });
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ map['UserName'] = userName;
|
|
|
+ map['SecretPassword'] = secretPassword;
|
|
|
+ if (phone != null && phone!.isNotEmpty) map['Phone'] = phone;
|
|
|
+ if (email != null && email!.isNotEmpty) map['Email'] = email;
|
|
|
+ if (nickName != null && nickName!.isNotEmpty) map['NickName'] = nickName;
|
|
|
+ if (fullName != null && fullName!.isNotEmpty) map['FullName'] = fullName;
|
|
|
+ if (headImageToken != null && headImageToken!.isNotEmpty)
|
|
|
+ map['HeadImageToken'] = headImageToken;
|
|
|
+ if (lastIp != null && lastIp!.isNotEmpty) map['LastIp'] = lastIp;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|