admin/src/Oms.Application/Dtos/Rbac/InternalUserListDtos.cs
zzh e85dfb80b5
All checks were successful
Build and Deploy / deploy (push) Successful in 1m1s
feat: 仓配开放 API 与后台用户启停
新增 warehouseOpenApi(Token/入库/件重尺/红外图),并在 fk_user 支持 IsEnabled 禁用登录。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-13 17:53:00 +08:00

54 lines
1.1 KiB
C#

using System.Text.Json.Serialization;
namespace Oms.Application.Dtos.Rbac;
public class InternalUserListItemDto
{
public string Id { get; set; } = string.Empty;
public string? Name { get; set; }
public string? Account { get; set; }
public string? Email { get; set; }
public string? Avatar { get; set; }
public string? Phone { get; set; }
public string? EmployeeNo { get; set; }
public string? WechatId { get; set; }
public string? OrganizationId { get; set; }
public string? OrganizationName { get; set; }
public DateTime? CreatedAt { get; set; }
/// <summary>
/// 是否启用。
/// </summary>
public bool IsEnabled { get; set; } = true;
public List<InternalUserRoleDto> Roles { get; set; } = [];
}
public class InternalUserRoleDto
{
public string Id { get; set; } = string.Empty;
public string? Name { get; set; }
public string? Code { get; set; }
}
public class InternalUserListResultDto
{
[JsonPropertyName("total")]
public long Total { get; set; }
[JsonPropertyName("items")]
public List<InternalUserListItemDto> Items { get; set; } = [];
}