Skip to content

Commit 5547ab4

Browse files
committed
Work
1 parent ceb4aa4 commit 5547ab4

File tree

99 files changed

+1326
-5791
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+1326
-5791
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System.Threading.Tasks;
2+
using Models.Db.Sessions;
3+
4+
namespace Infrastructure.Abstractions
5+
{
6+
public interface ITokenSessionRepository
7+
{
8+
Task<TokenSession> GetById(long id);
9+
10+
Task<TokenSession> GetByToken(string token);
11+
12+
Task Update(TokenSession tokenSession);
13+
14+
Task Remove(TokenSession tokenSession);
15+
16+
Task Insert(TokenSession tokenSession);
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System.Threading.Tasks;
2+
using Models.Db.Account;
3+
4+
namespace Infrastructure.Abstractions
5+
{
6+
public interface IWorkerAccountRepository
7+
{
8+
Task<WorkerAccount> GetById(long id);
9+
10+
Task<WorkerAccount> GetByLogin(string login);
11+
12+
Task Update(WorkerAccount workerAccount);
13+
14+
Task Remove(WorkerAccount workerAccount);
15+
16+
Task Insert(WorkerAccount workerAccount);
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System.Threading.Tasks;
2+
using Models.Db.Account;
3+
4+
namespace Infrastructure.Abstractions
5+
{
6+
public interface IWorkerRoleRepository
7+
{
8+
Task<WorkerRole> GetById(long id);
9+
10+
Task Update(WorkerRole workerRole);
11+
12+
Task Remove(WorkerRole workerRole);
13+
14+
Task Insert(WorkerRole workerRole);
15+
16+
Task<WorkerRole> GetByTitleEn(string titleEn);
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System.Collections.Generic;
2+
using System.Threading.Tasks;
3+
using Models.Db.Account;
4+
5+
namespace Infrastructure.Abstractions
6+
{
7+
public interface IWorkerToRoleRepository
8+
{
9+
Task<IEnumerable<WorkerRole>> GetWorkerRoles(long workerId);
10+
11+
Task<IEnumerable<WorkerAccount>> GetRoleWorkers(long roleId);
12+
13+
Task<WorkerAccountToRole> GetPair(long workerId, long roleId);
14+
15+
Task Insert(WorkerAccountToRole workerAccountToRole);
16+
17+
Task Remove(WorkerAccountToRole workerAccountToRole);
18+
}
19+
}

Infrastructure/Data/Migrations/20210404142113_initial.Designer.cs

-154
This file was deleted.

Infrastructure/Data/Migrations/20210404142113_initial.cs

-127
This file was deleted.

0 commit comments

Comments
 (0)