框架优化

This commit is contained in:
czj
2026-05-13 10:35:35 +08:00
committed by “hsc”
parent 362e509be1
commit 60d3009670
16 changed files with 11 additions and 918 deletions

View File

@@ -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);
}
}

View File

@@ -1,11 +0,0 @@
using Model;
using Model.Entity;
namespace Service.Interface
{
public interface IUserService : IBaseService<UserEntity>
{
public Task<Result<UserEntity>> GetUserByUserNameAsync(string username);
}
}