feature: a minimal implementation of staff management is done.
This commit is contained in:
15
backend/src/modules/staff/dto/invite-staff.dto.ts
Normal file
15
backend/src/modules/staff/dto/invite-staff.dto.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { IsArray, IsEmail, IsString, MinLength } from 'class-validator';
|
||||
|
||||
export class InviteStaffDto {
|
||||
@IsEmail()
|
||||
email: string;
|
||||
|
||||
@IsString()
|
||||
@MinLength(1)
|
||||
name: string;
|
||||
|
||||
/** TAB_* permission names; EDIT implies READ after normalization. */
|
||||
@IsArray()
|
||||
@IsString({ each: true })
|
||||
permissionNames: string[];
|
||||
}
|
||||
Reference in New Issue
Block a user