feat(api-ai): scope private bindings by user channel

This commit is contained in:
2026-04-06 13:36:28 +08:00
parent 5c956c195b
commit d0ba581184
4 changed files with 157 additions and 106 deletions
+4 -4
View File
@@ -1,4 +1,5 @@
import { IsOptional, IsString, MinLength } from "class-validator";
import { IsEnum, IsOptional, IsString, MinLength } from "class-validator";
import { AiChannel } from "../../../generated/prisma/client";
export class AiChatDto {
@IsString()
@@ -11,7 +12,6 @@ export class AiChatDto {
sessionId?: string;
@IsOptional()
@IsString()
@MinLength(1)
bindingId?: string;
@IsEnum(AiChannel)
channel?: AiChannel;
}