feat: 完成 PRD 差距与修复,新增审核流与日志清理功能,支持出库信息与动态字段,优化 C 端用户体验
This commit is contained in:
@@ -11,7 +11,8 @@ import {
|
||||
MaxLength,
|
||||
ValidateNested,
|
||||
} from 'class-validator';
|
||||
import { ArtworkStatus } from '@artveris/shared';
|
||||
import { IsBoolean } from 'class-validator';
|
||||
import { ArtworkStatus, AuditStatus } from '@artveris/shared';
|
||||
import { PaginationDto } from '../../common/dto/pagination.dto';
|
||||
|
||||
export class MediaItemDto {
|
||||
@@ -104,9 +105,26 @@ export class QueryArtworkDto extends PaginationDto {
|
||||
@IsEnum(ArtworkStatus)
|
||||
status?: ArtworkStatus;
|
||||
|
||||
@ApiPropertyOptional({ description: '审核状态', enum: AuditStatus })
|
||||
@IsOptional()
|
||||
@IsEnum(AuditStatus)
|
||||
auditStatus?: AuditStatus;
|
||||
|
||||
@ApiPropertyOptional({ description: '模板 ID' })
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
templateId?: number;
|
||||
}
|
||||
|
||||
export class AuditArtworkDto {
|
||||
@ApiProperty({ description: '是否通过' })
|
||||
@IsBoolean()
|
||||
approved!: boolean;
|
||||
|
||||
@ApiPropertyOptional({ description: '审核意见(驳回建议填写)' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(255)
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user