Тотальный слив сущностей #9

Merged
Marselchii merged 6 commits from sagirovs_part into main 2024-04-28 14:59:32 +04:00
15 changed files with 145 additions and 0 deletions
Showing only changes of commit c0a9953864 - Show all commits

View File

@ -8,6 +8,7 @@ namespace CarCenterDataModels.Enums
{
public enum CarBrand
{
Неизвестно = -1,
Лада = 0,
Тойота = 1,
Опель = 2,

View File

@ -8,6 +8,7 @@ namespace CarCenterDataModels.Enums
{
public enum CarClass
{
Неизвестно = -1,
Седан = 0,
Хетчбек = 1,
Универсал = 2,

View File

@ -8,6 +8,7 @@ namespace CarCenterDataModels.Enums
{
public enum DriveTypes
{
Неизвестно = -1,
Полный = 0,
Передний = 1,
Задний = 2,

View File

@ -8,6 +8,7 @@ namespace CarCenterDataModels.Enums
{
public enum EquipmentPackage
{
Неизвестно = -1,
УлучшенныеТормоза = 0,
ТурбоНабор = 1,
Компрессор = 2,

View File

@ -8,6 +8,7 @@ namespace CarCenterDataModels.Enums
{
public enum HelpDevices
{
Неизвестно = -1,
ABS = 0,
ECS = 1,
ПодушкиБезопасноти = 2,

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CarCenterDataModels.Enums
{
public enum PaymentStatus
{
Неизвестно = -1,
ОжидаетОплаты = 0,
Оплачено = 1,
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CarCenterDataModels.Enums
{
public enum PaymentType
{
Неизвестно = -1,
Безналичная = 0,
Наличные = 1,
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CarCenterDataModels.Enums
{
public enum PresaleStatus
{
Неизвестно = -1,
Выполняется = 0,
Выполнено = 1
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CarCenterDataModels.Enums
{
public enum RequestTypes
{
Неизвестно = -1,
Интерьер = 0
}
}

View File

@ -8,6 +8,7 @@ namespace CarCenterDataModels.Enums
{
public enum TirePackage
{
Неизвестно = -1,
ЗимнийШипы = 0,
ЗимнийЛипучка = 1,
Летний = 2,

View File

@ -8,6 +8,7 @@ namespace CarCenterDataModels.Enums
{
public enum ToolKit
{
Неизвестно = -1,
Чемоданчик = 0,
ЧемоданчикПро = 1,
Наборчик = 2,

View File

@ -0,0 +1,23 @@
using CarCenterDataModels.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CarCenterDataModels.Models
{
public interface IOrderModel : IId
{
PaymentType PaymentType { get; }
PaymentStatus PaymentStatus { get; }
string BuyerFCS { get; }
DateTime PaymentDate { get; }
double Sum { get; }
}
}

View File

@ -0,0 +1,21 @@
using CarCenterDataModels.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CarCenterDataModels.Models
{
public interface IPresaleModel : IId
{
PresaleStatus PresaleStatus { get; }
string Description { get; }
DateTime DueTill { get; }
double Price { get; }
}
}

View File

@ -0,0 +1,16 @@
using CarCenterDataModels.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CarCenterDataModels.Models
{
public interface IRequestModel : IId
{
string Description { get; }
RequestTypes RequestType { get; }
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CarCenterDataModels.Models
{
public interface IWorkerModel : IId
{
string Name { get; }
string Surname { get; }
string? Patronymic { get; }
string Password { get; }
string Email { get; }
long PhoneNumber { get; }
}
}