返回 AiToEarn
gzh.dto.ts
1 /*
2 * @Author: nevin
3 * @Date: 2024-06-17 20:12:31
4 * @LastEditTime: 2025-04-14 16:36:06
5 * @LastEditors: nevin
6 * @Description:
7 */
8 import { ApiProperty } from '@nestjs/swagger';
9 import { Expose } from 'class-transformer';
10 import { IsString } from 'class-validator';
11
12 export class CreateGzhMenuDto {
13 @ApiProperty({ title: '菜单JSON字符', required: true })
14 @IsString({ message: '菜单JSON字符' })
15 @Expose()
16 readonly menuStr: string;
17 }
18
18 lines TYPESCRIPT