forked from gongxuegit/tiku-backend.net
feat: enforce tenant isolation and shared question bank
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Tiku.Application.QuestionBanks;
|
||||
using Tiku.Domain.Content;
|
||||
|
||||
namespace Tiku.Api.Contracts;
|
||||
|
||||
@@ -24,6 +25,8 @@ public sealed class QuestionBankQueryDto
|
||||
|
||||
public Guid? CollectionId { get; set; }
|
||||
|
||||
public QuestionSource? Source { get; set; }
|
||||
|
||||
[StringLength(50)]
|
||||
public string? Type { get; set; }
|
||||
|
||||
@@ -54,7 +57,8 @@ public sealed class QuestionBankQueryDto
|
||||
ParseQuestionIds(),
|
||||
Type,
|
||||
Keyword,
|
||||
Limit);
|
||||
Limit,
|
||||
Source);
|
||||
}
|
||||
|
||||
private Guid[] ParseQuestionIds()
|
||||
|
||||
Reference in New Issue
Block a user