diff --git a/DTO/UserDto.cs b/DTO/UserDto.cs new file mode 100644 index 0000000..60b8376 --- /dev/null +++ b/DTO/UserDto.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.ComponentModel.DataAnnotations; + +namespace renis_backend.DTO +{ + public class UserDto + { + [Required] + public string Name { get; set; } = null!; + [Phone] + [Required] + public string Phone { get; set; } = null!; + [Required] + public string Password { get; set; } = null!; + } +} \ No newline at end of file diff --git a/Exceptions/User/UserException.cs b/Exceptions/User/UserException.cs new file mode 100644 index 0000000..9e24c6d --- /dev/null +++ b/Exceptions/User/UserException.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace renis_backend.Exceptions.User +{ + public class UserException : System.Exception + { + public UserException() { } + public UserException(string message) : base(message) { } + public UserException(string message, System.Exception inner) : base(message, inner) { } + } +} \ No newline at end of file diff --git a/Services/Polis/IPolisService.cs b/Services/Polis/IPolisService.cs new file mode 100644 index 0000000..5a2f2b5 --- /dev/null +++ b/Services/Polis/IPolisService.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace renis_backend.Services.Polis +{ + public interface IPolisService + { + public Task> GetPolises(); + } +} \ No newline at end of file diff --git a/Services/Users/IUserService.cs b/Services/Users/IUserService.cs new file mode 100644 index 0000000..aa24b45 --- /dev/null +++ b/Services/Users/IUserService.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace renis_backend.Services.Users +{ + public interface IUserService + { + public Task GenerateUser(); + } +} \ No newline at end of file diff --git a/Services/Users/UserService.cs b/Services/Users/UserService.cs new file mode 100644 index 0000000..3ffb9d2 --- /dev/null +++ b/Services/Users/UserService.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace renis_backend.Services.Users +{ + public class UserService : IUserService + { + public async Task GenerateUser() + { + throw new NotImplementedException(); + } + } +} \ No newline at end of file diff --git a/renis-backend.sln b/renis-backend.sln new file mode 100644 index 0000000..76d9809 --- /dev/null +++ b/renis-backend.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.002.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "renis-backend", "renis-backend.csproj", "{9D6F84D2-940C-43B1-862C-263D0D446BCF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9D6F84D2-940C-43B1-862C-263D0D446BCF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9D6F84D2-940C-43B1-862C-263D0D446BCF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9D6F84D2-940C-43B1-862C-263D0D446BCF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9D6F84D2-940C-43B1-862C-263D0D446BCF}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {55CAE896-5C10-4114-B9E4-78864BF912A0} + EndGlobalSection +EndGlobal