init commit
This commit is contained in:
parent
bc831b38be
commit
839362e7d0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("console_ui")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+28b0f0eaa4bdbc5beb0e71b121ca97a82102b037")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+bc831b38be994c037123ffa50725de305f577b7a")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("console_ui")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("console_ui")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
@ -1 +1 @@
|
||||
32e9080759ef99f05e7ddf73ba6012b2dd0e278f8dcf94cfa91e5db68e73c3a2
|
||||
0bf3ed9763fab8ffc4bdb71fe4985bca7b7587e5f39e71ac8713b92d12101222
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -11,7 +11,7 @@
|
||||
"projectName": "console_ui",
|
||||
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\console_ui\\console_ui.csproj",
|
||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\console_ui\\obj\\",
|
||||
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\console_ui\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
@ -99,7 +99,7 @@
|
||||
"projectName": "data",
|
||||
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj",
|
||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\obj\\",
|
||||
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
@ -179,7 +179,7 @@
|
||||
"projectName": "domain",
|
||||
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj",
|
||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\obj\\",
|
||||
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "K96Xd5zzBItWc+Mr+bIjPBlXb106QCB6BGPKDJTxAeTmyHexxjkwSfGa9CyIAM1XZiTxYoKnzu4IT7ifaA64NA==",
|
||||
"dgSpecHash": "8SnqRBoHTrXC6zNRgD35iWqKQFrMMB1xnQ0tZsRXiQnDkKksHZdiEnJsZgKSiOtjn3nAN28hgxy0Jfv7jHYl4g==",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\class_student\\source\\repos\\presence\\console_ui\\console_ui.csproj",
|
||||
"expectedPackageFiles": [
|
||||
|
Binary file not shown.
Binary file not shown.
@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("data")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+28b0f0eaa4bdbc5beb0e71b121ca97a82102b037")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+bc831b38be994c037123ffa50725de305f577b7a")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("data")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("data")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
@ -1 +1 @@
|
||||
e4cd134b92882cbfc58e80669abbe16e0faadcb1b6d692c06191b87e98682958
|
||||
a50be90752b8b6d77c677de08d0b1988eba5f1a43137c89ef90e1362d9c48efc
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -11,7 +11,7 @@
|
||||
"projectName": "data",
|
||||
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj",
|
||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\obj\\",
|
||||
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "DDnwm6gpeej6RjOTc40AjVgiFI7R+NkXTeSjPucV/p+JDC/9V23qaQY+5pEtF+rXq/EkUlb4yd7+Fl0AgmJ3RA==",
|
||||
"dgSpecHash": "dq+xJQNSo82BcvI1YOEsRM5SyN3J419X1oAn1yZywg6ptvxskzy0YvsVYIchdWZwskiwWAGbewHiRF0FFD64Gg==",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj",
|
||||
"expectedPackageFiles": [
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("domain")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+28b0f0eaa4bdbc5beb0e71b121ca97a82102b037")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+bc831b38be994c037123ffa50725de305f577b7a")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("domain")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("domain")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
@ -1 +1 @@
|
||||
9584676b028343be5c40389a6e12fdba6caf1e083ec7e28ed52aa54e02f3df00
|
||||
9bf776f5a1569c6c8e87b4e7850c65a45203e6fdec27c7106df7a51414d23f6f
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -11,7 +11,7 @@
|
||||
"projectName": "data",
|
||||
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj",
|
||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\obj\\",
|
||||
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
@ -91,7 +91,7 @@
|
||||
"projectName": "domain",
|
||||
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj",
|
||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\obj\\",
|
||||
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "B6/hulEGPdjqLzqDRxfurQrl5AeIwbmlU6b6QX4UG6XWgXQMg2xBKvbla99nkBkdY6CKg3bg1R0V+5RizSgZUA==",
|
||||
"dgSpecHash": "lJTJ14wBwjXFnaVaxoabnlDogMX3Sp0lQVlqyaedGyWhAz5YJhifXah8drXyM7t4sf35FH72dxhiyf+6Qi+IXA==",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj",
|
||||
"expectedPackageFiles": [
|
||||
|
26
presence_api/Controllers/AdminPanelController.cs
Normal file
26
presence_api/Controllers/AdminPanelController.cs
Normal file
@ -0,0 +1,26 @@
|
||||
using domain.Models;
|
||||
using domain.UseCase;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
|
||||
namespace presence_api.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/admin")]
|
||||
|
||||
public class AdminPanelController : ControllerBase
|
||||
{
|
||||
private readonly GroupUseCase _groupUseCase;
|
||||
private readonly UserUseCase _userUseCase;
|
||||
private readonly UseCaseGeneratePresence _presenceUseCase;
|
||||
|
||||
public AdminPanelController(GroupUseCase groupUseCase, UserUseCase userUseCase, UseCaseGeneratePresence presenceUseCase)
|
||||
{
|
||||
_groupUseCase = groupUseCase;
|
||||
_userUseCase = userUseCase;
|
||||
_presenceUseCase = presenceUseCase;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -8,7 +8,7 @@ var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
builder.Services.AddControllers();
|
||||
builder.Services.AddDbContext<RemoteDatabaseContext>();
|
||||
|
||||
builder.Services.ConfigurateRepositories();
|
||||
builder.Services.AddEndpointsApiExplorer();
|
||||
builder.Services.AddSwaggerGen();
|
||||
|
||||
|
@ -24,4 +24,22 @@ public static class ServiceExtensions
|
||||
.AddScoped<UseCaseGeneratePresence>();
|
||||
|
||||
}
|
||||
|
||||
public static void ConfigurateAdminPanel(this IServiceCollection services)
|
||||
{
|
||||
services
|
||||
.AddScoped<IGroupRepository, SQLGroupRepositoryImpl>()
|
||||
.AddScoped<IUserRepository, SQLUserRepositoryImpl>()
|
||||
.AddScoped<IPresenceRepository, SQLPresenceRepositoryImpl>()
|
||||
.AddScoped<GroupUseCase>()
|
||||
.AddScoped<UserUseCase>()
|
||||
.AddScoped<UseCaseGeneratePresence>();
|
||||
}
|
||||
|
||||
public static void ConfigurateRepositories(this IServiceCollection services)
|
||||
{
|
||||
services.AddScoped<IGroupRepository, SQLGroupRepositoryImpl>();
|
||||
services.AddScoped<IUserRepository, SQLUserRepositoryImpl>();
|
||||
services.AddScoped<IPresenceRepository, SQLPresenceRepositoryImpl>();
|
||||
}
|
||||
}
|
@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("presence_api")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+28b0f0eaa4bdbc5beb0e71b121ca97a82102b037")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+bc831b38be994c037123ffa50725de305f577b7a")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("presence_api")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("presence_api")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
@ -1 +1 @@
|
||||
1cecb6fb24799015fcc3bc184b2f81dcfad82fb42561666b026513f195fabadc
|
||||
afb0cb8503e2fdb8b3596501bd1a905aa03a31b0bb50d5335264e3468a454092
|
||||
|
Binary file not shown.
@ -11,7 +11,7 @@
|
||||
"projectName": "data",
|
||||
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj",
|
||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\obj\\",
|
||||
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
@ -91,7 +91,7 @@
|
||||
"projectName": "domain",
|
||||
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj",
|
||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\obj\\",
|
||||
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "xt+O5Zbifose0itRRSK2jIsvmLEYSx72AOWSNnYCmc0/9Qr+/zG/9FLj4hAqH96X+MC5b5FPhaeWaJgxuTceCw==",
|
||||
"dgSpecHash": "ikXvASXc/Rkexe7ERiMNgD/DommsZr1j88s5EJUieLBAudeu/FD9X4LPlK0fHIJzxjo0vjxrOMWzCnQeUxzzbA==",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\class_student\\source\\repos\\presence\\presence_api\\presence_api.csproj",
|
||||
"expectedPackageFiles": [
|
||||
|
@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("ui")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+28b0f0eaa4bdbc5beb0e71b121ca97a82102b037")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+bc831b38be994c037123ffa50725de305f577b7a")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("ui")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("ui")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
@ -1 +1 @@
|
||||
c8023eb94005f8ae1a010db9f41731c1fef18c35b9906a12ef2b8c8d7f4e4cc8
|
||||
fc0ee0e6e9c041021fa5120954c8ad79bd39a88413e329fab3af6c3e3c806ea1
|
||||
|
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "iBqlmJAmTWHzoxEV2YtClnbZRE4WTyDWuhCIy3AZcQnVrxkWZmlC4iT75dS78yINtjkCycXt2R1mIOgJY1LrqA==",
|
||||
"dgSpecHash": "dNHY0PWkVJ9yqh4r350Pq7u6mnT7d9z4cJfYez8zScnFgIivUdw2P/yHSkjOeyGZ9zBEiinHHbXHbVE6f2TWUw==",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\class_student\\source\\repos\\presence\\ui\\ui.csproj",
|
||||
"expectedPackageFiles": [
|
||||
|
@ -11,7 +11,7 @@
|
||||
"projectName": "data",
|
||||
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\data.csproj",
|
||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\data\\obj\\",
|
||||
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\data\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
@ -91,7 +91,7 @@
|
||||
"projectName": "domain",
|
||||
"projectPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\domain.csproj",
|
||||
"packagesPath": "C:\\Users\\class_student\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\class_student\\Source\\Repos\\presence\\domain\\obj\\",
|
||||
"outputPath": "C:\\Users\\class_student\\source\\repos\\presence\\domain\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
|
Loading…
Reference in New Issue
Block a user