251121:1700 Backend T3 wait testt

This commit is contained in:
admin
2025-11-21 17:16:40 +07:00
parent 58cee2d007
commit bf0308e350
27 changed files with 6651 additions and 196 deletions
@@ -0,0 +1,24 @@
import { IsInt, IsNotEmpty, IsOptional, ValidateIf } from 'class-validator';
export class AssignRoleDto {
@IsInt()
@IsNotEmpty()
userId!: number;
@IsInt()
@IsNotEmpty()
roleId!: number;
// Scope (ต้องส่งมาอย่างน้อย 1 อัน หรือไม่ส่งเลยถ้าเป็น Global)
@IsInt()
@IsOptional()
organizationId?: number;
@IsInt()
@IsOptional()
projectId?: number;
@IsInt()
@IsOptional()
contractId?: number;
}