fix:提交修复6个问题

This commit is contained in:
ljy
2026-07-08 23:01:18 +08:00
parent 99be8e0237
commit ab9654564e
43 changed files with 3671 additions and 277 deletions
@@ -0,0 +1,36 @@
import { IsIn, IsNotEmpty, IsOptional, IsString } from 'class-validator';
import { AccountStatus, PartnerStaffRole } from '@dukang/shared-types';
export class CreatePartnerStaffDto {
@IsString()
@IsNotEmpty()
phone: string;
@IsString()
@IsNotEmpty()
name: string;
@IsString()
@IsIn(Object.values(PartnerStaffRole))
staffRole: string;
@IsString()
@IsNotEmpty()
code: string;
}
export class UpdatePartnerStaffDto {
@IsString()
@IsOptional()
name?: string;
@IsString()
@IsIn(Object.values(PartnerStaffRole))
@IsOptional()
staffRole?: string;
@IsString()
@IsIn(Object.values(AccountStatus))
@IsOptional()
status?: string;
}