bfffdee2a8
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>
15 lines
482 B
C#
15 lines
482 B
C#
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);
|
|
}
|