feat: добавление интерфейсов бизнес логики (первая версия)
This commit is contained in:
9
TheBank/BankBusinessLogic/BankBusinessLogic.csproj
Normal file
9
TheBank/BankBusinessLogic/BankBusinessLogic.csproj
Normal file
@@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user