111
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/// 用户模型
|
||||
/// 用戶模型
|
||||
class User {
|
||||
final int id;
|
||||
final String username;
|
||||
@@ -62,21 +62,21 @@ class User {
|
||||
};
|
||||
}
|
||||
|
||||
/// 获取头像显示文字(用户名首字母)
|
||||
/// 獲取頭像顯示文字(用戶名首字母)
|
||||
String get avatarText =>
|
||||
username.isNotEmpty ? username.substring(0, 1).toUpperCase() : 'U';
|
||||
|
||||
/// KYC 状态文字
|
||||
/// KYC 狀態文字
|
||||
String get kycStatusText {
|
||||
switch (kycStatus) {
|
||||
case 0:
|
||||
return '未认证';
|
||||
return '未認證';
|
||||
case 1:
|
||||
return '审核中';
|
||||
return '審核中';
|
||||
case 2:
|
||||
return '已认证';
|
||||
return '已認證';
|
||||
case 3:
|
||||
return '认证失败';
|
||||
return '認證失敗';
|
||||
default:
|
||||
return '未知';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user