diff --git a/Mango.Database.Test/UserDalTests.cs b/Mango.Database.Test/UserDalTests.cs index 89ddaae..2b4bb38 100644 --- a/Mango.Database.Test/UserDalTests.cs +++ b/Mango.Database.Test/UserDalTests.cs @@ -1,10 +1,16 @@ using AyCode.Database.Tests.Users; using AyCode.Entities.Users; +using Mango.Database.DataLayers.Users; +using Mango.Database.DbContexts.Users; +using Mango.Entities.Addresses; +using Mango.Entities.Companies; +using Mango.Entities.Profiles; +using Mango.Entities.Users; using Microsoft.ApplicationInsights; namespace Mango.Database.Test; -//[TestClass] -//public class UserDalTests : AcUserDalTestBase -//{ -//} \ No newline at end of file +[TestClass] +public class UserDalTests : AcUserDalTestBase +{ +} \ No newline at end of file diff --git a/Mango.Database/DataLayers/DalBase.cs b/Mango.Database/DataLayers/DalBase.cs new file mode 100644 index 0000000..7d95e9a --- /dev/null +++ b/Mango.Database/DataLayers/DalBase.cs @@ -0,0 +1,13 @@ +using AyCode.Database.DataLayers; +using AyCode.Database.DbContexts; +using Mango.Database.DbContexts; +using Microsoft.EntityFrameworkCore.Storage; + +namespace Mango.Database.DataLayers; + +public class DalBase : AcDalBase, IDalBase where TDbContext : DbContextBase +{ + //public DalBase() : base(new TransferDestinationDbContext("DeveloperDbConnection")) + //{ + // Ctx.Database. } +} \ No newline at end of file diff --git a/Mango.Database/DataLayers/IDalBase.cs b/Mango.Database/DataLayers/IDalBase.cs new file mode 100644 index 0000000..9670c5e --- /dev/null +++ b/Mango.Database/DataLayers/IDalBase.cs @@ -0,0 +1,10 @@ +using AyCode.Database.DataLayers; +using Mango.Database.DbContexts; + +namespace Mango.Database.DataLayers; + +public interface IDalBase : IAcDalBase +{ } + +public interface IDalBase : IAcDalBase, IAcDalBase where TDbContext : DbContextBase +{ } \ No newline at end of file diff --git a/Mango.Database/DataLayers/Users/UserDal.cs b/Mango.Database/DataLayers/Users/UserDal.cs new file mode 100644 index 0000000..9c8251c --- /dev/null +++ b/Mango.Database/DataLayers/Users/UserDal.cs @@ -0,0 +1,44 @@ +using AyCode.Database.DataLayers.Users; +using Mango.Database.DbContexts.Users; +using Mango.Entities.Addresses; +using Mango.Entities.Companies; +using Mango.Entities.Profiles; +using Mango.Entities.Users; +using Microsoft.EntityFrameworkCore; + +namespace Mango.Database.DataLayers.Users +{ + public class UserDal : AcUserDalBase, IDalBase + { + public UserDal() : base() + { + } + + public UserDal(UserDbContext context) + { + } + + public async Task CreateUserAsync(User user) + { + Context.Users.Add(user); + Console.WriteLine($@"Saving user to db {user.Id}, {user.EmailAddress}, {user.PhoneNumber}, {user.Password}"); + return await Context.SaveChangesAsync() > 0; + } + + + public async Task UpdateUserAsync(User user) + { + var existingUser = await Context.Users.CountAsync(u => u.EmailAddress == user.EmailAddress); + if (existingUser == 1) + { + //user.Modified = DateTime.UtcNow; //ezt nem kell megadni, a háttérben ezt magától megcsinálja a DbContextBase - J. + Context.Users.Update(user); + return await Context.SaveChangesAsync() > 0; + } + else + { + throw new Exception("User not found"); + } + } + } +} diff --git a/Mango.Database/DbContexts/Users/IUserDbContext.cs b/Mango.Database/DbContexts/Users/IUserDbContext.cs new file mode 100644 index 0000000..5cc9a5e --- /dev/null +++ b/Mango.Database/DbContexts/Users/IUserDbContext.cs @@ -0,0 +1,13 @@ +using AyCode.Database.DbContexts.Users; +using Mango.Database.DbSets.Addresses; +using Mango.Database.DbSets.Emails; +using Mango.Database.DbSets.Users; +using Mango.Entities.Addresses; +using Mango.Entities.Companies; +using Mango.Entities.Profiles; +using Mango.Entities.Users; + +namespace Mango.Database.DbContexts.Users; + +public interface IUserDbContext : IAcUserDbContextBase, IUserDbSet, IAddressDbSet, IEmailMessageDbSet +{ } \ No newline at end of file diff --git a/Mango.Database/DbContexts/Users/UserDbContext.cs b/Mango.Database/DbContexts/Users/UserDbContext.cs new file mode 100644 index 0000000..7f8af21 --- /dev/null +++ b/Mango.Database/DbContexts/Users/UserDbContext.cs @@ -0,0 +1,52 @@ +using Mango.Entities.Addresses; +using Mango.Entities.Messages.Emails; +using Mango.Entities.Profiles; +using Mango.Entities.Users; +using Microsoft.EntityFrameworkCore; + +namespace Mango.Database.DbContexts.Users +{ + public class UserDbContext : DbContextBase, IUserDbContext + { + public DbSet Users { get; set; } + public DbSet UserTokens { get; set; } + + public DbSet Profiles { get; set; } + public DbSet
Addresses { get; set; } + + public DbSet EmailMessages { get; set; } + + public UserDbContext() //: this(string.Empty) + { + + } + + public UserDbContext(DbContextOptions options) //: this(string.Empty) + { + + } + + public UserDbContext(string name) : base(name) + { + } + + public UserDbContext(DbContextOptions options, string name) : base(options, name) + { + } + + protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) + { + base.OnConfiguring(optionsBuilder); + } + + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + base.OnModelCreating(modelBuilder); + + //new UserEntityTypeDefaultConfiguration().Configure(modelBuilder.Entity()); + //new ProfileEntityTypeConfigurations().Configure(modelBuilder.Entity()); + + //new EmailMessageEntityTypeDefaultConfigurations().Configure(modelBuilder.Entity()); + } + } +} diff --git a/Mango.Database/DbSets/Addresses/IAddressDbSet.cs b/Mango.Database/DbSets/Addresses/IAddressDbSet.cs new file mode 100644 index 0000000..72b2a6f --- /dev/null +++ b/Mango.Database/DbSets/Addresses/IAddressDbSet.cs @@ -0,0 +1,9 @@ +using AyCode.Database.DbSets.Addresses; +using Mango.Entities.Addresses; + +namespace Mango.Database.DbSets.Addresses; + +public interface IAddressDbSet : IAcAddressDbSetBase
+{ + +} \ No newline at end of file diff --git a/Mango.Database/DbSets/Emails/EmailMessageDbSetExtension.cs b/Mango.Database/DbSets/Emails/EmailMessageDbSetExtension.cs new file mode 100644 index 0000000..5cfa408 --- /dev/null +++ b/Mango.Database/DbSets/Emails/EmailMessageDbSetExtension.cs @@ -0,0 +1,5 @@ +namespace Mango.Database.DbSets.Emails; + +public static class EmailMessageDbSetExtension +{ +} \ No newline at end of file diff --git a/Mango.Database/DbSets/Emails/IEmailMessageDbSet.cs b/Mango.Database/DbSets/Emails/IEmailMessageDbSet.cs new file mode 100644 index 0000000..0c91f12 --- /dev/null +++ b/Mango.Database/DbSets/Emails/IEmailMessageDbSet.cs @@ -0,0 +1,7 @@ +using AyCode.Database.DbSets.Messages; +using Mango.Entities.Messages.Emails; + +namespace Mango.Database.DbSets.Emails; + +public interface IEmailMessageDbSet : IAcEmailMessageDbSet +{ } \ No newline at end of file diff --git a/Mango.Database/DbSets/Users/IUserDbSet.cs b/Mango.Database/DbSets/Users/IUserDbSet.cs new file mode 100644 index 0000000..a47daf6 --- /dev/null +++ b/Mango.Database/DbSets/Users/IUserDbSet.cs @@ -0,0 +1,11 @@ +using AyCode.Database.DbSets.Users; +using Mango.Entities.Addresses; +using Mango.Entities.Companies; +using Mango.Entities.Profiles; +using Mango.Entities.Users; + +namespace Mango.Database.DbSets.Users; + +public interface IUserDbSet : IAcUserDbSet +{ +} \ No newline at end of file diff --git a/Mango.Database/DbSets/Users/IUserTokenDbSet.cs b/Mango.Database/DbSets/Users/IUserTokenDbSet.cs new file mode 100644 index 0000000..c89bdac --- /dev/null +++ b/Mango.Database/DbSets/Users/IUserTokenDbSet.cs @@ -0,0 +1,9 @@ +using AyCode.Database.DbSets.Users; +using Mango.Entities.Users; + +namespace Mango.Database.DbSets.Users; + +public interface IUserTokenDbSet : IAcUserTokenDbSet +{ + +} \ No newline at end of file diff --git a/Mango.Database/DbSets/Users/UserDbSetExtensions.cs b/Mango.Database/DbSets/Users/UserDbSetExtensions.cs new file mode 100644 index 0000000..1795e25 --- /dev/null +++ b/Mango.Database/DbSets/Users/UserDbSetExtensions.cs @@ -0,0 +1,7 @@ +using Mango.Entities.Users; + +namespace Mango.Database.DbSets.Users; + +public static class UserDbSetExtensions +{ +} \ No newline at end of file diff --git a/Mango.Database/Mango.Database.csproj b/Mango.Database/Mango.Database.csproj index 3717faa..3a367bd 100644 --- a/Mango.Database/Mango.Database.csproj +++ b/Mango.Database/Mango.Database.csproj @@ -47,13 +47,16 @@ - + + + + diff --git a/Mango.Entities.Server/Mango.Entities.Server.csproj b/Mango.Entities.Server/Mango.Entities.Server.csproj index 711a805..a6ddb44 100644 --- a/Mango.Entities.Server/Mango.Entities.Server.csproj +++ b/Mango.Entities.Server/Mango.Entities.Server.csproj @@ -14,4 +14,33 @@ + + + + + + + + + + + ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Core.dll + + + ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Core.Server.dll + + + ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Entities.dll + + + ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Entities.Server.dll + + + ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Interfaces.dll + + + ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Interfaces.Server.dll + + + diff --git a/Mango.Entities/Addresses/Address.cs b/Mango.Entities/Addresses/Address.cs new file mode 100644 index 0000000..4433988 --- /dev/null +++ b/Mango.Entities/Addresses/Address.cs @@ -0,0 +1,10 @@ +using System.ComponentModel.DataAnnotations.Schema; +using AyCode.Entities.Addresses; +using Mango.Interfaces.Addresses; + +namespace Mango.Entities.Addresses; + +[Table(nameof(Address))] +public class Address : AcAddress, IAddress +{ +} \ No newline at end of file diff --git a/Mango.Entities/Companies/Company.cs b/Mango.Entities/Companies/Company.cs new file mode 100644 index 0000000..ba6e1b6 --- /dev/null +++ b/Mango.Entities/Companies/Company.cs @@ -0,0 +1,26 @@ +using System.ComponentModel.DataAnnotations.Schema; +using AyCode.Entities.ServiceProviders; +using Mango.Entities.Users; +using Mango.Interfaces.Companies; + +namespace Mango.Entities.Companies; + +[Table("ServiceProviders")] +public class Company : AcServiceProvider, ICompany, ICompanyBase +{ + public Company() + { + } + + public Company(string name, Guid ownerId) : this(Guid.NewGuid(), name, ownerId) + { + } + + public Company(Guid id, string name, Guid ownerId) : this(id, name, ownerId, Guid.NewGuid()) + { + } + + public Company(Guid id, string name, Guid ownerId, Guid affiliateId) : base(id, name, ownerId, affiliateId) + { + } +} \ No newline at end of file diff --git a/Mango.Entities/Mango.Entities.csproj b/Mango.Entities/Mango.Entities.csproj index fa71b7a..05bbd07 100644 --- a/Mango.Entities/Mango.Entities.csproj +++ b/Mango.Entities/Mango.Entities.csproj @@ -6,4 +6,26 @@ enable + + + + + + + + ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Core.dll + + + ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Entities.dll + + + ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Interfaces.dll + + + + + + + + diff --git a/Mango.Entities/Messages/Emails/EmailMessage.cs b/Mango.Entities/Messages/Emails/EmailMessage.cs new file mode 100644 index 0000000..c91868e --- /dev/null +++ b/Mango.Entities/Messages/Emails/EmailMessage.cs @@ -0,0 +1,16 @@ +using System.ComponentModel.DataAnnotations.Schema; +using AyCode.Entities.Messages; + +namespace Mango.Entities.Messages.Emails; + +[Table(nameof(EmailMessage))] +public class EmailMessage : AcEmailMessage //IEntityGuid, ITimeStampInfo, IEmailRecipientsRelation, IEmailAddress +{ + public EmailMessage() + { + } + + public EmailMessage(Guid id, Guid? senderId, Guid contextId, string subject, string? text, string emailAddress) : base(id, senderId, contextId, subject, text, emailAddress) + { + } +} \ No newline at end of file diff --git a/Mango.Entities/Messages/Emails/EmailRecipient.cs b/Mango.Entities/Messages/Emails/EmailRecipient.cs new file mode 100644 index 0000000..57b20db --- /dev/null +++ b/Mango.Entities/Messages/Emails/EmailRecipient.cs @@ -0,0 +1,16 @@ +using System.ComponentModel.DataAnnotations.Schema; +using AyCode.Entities.Messages; + +namespace Mango.Entities.Messages.Emails; + +[Table(nameof(EmailRecipient))] +public class EmailRecipient : AcEmailRecipient //IEntityGuid, ITimeStampInfo, IEmailMessageRelation, IEmailAddress +{ + public EmailRecipient() + { + } + + public EmailRecipient(Guid id, Guid recipientId, Guid emailMessageId, string emailAddress) : base(id, recipientId, emailMessageId, emailAddress) + { + } +} \ No newline at end of file diff --git a/Mango.Entities/Messages/Emails/IEmailMessageRelation.cs b/Mango.Entities/Messages/Emails/IEmailMessageRelation.cs new file mode 100644 index 0000000..63f811c --- /dev/null +++ b/Mango.Entities/Messages/Emails/IEmailMessageRelation.cs @@ -0,0 +1,7 @@ +using AyCode.Interfaces.Messages; +using Mango.Interfaces.Emails; + +namespace Mango.Entities.Messages.Emails; + +public interface IEmailMessageRelation : IEmailMessageRelation +{ } diff --git a/Mango.Entities/Messages/Emails/IEmailRecipientsRelation.cs b/Mango.Entities/Messages/Emails/IEmailRecipientsRelation.cs new file mode 100644 index 0000000..dc0fbb7 --- /dev/null +++ b/Mango.Entities/Messages/Emails/IEmailRecipientsRelation.cs @@ -0,0 +1,8 @@ +using AyCode.Interfaces.Messages; +using Mango.Interfaces.Emails; + +namespace Mango.Entities.Messages.Emails; + +public interface IEmailRecipientsRelation : IEmailRecipientsRelation +{ +} \ No newline at end of file diff --git a/Mango.Entities/Messages/Emails/IMessageSenderService.cs b/Mango.Entities/Messages/Emails/IMessageSenderService.cs new file mode 100644 index 0000000..a9431f5 --- /dev/null +++ b/Mango.Entities/Messages/Emails/IMessageSenderService.cs @@ -0,0 +1,7 @@ +using AyCode.Interfaces.Messages; +using Mango.Interfaces.Emails; + +namespace Mango.Entities.Messages.Emails; + +public interface IMessageSenderService : IMessageSenderService +{} \ No newline at end of file diff --git a/Mango.Entities/Profiles/Profile.cs b/Mango.Entities/Profiles/Profile.cs new file mode 100644 index 0000000..ed92085 --- /dev/null +++ b/Mango.Entities/Profiles/Profile.cs @@ -0,0 +1,12 @@ +using AyCode.Entities.Profiles; +using Mango.Entities.Addresses; +using Mango.Interfaces.Profiles; +using System.ComponentModel.DataAnnotations.Schema; + +namespace Mango.Entities.Profiles; + +[Table(nameof(Profile))] +public class Profile : AcProfile
, IProfile
+{ + +} \ No newline at end of file diff --git a/Mango.Entities/Users/User.cs b/Mango.Entities/Users/User.cs new file mode 100644 index 0000000..7765a36 --- /dev/null +++ b/Mango.Entities/Users/User.cs @@ -0,0 +1,22 @@ +using System.ComponentModel.DataAnnotations.Schema; +using AyCode.Entities.Users; +using Mango.Entities.Addresses; +using Mango.Entities.Companies; +using Mango.Entities.Profiles; +using Mango.Interfaces.Users; + +namespace Mango.Entities.Users +{ + [Table("Users")] + public class User : AcUser, IUser + { + public User() { } + public User(string email, string password) : this(Guid.NewGuid(), email, password) { } + public User(Guid id, string email, string password) : base(id, email, password) + { } + public User(Guid id, string email, string phoneNumber, string password) : base(id, email, phoneNumber, password) + { } + public User(Guid id, string email, string phoneNumber, string password, string refreshToken) : base(id, email, phoneNumber, password, refreshToken) + { } + } +} diff --git a/Mango.Entities/Users/UserToCompany.cs b/Mango.Entities/Users/UserToCompany.cs new file mode 100644 index 0000000..931ef7d --- /dev/null +++ b/Mango.Entities/Users/UserToCompany.cs @@ -0,0 +1,10 @@ +using AyCode.Entities.Users; +using Mango.Entities.Companies; +using Mango.Interfaces.Users; + +namespace Mango.Entities.Users; + +public class UserToCompany : AcUserToServiceProvider, IUserToCompany +{ + +} \ No newline at end of file diff --git a/Mango.Entities/Users/UserToken.cs b/Mango.Entities/Users/UserToken.cs new file mode 100644 index 0000000..3465760 --- /dev/null +++ b/Mango.Entities/Users/UserToken.cs @@ -0,0 +1,10 @@ +using System.ComponentModel.DataAnnotations.Schema; +using AyCode.Entities.Users; +using Mango.Interfaces.Users; + +namespace Mango.Entities.Users; + +[Table(nameof(UserToken))] +public class UserToken : AcUserTokenBase, IUserToken +{ +} \ No newline at end of file diff --git a/Mango.Interfaces/Emails/IEmailMessage.cs b/Mango.Interfaces/Emails/IEmailMessage.cs new file mode 100644 index 0000000..e7e47ae --- /dev/null +++ b/Mango.Interfaces/Emails/IEmailMessage.cs @@ -0,0 +1,8 @@ +using AyCode.Interfaces.Messages; + +namespace Mango.Interfaces.Emails; + +public interface IEmailMessage : IAcEmailMessage, IEmailMessageBase +{ + +} \ No newline at end of file diff --git a/Mango.Interfaces/Emails/IEmailMessageBase.cs b/Mango.Interfaces/Emails/IEmailMessageBase.cs new file mode 100644 index 0000000..d69ca5f --- /dev/null +++ b/Mango.Interfaces/Emails/IEmailMessageBase.cs @@ -0,0 +1,8 @@ +using AyCode.Interfaces.Messages; + +namespace Mango.Interfaces.Emails; + +public interface IEmailMessageBase : IAcEmailMessageBase +{ + +} \ No newline at end of file diff --git a/Mango.Interfaces/Emails/IEmailMessageForeignKey.cs b/Mango.Interfaces/Emails/IEmailMessageForeignKey.cs new file mode 100644 index 0000000..bc0517d --- /dev/null +++ b/Mango.Interfaces/Emails/IEmailMessageForeignKey.cs @@ -0,0 +1,6 @@ +using AyCode.Interfaces.Messages; + +namespace Mango.Interfaces.Emails; + +public interface IEmailMessageForeignKey : IAcEmailMessageForeignKey +{ } \ No newline at end of file diff --git a/Mango.Interfaces/Emails/IEmailMessageRelation.cs b/Mango.Interfaces/Emails/IEmailMessageRelation.cs new file mode 100644 index 0000000..2ac2811 --- /dev/null +++ b/Mango.Interfaces/Emails/IEmailMessageRelation.cs @@ -0,0 +1,7 @@ +using AyCode.Interfaces.Messages; +using System.Net.Mail; + +namespace Mango.Interfaces.Emails; + +public interface IEmailMessageRelation : IAcEmailMessageRelation, IEmailMessageForeignKey where TEmailMessage : IAcEmailMessageBase +{ } \ No newline at end of file diff --git a/Mango.Interfaces/Emails/IEmailRecipient.cs b/Mango.Interfaces/Emails/IEmailRecipient.cs new file mode 100644 index 0000000..765efb8 --- /dev/null +++ b/Mango.Interfaces/Emails/IEmailRecipient.cs @@ -0,0 +1,8 @@ +using AyCode.Interfaces.Messages; + +namespace Mango.Interfaces.Emails; + +public interface IEmailRecipient : IAcEmailRecipient, IEmailRecipientBase +{ + +} \ No newline at end of file diff --git a/Mango.Interfaces/Emails/IEmailRecipientBase.cs b/Mango.Interfaces/Emails/IEmailRecipientBase.cs new file mode 100644 index 0000000..50c98ac --- /dev/null +++ b/Mango.Interfaces/Emails/IEmailRecipientBase.cs @@ -0,0 +1,8 @@ +using AyCode.Interfaces.Messages; + +namespace Mango.Interfaces.Emails; + +public interface IEmailRecipientBase : IAcEmailRecipientBase +{ + +} \ No newline at end of file diff --git a/Mango.Interfaces/Emails/IEmailRecipientsRelation.cs b/Mango.Interfaces/Emails/IEmailRecipientsRelation.cs new file mode 100644 index 0000000..3ac374c --- /dev/null +++ b/Mango.Interfaces/Emails/IEmailRecipientsRelation.cs @@ -0,0 +1,7 @@ +using AyCode.Interfaces.Messages; + +namespace Mango.Interfaces.Emails; + +public interface IEmailRecipientsRelation : IAcEmailRecipientsRelation where TEmailRecipient : IAcEmailRecipientBase +{ +} \ No newline at end of file diff --git a/Mango.Interfaces/Emails/IMessageSenderService.cs b/Mango.Interfaces/Emails/IMessageSenderService.cs new file mode 100644 index 0000000..ef6eea5 --- /dev/null +++ b/Mango.Interfaces/Emails/IMessageSenderService.cs @@ -0,0 +1,9 @@ +using AyCode.Interfaces.Messages; + +namespace Mango.Interfaces.Emails; + +public interface IMessageSenderService : IAcMessageSenderService + where TEmailMessage : IAcEmailMessage + where TEmailRecipient : IAcEmailRecipientBase +{ +} \ No newline at end of file diff --git a/Mango.Interfaces/Mango.Interfaces.csproj b/Mango.Interfaces/Mango.Interfaces.csproj index d2ba6b0..a541796 100644 --- a/Mango.Interfaces/Mango.Interfaces.csproj +++ b/Mango.Interfaces/Mango.Interfaces.csproj @@ -6,11 +6,6 @@ enable - - - - - diff --git a/Mango.Interfaces/Users/IUser.cs b/Mango.Interfaces/Users/IUser.cs new file mode 100644 index 0000000..7280147 --- /dev/null +++ b/Mango.Interfaces/Users/IUser.cs @@ -0,0 +1,14 @@ +using AyCode.Interfaces.Users; +using Mango.Interfaces.Addresses; +using Mango.Interfaces.Companies; +using Mango.Interfaces.Profiles; + +namespace Mango.Interfaces.Users; + +public interface IUser : IAcUser, IUserDto, IUserBase + where TProfile : class, IProfile + where TCompany : class, ICompanyBase + where TUserToCompany : class, IUserToCompanyBase + where TProfileAddress : class, IAddress +{ +} \ No newline at end of file diff --git a/Mango.Interfaces/Users/IUserBase.cs b/Mango.Interfaces/Users/IUserBase.cs index 27e4c76..fa58b6a 100644 --- a/Mango.Interfaces/Users/IUserBase.cs +++ b/Mango.Interfaces/Users/IUserBase.cs @@ -1,5 +1,5 @@ -using AyCode.Interfaces.Users; - +using AyCode.Interfaces.ServiceProviders; +using AyCode.Interfaces.Users; namespace Mango.Interfaces.Users; public interface IUserBase : IAcUserBase diff --git a/Mango.Interfaces/Users/IUserToken.cs b/Mango.Interfaces/Users/IUserToken.cs new file mode 100644 index 0000000..8439436 --- /dev/null +++ b/Mango.Interfaces/Users/IUserToken.cs @@ -0,0 +1,7 @@ +using AyCode.Interfaces.Users; + +namespace Mango.Interfaces.Users; + +public interface IUserToken : IAcUserTokenBase +{ } +