更新代码

This commit is contained in:
chfei committed 2026-11-13 19:19:33 +08:00
1 parent 127fc22de5
commit 45829fa267
26 files changed
+139 -90

No files matched your search

@@ -0,0 +1,3 @@
namespace Store.Management.Models;
public sealed record CurrentUser(string UserName, string? NickName);
@@ -0,0 +1,8 @@
namespace Store.Management.Models;
public sealed class LoginResult
{
public string TokenType { get; init; } = "Bearer";
public string Token { get; init; } = "";
public uint ExpiresInMinutes { get; init; }
}
@@ -0,0 +1,3 @@
<Project Sdk="Microsoft.NET.Sdk">
</Project>
@@ -0,0 +1,7 @@
namespace Store.Management.Models;
public enum UserAdminLevel : short
{
[System.ComponentModel.Description("普通用户")] Normal = 0,
[System.ComponentModel.Description("超级管理员")] SuperAdmin = 1
}
@@ -0,0 +1,9 @@
namespace Store.Management.Models;
public enum UserGroup : byte
{
/// <summary>主号。</summary>
[System.ComponentModel.Description("主号")] MainAccount = 3,
/// <summary>客服。</summary>
[System.ComponentModel.Description("客服")] CustomerService = 4,
}
@@ -0,0 +1,24 @@
namespace Store.Management.Models;
/// <summary>管理端当前使用的用户资料字段;不接收密码。</summary>
public sealed class UserInfo
{
public int Id { get; init; }
public string UserName { get; init; } = "";
public string? NickName { get; init; }
public string? Mobile { get; init; }
public string? CompanyName { get; init; }
public string? Notes { get; init; }
public string? ParentUserName { get; init; }
public int GroupId { get; init; }
public UserAdminLevel? SaLevel { get; init; }
public string? OemId { get; init; }
public string? Authority { get; init; }
public int ShopPointsPerMonth { get; init; }
public decimal? PostagePerOrder { get; init; }
public decimal? RefundPostagePerOrder { get; init; }
public decimal? GiftOemAmountPerOrder { get; init; }
public decimal? SyncLogisticsPerOrder { get; init; }
public decimal Points { get; init; }
public decimal? Balance { get; init; }
}