diff --git a/HardwareShop/HardwareShopDataModels/Enums/PurchaseStatus.cs b/HardwareShop/HardwareShopDataModels/Enums/PurchaseStatus.cs new file mode 100644 index 0000000..b36a07f --- /dev/null +++ b/HardwareShop/HardwareShopDataModels/Enums/PurchaseStatus.cs @@ -0,0 +1,11 @@ +namespace FoodOrdersDataModels.Enums +{ + public enum PurchaseStatus + { + Неизвестен = -1, + Принят = 0, + Выполняется = 1, + Готов = 2, + Выдан = 3 + } +} \ No newline at end of file diff --git a/HardwareShop/HardwareShopDataModels/Enums/UserRole.cs b/HardwareShop/HardwareShopDataModels/Enums/UserRole.cs new file mode 100644 index 0000000..63c95be --- /dev/null +++ b/HardwareShop/HardwareShopDataModels/Enums/UserRole.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HardwareShopDataModels.Enums +{ + public enum UserRole + { + Работник = 1, + Кладовщик = 2, + } +} \ No newline at end of file diff --git a/HardwareShop/HardwareShopDataModels/IId.cs b/HardwareShop/HardwareShopDataModels/IId.cs new file mode 100644 index 0000000..c56b14c --- /dev/null +++ b/HardwareShop/HardwareShopDataModels/IId.cs @@ -0,0 +1,7 @@ +namespace HardwareShopDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/HardwareShop/HardwareShopDataModels/Models/IBuildModel.cs b/HardwareShop/HardwareShopDataModels/Models/IBuildModel.cs new file mode 100644 index 0000000..1726cae --- /dev/null +++ b/HardwareShop/HardwareShopDataModels/Models/IBuildModel.cs @@ -0,0 +1,18 @@ +using FoodOrdersDataModels.Enums; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HardwareShopDataModels.Models +{ + public interface IBuildModel + { + decimal Price { get; } + + string BuildName { get; } + + int UserID { get; } + } +} diff --git a/HardwareShop/HardwareShopDataModels/Models/IClientModel.cs b/HardwareShop/HardwareShopDataModels/Models/IClientModel.cs new file mode 100644 index 0000000..a9d6f07 --- /dev/null +++ b/HardwareShop/HardwareShopDataModels/Models/IClientModel.cs @@ -0,0 +1,16 @@ +using HardwareShopDataModels; +using HardwareShopDataModels.Enums; + +namespace FoodOrdersDataModels.Models +{ + public interface IClientModel : IId + { + string Login { get; } + + string Email { get; } + + string Password { get; } + + UserRole Role { get; } + } +} \ No newline at end of file diff --git a/HardwareShop/HardwareShopDataModels/Models/ICommentModel.cs b/HardwareShop/HardwareShopDataModels/Models/ICommentModel.cs new file mode 100644 index 0000000..b663af7 --- /dev/null +++ b/HardwareShop/HardwareShopDataModels/Models/ICommentModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HardwareShopDataModels.Models +{ + public interface ICommentModel + { + string Text { get; } + + int BuildID { get; } + } +} diff --git a/HardwareShop/HardwareShopDataModels/Models/IComponentModel.cs b/HardwareShop/HardwareShopDataModels/Models/IComponentModel.cs new file mode 100644 index 0000000..d498566 --- /dev/null +++ b/HardwareShop/HardwareShopDataModels/Models/IComponentModel.cs @@ -0,0 +1,6 @@ +namespace HardwareShopDataModels.Models +{ + public interface IComponentModel + { + } +} diff --git a/HardwareShop/HardwareShopDataModels/Models/IGoodModel.cs b/HardwareShop/HardwareShopDataModels/Models/IGoodModel.cs new file mode 100644 index 0000000..9fb6b6c --- /dev/null +++ b/HardwareShop/HardwareShopDataModels/Models/IGoodModel.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HardwareShopDataModels.Models +{ + public interface IGoodModel + { + } +} diff --git a/HardwareShop/HardwareShopDataModels/Models/IOrderModel.cs b/HardwareShop/HardwareShopDataModels/Models/IOrderModel.cs new file mode 100644 index 0000000..e97d889 --- /dev/null +++ b/HardwareShop/HardwareShopDataModels/Models/IOrderModel.cs @@ -0,0 +1,6 @@ +namespace HardwareShopDataModels.Models +{ + public interface IOrderModel : IId + { + } +} diff --git a/HardwareShop/HardwareShopDataModels/Models/IPurchaseModel.cs b/HardwareShop/HardwareShopDataModels/Models/IPurchaseModel.cs new file mode 100644 index 0000000..42e81ae --- /dev/null +++ b/HardwareShop/HardwareShopDataModels/Models/IPurchaseModel.cs @@ -0,0 +1,20 @@ +using FoodOrdersDataModels.Enums; + +namespace HardwareShopDataModels.Models +{ + public interface IPurchaseModel : IId + { + decimal Sum { get; } + + PurchaseStatus Status { get; } + + //через "?" обозначается что поле может быть null + DateTime? DatePurchase { get; } + + int UserID { get; } + + Dictionary? PurchaseBuilds { get; } + + Dictionary PurchaseGoods { get; } + } +}