|
|
@@ -36,12 +36,12 @@ export class CategoryDto {
|
|
|
@Transform(({ value }) => (typeof value === 'string' ? value.trim() : value))
|
|
|
subtitle?: string | null;
|
|
|
|
|
|
- @ApiProperty({
|
|
|
- description: '渠道ID (Mongo ObjectId)',
|
|
|
- example: '664f9b5b8e4ff3f4c0c00001',
|
|
|
- })
|
|
|
- @IsMongoId()
|
|
|
- channelId: string;
|
|
|
+ // @ApiProperty({
|
|
|
+ // description: '渠道ID (Mongo ObjectId)',
|
|
|
+ // example: '664f9b5b8e4ff3f4c0c00001',
|
|
|
+ // })
|
|
|
+ // @IsMongoId()
|
|
|
+ // channelId: string;
|
|
|
|
|
|
@ApiProperty({ description: '排序 (越小越靠前)', example: 0 })
|
|
|
@Type(() => Number)
|
|
|
@@ -86,12 +86,12 @@ export class CreateCategoryDto {
|
|
|
@Transform(({ value }) => (typeof value === 'string' ? value.trim() : value))
|
|
|
subtitle?: string;
|
|
|
|
|
|
- @ApiProperty({
|
|
|
- description: '渠道ID (Mongo ObjectId)',
|
|
|
- example: '664f9b5b8e4ff3f4c0c00001',
|
|
|
- })
|
|
|
- @IsMongoId()
|
|
|
- channelId: string;
|
|
|
+ // @ApiProperty({
|
|
|
+ // description: '渠道ID (Mongo ObjectId)',
|
|
|
+ // example: '664f9b5b8e4ff3f4c0c00001',
|
|
|
+ // })
|
|
|
+ // @IsMongoId()
|
|
|
+ // channelId: string;
|
|
|
|
|
|
@ApiPropertyOptional({ description: '排序 (默认0)', example: 0 })
|
|
|
@Type(() => Number)
|
|
|
@@ -125,10 +125,10 @@ export class ListCategoryDto extends PageListDto {
|
|
|
@Transform(({ value }) => (typeof value === 'string' ? value.trim() : value))
|
|
|
name?: string;
|
|
|
|
|
|
- @ApiPropertyOptional({ description: '渠道ID (ObjectId)' })
|
|
|
- @IsOptional()
|
|
|
- @IsMongoId()
|
|
|
- channelId?: string;
|
|
|
+ // @ApiPropertyOptional({ description: '渠道ID (ObjectId)' })
|
|
|
+ // @IsOptional()
|
|
|
+ // @IsMongoId()
|
|
|
+ // channelId?: string;
|
|
|
|
|
|
@ApiPropertyOptional({
|
|
|
enum: CommonStatus,
|