after refactor cleanup
This commit is contained in:
12
DiunaBI.Application/DTOModels/Common/PagedResult.cs
Normal file
12
DiunaBI.Application/DTOModels/Common/PagedResult.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace DiunaBI.Application.DTOModels.Common;
|
||||
|
||||
public class PagedResult<T>
|
||||
{
|
||||
public List<T> Items { get; set; } = new();
|
||||
public int TotalCount { get; set; }
|
||||
public int PageSize { get; set; }
|
||||
public int Page { get; set; }
|
||||
public int TotalPages => (int)Math.Ceiling(TotalCount / (double)PageSize);
|
||||
public bool HasPreviousPage => Page > 1;
|
||||
public bool HasNextPage => Page < TotalPages;
|
||||
}
|
||||
37
DiunaBI.Application/DTOModels/LayerDto.cs
Normal file
37
DiunaBI.Application/DTOModels/LayerDto.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
namespace DiunaBI.Application.DTOModels;
|
||||
|
||||
public class LayerDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public int Number { get; set; }
|
||||
public string? Name { get; set; }
|
||||
public LayerType Type { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime ModifiedAt { get; set; }
|
||||
public Guid CreatedById { get; set; }
|
||||
public Guid ModifiedById { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
public bool IsCancelled { get; set; }
|
||||
public Guid? ParentId { get; set; }
|
||||
|
||||
// Navigation properties
|
||||
public List<RecordDto>? Records { get; set; }
|
||||
public UserDto? CreatedBy { get; set; }
|
||||
public UserDto? ModifiedBy { get; set; }
|
||||
}
|
||||
|
||||
public enum LayerType
|
||||
{
|
||||
Import,
|
||||
Processed,
|
||||
Administration,
|
||||
Dictionary
|
||||
}
|
||||
|
||||
public class LayerFilterRequest
|
||||
{
|
||||
public string? Search { get; set; }
|
||||
public LayerType? Type { get; set; }
|
||||
public int Page { get; set; } = 1;
|
||||
public int PageSize { get; set; } = 50;
|
||||
}
|
||||
50
DiunaBI.Application/DTOModels/RecordDto.cs
Normal file
50
DiunaBI.Application/DTOModels/RecordDto.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
namespace DiunaBI.Application.DTOModels;
|
||||
|
||||
public class RecordDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string? Code { get; set; }
|
||||
|
||||
public double? Value1 { get; set; }
|
||||
public double? Value2 { get; set; }
|
||||
public double? Value3 { get; set; }
|
||||
public double? Value4 { get; set; }
|
||||
public double? Value5 { get; set; }
|
||||
public double? Value6 { get; set; }
|
||||
public double? Value7 { get; set; }
|
||||
public double? Value8 { get; set; }
|
||||
public double? Value9 { get; set; }
|
||||
public double? Value10 { get; set; }
|
||||
public double? Value11 { get; set; }
|
||||
public double? Value12 { get; set; }
|
||||
public double? Value13 { get; set; }
|
||||
public double? Value14 { get; set; }
|
||||
public double? Value15 { get; set; }
|
||||
public double? Value16 { get; set; }
|
||||
public double? Value17 { get; set; }
|
||||
public double? Value18 { get; set; }
|
||||
public double? Value19 { get; set; }
|
||||
public double? Value20 { get; set; }
|
||||
public double? Value21 { get; set; }
|
||||
public double? Value22 { get; set; }
|
||||
public double? Value23 { get; set; }
|
||||
public double? Value24 { get; set; }
|
||||
public double? Value25 { get; set; }
|
||||
public double? Value26 { get; set; }
|
||||
public double? Value27 { get; set; }
|
||||
public double? Value28 { get; set; }
|
||||
public double? Value29 { get; set; }
|
||||
public double? Value30 { get; set; }
|
||||
public double? Value31 { get; set; }
|
||||
public double? Value32 { get; set; }
|
||||
|
||||
public string? Desc1 { get; set; }
|
||||
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime ModifiedAt { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
|
||||
public Guid CreatedById { get; set; }
|
||||
public Guid ModifiedById { get; set; }
|
||||
public Guid LayerId { get; set; }
|
||||
}
|
||||
8
DiunaBI.Application/DTOModels/UserDto.cs
Normal file
8
DiunaBI.Application/DTOModels/UserDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace DiunaBI.Application.DTOModels;
|
||||
|
||||
public class UserDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string? Username { get; set; }
|
||||
public string? Email { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user