dto.ts 461 B

123456789101112131415161718192021222324
  1. import { ApiProperty } from '@nestjs/swagger';
  2. import { IsNotEmpty, IsString } from 'class-validator';
  3. export class ConnectMilvus {
  4. @ApiProperty({
  5. description: 'Milvus url'
  6. })
  7. @IsString()
  8. @IsNotEmpty({
  9. message: 'address is empty',
  10. })
  11. readonly address: string;
  12. }
  13. export class CheckMilvus {
  14. @ApiProperty({
  15. description: 'Milvus url'
  16. })
  17. @IsString()
  18. @IsNotEmpty({
  19. message: 'address is empty',
  20. })
  21. readonly address: string;
  22. }