feat(learning): harden access and practice sessions

This commit is contained in:
2026-08-05 14:01:36 +08:00
parent 603bc24c26
commit df31c3a669
88 changed files with 72411 additions and 543 deletions

View File

@@ -19,7 +19,8 @@ public sealed record QuestionBankFilter(
string? Type = null,
string? Keyword = null,
int? Limit = null,
QuestionSource? Source = null);
QuestionSource? Source = null,
IReadOnlyCollection<Guid>? AllowedContentSliceIds = null);
public sealed record QuestionBankCatalogItem(
Guid Id,
@@ -54,28 +55,8 @@ public sealed record QuestionCatalogItem(
int? VersionNo,
string? Content,
JsonElement Options,
int? CorrectOptionIndex,
JsonElement CorrectOptionIndices,
string? AnswerText,
string? Explanation,
JsonElement SubQuestions,
string? CodeLang,
string? CodeTemplate,
QuestionLocator Locator);
public sealed record QuestionLocator(QuestionSource Source, Guid QuestionId);
public sealed record QuestionVersionCatalogItem(
Guid Id,
Guid QuestionId,
int VersionNo,
string? Content,
JsonElement Options,
int? CorrectOptionIndex,
JsonElement CorrectOptionIndices,
string? AnswerText,
string? Explanation,
JsonElement SubQuestions,
string? CodeLang,
string? CodeTemplate,
DateTimeOffset CreatedAt);