From 59857d80f3571984f636337382625cf328e7080a Mon Sep 17 00:00:00 2001 From: mfnefd Date: Tue, 4 Jun 2024 11:03:49 +0400 Subject: [PATCH] Role interfaces --- DataModels/DataModels.csproj | 4 ---- DataModels/IId.cs | 13 +++++++++++++ DataModels/Models/IRole.cs | 13 +++++++++++++ DataModels/Models/IUser.cs | 18 ++++++++++++++++++ 4 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 DataModels/IId.cs create mode 100644 DataModels/Models/IRole.cs create mode 100644 DataModels/Models/IUser.cs diff --git a/DataModels/DataModels.csproj b/DataModels/DataModels.csproj index c60e651..fa71b7a 100644 --- a/DataModels/DataModels.csproj +++ b/DataModels/DataModels.csproj @@ -6,8 +6,4 @@ enable - - - - diff --git a/DataModels/IId.cs b/DataModels/IId.cs new file mode 100644 index 0000000..8b39a76 --- /dev/null +++ b/DataModels/IId.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DataModels +{ + public interface IId + { + Guid Id { get; } + } +} \ No newline at end of file diff --git a/DataModels/Models/IRole.cs b/DataModels/Models/IRole.cs new file mode 100644 index 0000000..4c294fe --- /dev/null +++ b/DataModels/Models/IRole.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DataModels.Models +{ + public interface IRole : IId + { + string Name { get; } + } +} \ No newline at end of file diff --git a/DataModels/Models/IUser.cs b/DataModels/Models/IUser.cs new file mode 100644 index 0000000..7098f65 --- /dev/null +++ b/DataModels/Models/IUser.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DataModels.Models +{ + public interface IUser : IId + { + string FirstName { get; } + string SecondName { get; } + string PasswordHash { get; } + string Email { get; } + DateTime Birthday { get; } + Guid RoleId { get; } + } +} \ No newline at end of file -- 2.25.1