Revize 67fcccd1
Přidáno uživatelem Milan Hotovec před téměř 4 roky(ů)
src/Modules/Goal/Domain/Leuze.Modules.Goal.Domain/Repositories/ICommentRepository.cs | ||
---|---|---|
1 | 1 |
using ExtCore.Data.Abstractions; |
2 |
using Leuze.Modules.Goal.Domain.Domains; |
|
2 | 3 |
using System; |
3 | 4 |
using System.Collections.Generic; |
4 | 5 |
using System.Linq; |
... | ... | |
9 | 10 |
{ |
10 | 11 |
public interface ICommentRepository : IRepository |
11 | 12 |
{ |
13 |
Task<bool> AddAsync(Comment comment); |
|
14 |
|
|
15 |
Task<bool> RemoveAsync(Guid id); |
|
16 |
|
|
17 |
Task<Comment> GetByIdAsync(Guid id); |
|
18 |
|
|
19 |
Task<List<Comment>> GetAllForGoalAsync(Guid goalId); |
|
20 |
|
|
21 |
Task<List<Comment>> GetAllAsync(); |
|
22 |
|
|
23 |
Task<bool> EditAsync(Guid id, string text); |
|
12 | 24 |
} |
13 | 25 |
} |
src/Modules/Goal/Domain/Leuze.Modules.Goal.Domain/Repositories/IGoalDefinitionRepository.cs | ||
---|---|---|
10 | 10 |
{ |
11 | 11 |
public interface IGoalDefinitionRepository : IRepository |
12 | 12 |
{ |
13 |
Task<GoalDefinition> GetByIdAsync(Guid id); |
|
13 |
Task<List<GoalDefinition>> GetAllForUserAsync(Guid userId); |
|
14 |
|
|
15 |
Task<List<GoalDefinition>> GetAllAsync(); |
|
16 |
|
|
17 |
Task<GoalDefinition> GetByIdAsync(Guid id); |
|
18 |
|
|
19 |
Task<bool> AddAsync(GoalDefinition gd); |
|
20 |
|
|
21 |
Task<bool> RemoveAsync(Guid id); |
|
22 |
|
|
23 |
Task<bool> SetVariAsync(Guid id, decimal vari); |
|
24 |
|
|
25 |
Task<bool> SetFromAsync(Guid id, DateTime from); |
|
26 |
|
|
27 |
Task<bool> SetToAsync(Guid id, DateTime to); |
|
28 |
|
|
29 |
Task<bool> SetNameAsync(Guid id, string name); |
|
14 | 30 |
} |
15 | 31 |
} |
src/Modules/Goal/Domain/Leuze.Modules.Goal.Domain/Repositories/IGoalItemRepository.cs | ||
---|---|---|
12 | 12 |
{ |
13 | 13 |
|
14 | 14 |
Task AddAsync(GoalItem item); |
15 |
|
|
16 |
Task<bool> RemoveAsync(Guid id); |
|
17 |
|
|
18 |
Task<GoalItem> GetByIdAsync(Guid id); |
|
19 |
|
|
20 |
Task<List<GoalItem>> GetAllForUserDefinitionAsync(Guid definitionId); |
|
21 |
|
|
22 |
Task<List<GoalItem>> GetAllAsync(); |
|
23 |
|
|
24 |
Task<bool> SetNameAsync(Guid id, string name); |
|
25 |
|
|
26 |
Task<bool> SetDescriptionAsync(Guid id, string description); |
|
27 |
|
|
28 |
Task<bool> SetPercentileUserAsync(Guid id, decimal percentile); |
|
29 |
|
|
30 |
Task<bool> SetPercentileFinalAsync(Guid id, decimal percentile); |
|
31 |
|
|
32 |
Task<bool> SetGoalDefinitionAsync(Guid id, Guid definitionId); |
|
33 |
|
|
15 | 34 |
} |
16 | 35 |
} |
src/Modules/Goal/Domain/Leuze.Modules.Goal.Domain/Repositories/IGoalUpdateRepository.cs | ||
---|---|---|
1 | 1 |
using ExtCore.Data.Abstractions; |
2 |
using Leuze.Modules.Goal.Domain.Domains; |
|
2 | 3 |
using System; |
3 | 4 |
using System.Collections.Generic; |
4 | 5 |
using System.Linq; |
... | ... | |
9 | 10 |
{ |
10 | 11 |
public interface IGoalUpdateRepository : IRepository |
11 | 12 |
{ |
13 |
Task<bool> AddAsync(GoalUpdate update); |
|
14 |
|
|
15 |
Task<bool> RemoveAsync(Guid id); |
|
16 |
|
|
17 |
Task<GoalUpdate> GetByIdAsync(Guid id); |
|
18 |
|
|
19 |
Task<List<GoalUpdate>> GetAllForGoalAsync(Guid goalId); |
|
20 |
|
|
21 |
Task<List<GoalUpdate>> GetAllAsync(); |
|
12 | 22 |
} |
13 | 23 |
} |
src/Modules/Goal/Domain/Leuze.Modules.Goal.Domain/Repositories/IReviewRepository.cs | ||
---|---|---|
1 | 1 |
using ExtCore.Data.Abstractions; |
2 |
using Leuze.Modules.Goal.Domain.Domains; |
|
2 | 3 |
using System; |
3 | 4 |
using System.Collections.Generic; |
4 | 5 |
using System.Linq; |
... | ... | |
9 | 10 |
{ |
10 | 11 |
public interface IReviewRepository : IRepository |
11 | 12 |
{ |
13 |
Task<bool> AddAsync(Review review); |
|
14 |
|
|
15 |
Task<bool> RemoveAsync(Guid id); |
|
16 |
|
|
17 |
Task<Review> GetByIdAsync(Guid id); |
|
18 |
|
|
19 |
Task<List<Review>> GetAllForGoalAsync(Guid definitionId); |
|
20 |
|
|
21 |
Task<List<Review>> GetAllAsync(); |
|
12 | 22 |
} |
13 | 23 |
} |
Také k dispozici: Unified diff
Interfaces for repos