-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from SCCapstone/search-title
Search post description and title for any keyword
- Loading branch information
Showing
27 changed files
with
1,469 additions
and
735 deletions.
There are no files selected for viewing
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
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,14 +1,14 @@ | ||
namespace FU.API.DTOs.Group; | ||
|
||
public class GroupSimpleDTO | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Name { get; set; } = string.Empty; | ||
|
||
public string? Description { get; set; } | ||
|
||
public int ChatId { get; set; } | ||
|
||
public ICollection<string> Tags { get; set; } = new HashSet<string>(); | ||
} | ||
namespace FU.API.DTOs.Group; | ||
|
||
public class GroupSimpleDTO | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Name { get; set; } = string.Empty; | ||
|
||
public string? Description { get; set; } | ||
|
||
public int ChatId { get; set; } | ||
|
||
public ICollection<string> Tags { get; set; } = new HashSet<string>(); | ||
} |
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
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
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,3 +1,5 @@ | ||
namespace FU.API.Helpers; | ||
|
||
using Microsoft.AspNetCore.Authorization; | ||
|
||
/// <summary> | ||
|
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
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,13 +1,13 @@ | ||
namespace FU.API.Interfaces; | ||
|
||
using FU.API.Models; | ||
using System.Security.Claims; | ||
|
||
public interface ICommonService | ||
{ | ||
Task<ApplicationUser?> GetCurrentUser(ClaimsPrincipal claims); | ||
|
||
Task<ApplicationUser?> GetUser(int userId); | ||
|
||
Task<bool> HasJoinedPost(int userId, int postId); | ||
namespace FU.API.Interfaces; | ||
|
||
using FU.API.Models; | ||
using System.Security.Claims; | ||
|
||
public interface ICommonService | ||
{ | ||
Task<ApplicationUser?> GetCurrentUser(ClaimsPrincipal claims); | ||
|
||
Task<ApplicationUser?> GetUser(int userId); | ||
|
||
Task<bool> HasJoinedPost(int userId, int postId); | ||
} |
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,14 +1,14 @@ | ||
namespace FU.API.Interfaces; | ||
|
||
using FU.API.Models; | ||
|
||
public interface IPostService : ICommonService | ||
{ | ||
Task<Post> CreatePost(Post post); | ||
|
||
Task<Post?> GetPost(int postId); | ||
|
||
Task JoinPost(int postId, ApplicationUser user); | ||
|
||
Task LeavePost(int postId, ApplicationUser user); | ||
} | ||
namespace FU.API.Interfaces; | ||
|
||
using FU.API.Models; | ||
|
||
public interface IPostService : ICommonService | ||
{ | ||
Task<Post> CreatePost(Post post); | ||
|
||
Task<Post?> GetPost(int postId); | ||
|
||
Task JoinPost(int postId, ApplicationUser user); | ||
|
||
Task LeavePost(int postId, ApplicationUser user); | ||
} |
Oops, something went wrong.