feat: add MemberService with soft-delete and paged search
Implements IMemberService with Create/Read/Update/soft-Delete operations, NickName/zh-name search, status and hasUser filtering, and full xUnit coverage (11 tests). Uses separate user-lookup query for InMemory DB compatibility; detaches entity after soft-delete so query-filter assertions work correctly in tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using ROLAC.API.DTOs.Members;
|
||||
using ROLAC.API.DTOs.Shared;
|
||||
|
||||
namespace ROLAC.API.Services;
|
||||
|
||||
public interface IMemberService
|
||||
{
|
||||
Task<PagedResult<MemberListItemDto>> GetPagedAsync(
|
||||
int page, int pageSize, string? search, string? status, bool? hasUser);
|
||||
Task<MemberDto?> GetByIdAsync(int id);
|
||||
Task<int> CreateAsync(CreateMemberRequest request);
|
||||
Task UpdateAsync(int id, UpdateMemberRequest request);
|
||||
Task DeleteAsync(int id);
|
||||
}
|
||||
Reference in New Issue
Block a user