ow
This commit is contained in:
1 parent
9b01c4a57a
commit
6417562c4f
37 files changed
+2767
-202
No files matched your search
@@ -0,0 +1,33 @@
|
||||
using CloudBuilder.Core.Authorization;
|
||||
using CloudBuilder.Core.Service;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CloudBuilder.Master.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// dashboard 网盘用量卡片数据:当前登录用户的类型、头像、已用/总额度(KB)、百分比。
|
||||
/// 用量取自 dms_file_usage_view(ower_id=本人 且非目录),额度按 user_type 从 appsettings:NetDiskQuota 解析。
|
||||
/// </summary>
|
||||
[TypeScript]
|
||||
public class StorageUsageData
|
||||
{
|
||||
/// <summary>用户类型码:U=未认证 / N=普通 / V=VIP / S=SVIP(名称由前端 i18n 映射)</summary>
|
||||
public string UserType { get; set; } = "";
|
||||
|
||||
/// <summary>头像地址(security_user.user_icon_img_path,当前无上传链路多为空,前端占位兜底)</summary>
|
||||
public string AvatarUrl { get; set; } = "";
|
||||
|
||||
/// <summary>已用容量(KB)</summary>
|
||||
public long UsedKB { get; set; }
|
||||
|
||||
/// <summary>额度总量(KB),0 表示未配置/不限</summary>
|
||||
public long QuotaKB { get; set; }
|
||||
|
||||
/// <summary>已用百分比(额度为 0 时记 0;可大于 100 表示超额)</summary>
|
||||
public int Percent { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user