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
{
///
/// dashboard 网盘用量卡片数据:当前登录用户的类型、头像、已用/总额度(KB)、百分比。
/// 用量取自 dms_file_usage_view(ower_id=本人 且非目录),额度按 user_type 从 appsettings:NetDiskQuota 解析。
///
[TypeScript]
public class StorageUsageData
{
/// 用户类型码:U=未认证 / N=普通 / V=VIP / S=SVIP(名称由前端 i18n 映射)
public string UserType { get; set; } = "";
/// 头像地址(security_user.user_icon_img_path,当前无上传链路多为空,前端占位兜底)
public string AvatarUrl { get; set; } = "";
/// 已用容量(KB)
public long UsedKB { get; set; }
/// 额度总量(KB),0 表示未配置/不限
public long QuotaKB { get; set; }
/// 已用百分比(额度为 0 时记 0;可大于 100 表示超额)
public int Percent { get; set; }
}
}