...
This commit is contained in:
8
Shared/DTOs/Authentication.cs
Normal file
8
Shared/DTOs/Authentication.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
public class Authentication
|
||||
{
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
}
|
||||
}
|
12
Shared/DTOs/CompanyAuthenticationDTO.cs
Normal file
12
Shared/DTOs/CompanyAuthenticationDTO.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
public class CompanyAuthenticationDTO
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string? Logo { get; set; }
|
||||
public bool IsAdmin { get; set; }
|
||||
// public ICollection<PermissionAuthenticationDTO> permissions { get; set; } = new List<PermissionAuthenticationDTO>();
|
||||
|
||||
}
|
||||
}
|
17
Shared/DTOs/CompanyDTO.cs
Normal file
17
Shared/DTOs/CompanyDTO.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
public class CompanyDTO
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string? Email { get; set; }
|
||||
public string? Phone { get; set; }
|
||||
public string Mobile { get; set; }
|
||||
public string BranchID { get; set; }
|
||||
public string? EconomicCode { get; set; }
|
||||
public string? UniqeMemory { get; set; }
|
||||
public string? PrivateKey { get; set; }
|
||||
public string? Logo { get; set; }
|
||||
|
||||
}
|
||||
}
|
13
Shared/DTOs/CompanyRegistrationDTO.cs
Normal file
13
Shared/DTOs/CompanyRegistrationDTO.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
public class CompanyRegistrationDTO
|
||||
{
|
||||
[MinLength(5)]
|
||||
public string CompanyName { get; set; }
|
||||
public string FullnameUser { get { return CompanyName; } }
|
||||
public string Mobile { get; set; }
|
||||
public string Username { get { return Mobile; } }
|
||||
}
|
||||
}
|
28
Shared/DTOs/DashBoardDTO.cs
Normal file
28
Shared/DTOs/DashBoardDTO.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
public class AlertDTO
|
||||
{
|
||||
public int Status { get; set; }
|
||||
public string Message { get; set; }
|
||||
public string? Path { get; set; }
|
||||
public string? ViewSize { get; set; }
|
||||
}
|
||||
public class DashBoardDTO
|
||||
{
|
||||
public string? LastLoginDate { get; set; }
|
||||
public List<ServiceInDashBoardDTO> AlistofServices { get; set; }=new List<ServiceInDashBoardDTO>();
|
||||
public List<AlertDTO> Warning { get; set; } = new List<AlertDTO>();
|
||||
public List<AlertDTO> Notifications { get; set; } = new List<AlertDTO>();
|
||||
}
|
||||
public class ServiceInDashBoardDTO
|
||||
{
|
||||
public int PermissionID { get; set; }
|
||||
public string PermissionName { get; set; }
|
||||
public int CalTypeID { get; set; }
|
||||
public string CalTypeTitle { get; set; }
|
||||
public string Total { get; set; }
|
||||
public string Remaining { get; set; }
|
||||
}
|
||||
}
|
11
Shared/DTOs/PermissionAuthenticationDTO.cs
Normal file
11
Shared/DTOs/PermissionAuthenticationDTO.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
public class PermissionAuthenticationDTO
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int ParentID { get; set; }
|
||||
public string Title { get; set; }
|
||||
public bool accessibility { get; set; }
|
||||
public List<PermissionAuthenticationDTO> ChildPermissions { get; set; }
|
||||
}
|
||||
}
|
14
Shared/DTOs/UserAuthenticationDTO.cs
Normal file
14
Shared/DTOs/UserAuthenticationDTO.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Security.Principal;
|
||||
|
||||
namespace Shared.DTOs
|
||||
{
|
||||
public class UserAuthenticationDTO
|
||||
{
|
||||
|
||||
public string FullName { get; set; }
|
||||
public string Token { get; set; }
|
||||
public string Photo { get; set; }
|
||||
public ICollection<CompanyAuthenticationDTO> Companies { get; set; } = new List<CompanyAuthenticationDTO>();
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user