модельки раз

This commit is contained in:
Галина Федоренко 2024-04-18 20:50:44 +04:00
parent 0a7031a14a
commit 37383c61c7
7 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,12 @@
namespace LawFimDataModels.Enums
{
public enum CaseStatus
{
Неизвестен = -1,
Принято = 0,
АнализДелаИПодготовкаДокументов = 1,
СлушанияДела = 2,
ЗакрытиеДела = 3
}
}

View File

@ -0,0 +1,7 @@
namespace LawFimDataModels
{
public interface IId
{
int Id { get; }
}
}

View File

@ -0,0 +1,14 @@
using LawFimDataModels.Enums;
namespace LawFimDataModels.Models
{
public interface ICaseModel : IId
{
Dictionary<int, IClientModel> CaseClients { get; }
string Name { get; }
CaseStatus Status { get; }
string CaseType { get; }
DateTime DateCreate { get; }
DateTime? DateImplement { get; }
}
}

View File

@ -0,0 +1,9 @@
namespace LawFimDataModels.Models
{
public interface IClientModel : IId
{
string FIO { get; }
string Phone { get; }
string Email { get; }
}
}

View File

@ -0,0 +1,7 @@
namespace LawFimDataModels.Models
{
public interface IRoleModel : IId
{
string Name { get; }
}
}

View File

@ -0,0 +1,10 @@
namespace LawFimDataModels.Models
{
public interface IUserModel : IId
{
string FIO { get; }
string Email { get; }
string Password { get; }
int RoleId { get; }
}
}

View File

@ -0,0 +1,9 @@
namespace LawFimDataModels.Models
{
public interface IVisitModel : IId
{
Dictionary<int, IClientModel> VisitClients { get; }
DateTime VisitDate { get; }
int HearingId { get; }
}
}