框架优化
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
using Model;
|
||||
using Model.Entity;
|
||||
|
||||
namespace Service.Interface
|
||||
{
|
||||
public interface IUserService : IBaseService<UserEntity>
|
||||
{
|
||||
public Task<Result<UserEntity>> GetUserByUserNameAsync(string username);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user