forked from hamed-shirbandi/TaskoMask
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
279731c
commit 9478f6f
Showing
8 changed files
with
137 additions
and
5 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
Src/Libraries/1-Application/Application.Core/Dtos/Team/Members/MemberOutputDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
| ||
using System.ComponentModel.DataAnnotations; | ||
using TaskoMask.Application.Core.Resources; | ||
|
||
namespace TaskoMask.Application.Core.Dtos.Team.Members | ||
{ | ||
public class MemberOutputDto : MemberBasicInfoDto | ||
{ | ||
/// <summary> | ||
/// Member Organizations count as an owner or as an invited member | ||
/// </summary> | ||
[Display(Name = nameof(ApplicationMetadata.OrganizationsCount), ResourceType = typeof(ApplicationMetadata))] | ||
public long OrganizationsCount { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
Src/Libraries/1-Application/Application/Team/Members/Queries/Models/SearchMembersQuery.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using TaskoMask.Application.Core.Dtos.Team.Members; | ||
using TaskoMask.Application.Core.Helpers; | ||
using TaskoMask.Application.Core.Queries; | ||
|
||
namespace TaskoMask.Application.Team.Members.Queries.Models | ||
{ | ||
public class SearchMembersQuery:BaseQuery<PublicPaginatedListReturnType<MemberOutputDto>> | ||
{ | ||
public SearchMembersQuery(int page, int recordsPerPage, string term) | ||
{ | ||
Page = page; | ||
RecordsPerPage = recordsPerPage; | ||
Term = term; | ||
} | ||
|
||
public int Page { get; set; } | ||
public int RecordsPerPage { get; set; } | ||
public string Term { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
Src/Libraries/3-Domain/Domain/Team/Data/IInvitationRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using TaskoMask.Domain.Core.Data; | ||
using TaskoMask.Domain.Team.Entities; | ||
|
||
namespace TaskoMask.Domain.Team.Data | ||
{ | ||
public interface IInvitationRepository : IBaseRepository<Invitation> | ||
{ | ||
Task<int> OrganizationsCountByInvitedMemberIdAsync(string invitedMemberId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
using TaskoMask.Domain.Core.Data; | ||
using System.Collections.Generic; | ||
using TaskoMask.Domain.Core.Data; | ||
using TaskoMask.Domain.Team.Entities; | ||
|
||
namespace TaskoMask.Domain.Team.Data | ||
{ | ||
public interface IMemberRepository : IUserRepository<Member> | ||
{ | ||
IEnumerable<Member> Search(int page, int recordsPerPage, string term, out int pageSize, out int totalItemCount); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters