feat(web): T-WEB-007 上传审核流程(状态机 + 审核流水)
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import { IsEnum, IsOptional, IsString, MaxLength } from 'class-validator';
|
||||
import { PublishStatus, TargetType } from '../common/enums';
|
||||
import { PageQueryDto } from '../common/pagination';
|
||||
|
||||
export class ReviewActionDto {
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(100)
|
||||
reviewer?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(2000)
|
||||
comment?: string;
|
||||
}
|
||||
|
||||
export class QueryReviewDto extends PageQueryDto {
|
||||
@IsOptional()
|
||||
@IsEnum(TargetType)
|
||||
targetType?: TargetType;
|
||||
|
||||
@IsOptional()
|
||||
targetId?: number;
|
||||
|
||||
/** 传入时返回该状态的待审资产列表(合并三类),否则返回审核流水 */
|
||||
@IsOptional()
|
||||
@IsEnum(PublishStatus)
|
||||
status?: PublishStatus;
|
||||
}
|
||||
Reference in New Issue
Block a user