feat: добавление интерфейсов бизнес логики (первая версия)

This commit is contained in:
2025-04-18 18:13:50 +04:00
parent 19883910fb
commit ff8ba79abc
17 changed files with 260 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,19 @@
using BankContracts.DataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.BusinessLogicContracts;
public interface IClerkBusinessLogicContract
{
List<ClerkDataModel> GetAllClerks();
ClerkDataModel GetClerkByData(string data);
void InsertClerk(ClerkDataModel clerkDataModel);
void UpdateClerk(ClerkDataModel clerkDataModel);
}

View File

@@ -0,0 +1,19 @@
using BankContracts.DataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.BusinessLogicContracts;
public interface IClientBusinessLogicContract
{
List<ClientDataModel> GetAllClients();
ClientDataModel GetClientByData(string data);
void InsertClient(ClientDataModel clientDataModel);
void UpdateClient(ClientDataModel clientDataModel);
}

View File

@@ -0,0 +1,19 @@
using BankContracts.DataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.BusinessLogicContracts;
public interface ICreditProgramBusinessLogicContract
{
List<CreditProgramDataModel> GetAllCreditPrograms();
CreditProgramDataModel GetCreditProgramByData(string data);
void InsertCreditProgram(CreditProgramDataModel creditProgramDataModel);
void UpdateCreditProgram(CreditProgramDataModel creditProgramDataModel);
}

View File

@@ -0,0 +1,19 @@
using BankContracts.DataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.BusinessLogicContracts;
public interface ICurrencyBusinessLogicContract
{
List<CurrencyDataModel> GetAllCurrencys();
CurrencyDataModel GetCurrencyByData(string data);
void InsertCurrency(CurrencyDataModel currencyDataModel);
void UpdateCurrency(CurrencyDataModel currencyDataModel);
}

View File

@@ -0,0 +1,19 @@
using BankContracts.DataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.BusinessLogicContracts;
public interface IDepositBusinessLogicContract
{
List<DepositDataModel> GetAllDeposits();
DepositDataModel GetDepositByData(string data);
void InsertDeposit(DepositDataModel depositDataModel);
void UpdateDeposit(DepositDataModel depositDataModel);
}

View File

@@ -0,0 +1,23 @@
using BankContracts.DataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.BusinessLogicContracts;
public interface IPeriodBusinessLogicContract
{
List<PeriodDataModel> GetAllPeriods();
PeriodDataModel GetPeriodByData(string data);
List<PeriodDataModel> GetAllPeriodsByStartTime(DateTime fromDate, DateTime toDate);
List<PeriodDataModel> GetAllPeriodsByEndTime(DateTime fromDate, DateTime toDate);
void InsertPeriod(PeriodDataModel periodataModel);
void UpdatePeriod(PeriodDataModel periodataModel);
}

View File

@@ -0,0 +1,21 @@
using BankContracts.DataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.BusinessLogicContracts;
public interface IReplenishmentBusinessLogicContract
{
List<ReplenishmentDataModel> GetAllReplenishments();
ReplenishmentDataModel GetReplenishmentByData(string data);
List<ReplenishmentDataModel> GetAllReplenishmentsByDate(DateTime fromDate, DateTime toDate);
void InsertReplenishment(ReplenishmentDataModel replenishmentataModel);
void UpdateReplenishment(ReplenishmentDataModel replenishmentataModel);
}

View File

@@ -0,0 +1,19 @@
using BankContracts.DataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.BusinessLogicContracts;
public interface IStorekeeperBusinessLogicContract
{
List<StorekeeperDataModel> GetAllStorekeepers();
StorekeeperDataModel GetStorekeeperByData(string data);
void InsertStorekeeper(StorekeeperDataModel storekeeperDataModel);
void UpdateStorekeeper(StorekeeperDataModel storekeeperDataModel);
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.StorageContracts
{
interface IClerkStorageContract
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.StorageContracts
{
interface IClientStorageContract
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.StorageContracts
{
interface ICreditProgramStorageContract
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.StorageContracts
{
interface ICurrencyStorageContract
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.StorageContracts
{
interface IDepositStorageContract
{
}
}

View File

@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.StorageContracts;
interface IPeriodStorageContract
{
}

View File

@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.StorageContracts;
interface IReplenishmentStorageContract
{
}

View File

@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.StorageContracts;
interface IStorekeeperStorageContract
{
}