forked from wangziqi/gongxue-base
feat(rbac): add user-ding-mapping CRUD endpoints
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IsString, MinLength, IsOptional, IsArray, IsBoolean } from 'class-validator';
|
||||
import { IsString, MinLength, IsOptional, IsArray, IsBoolean, IsInt, IsNotEmpty } from 'class-validator';
|
||||
|
||||
export class CreateRoleDto {
|
||||
@IsString()
|
||||
@@ -79,3 +79,21 @@ export class UpdateProfileDto {
|
||||
@IsString()
|
||||
qualifications?: string;
|
||||
}
|
||||
|
||||
export class CreateUserDingMappingDto {
|
||||
@IsInt()
|
||||
@IsNotEmpty()
|
||||
userId: number;
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
dingUserId: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
dingName?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
dingMobile?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user