添加主界面
This commit is contained in:
16
Service/Interface/IPostService.cs
Normal file
16
Service/Interface/IPostService.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Model;
|
||||
using Model.Entity;
|
||||
using Service.Interface;
|
||||
|
||||
namespace Service.Interface
|
||||
{
|
||||
public interface IPostService : IBaseService<PostEntity>
|
||||
{
|
||||
Task<Result<List<PostEntity>>> GetRecommendedPostsAsync(int count = 10);
|
||||
Task<Result<List<PostEntity>>> SearchPostsAsync(string keyword);
|
||||
Task<Result<List<PostEntity>>> GetPostsByCategoryAsync(string category, int count = 10);
|
||||
Task<Result<bool>> CreatePostAsync(PostEntity post);
|
||||
Task<Result<bool>> UpdatePostAsync(PostEntity post);
|
||||
Task<Result<bool>> DeletePostAsync(long postId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user