feat: 完成会员消息触达后端模块

This commit is contained in:
2026-03-04 11:53:52 +08:00
parent 2970134200
commit a8cfda88f7
33 changed files with 4282 additions and 0 deletions

View File

@@ -135,6 +135,25 @@ public sealed class EfMemberRepository(TakeoutAppDbContext context) : IMemberRep
.ToListAsync(cancellationToken);
}
/// <inheritdoc />
public async Task<IReadOnlyList<MemberProfileTag>> GetProfileTagsByMemberIdsAsync(
long tenantId,
IReadOnlyCollection<long> memberProfileIds,
CancellationToken cancellationToken = default)
{
if (memberProfileIds.Count == 0)
{
return [];
}
return await context.MemberProfileTags
.AsNoTracking()
.Where(x => x.TenantId == tenantId && memberProfileIds.Contains(x.MemberProfileId))
.OrderBy(x => x.MemberProfileId)
.ThenBy(x => x.TagName)
.ToListAsync(cancellationToken);
}
/// <inheritdoc />
public async Task ReplaceProfileTagsAsync(
long tenantId,