Account leveling

This commit is contained in:
2025-05-17 02:31:25 +08:00
parent 6fe0b9b50a
commit 8ab17569ee
6 changed files with 3479 additions and 0 deletions

View File

@ -40,4 +40,12 @@ public class AccountService(
return null;
}
public async Task<int?> GetAccountLevel(Guid accountId)
{
var profile = await db.AccountProfiles
.Where(a => a.AccountId == accountId)
.FirstOrDefaultAsync();
return profile?.Level;
}
}