This commit is contained in:
mmrbnjd
2024-04-17 15:49:34 +03:30
parent f829d80851
commit 3f0a37a08b
27 changed files with 1253 additions and 79 deletions

View File

@@ -0,0 +1,8 @@
namespace Shared.DTOs
{
public class Authentication
{
public string Username { get; set; }
public string Password { get; set; }
}
}

View 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
View 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; }
}
}

View 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; } }
}
}

View 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; }
}
}

View 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; }
}
}

View 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>();
}
}