|
@@ -24,14 +24,18 @@ export class ManageIndex {
|
|
@IsEnum(ManageType, { message: 'Type allow delete and create' })
|
|
@IsEnum(ManageType, { message: 'Type allow delete and create' })
|
|
readonly type: ManageType;
|
|
readonly type: ManageType;
|
|
|
|
|
|
- @ApiProperty()
|
|
|
|
|
|
+ @ApiProperty({
|
|
|
|
+ description: 'Milvus collection name',
|
|
|
|
+ })
|
|
@IsString()
|
|
@IsString()
|
|
@IsNotEmpty({
|
|
@IsNotEmpty({
|
|
message: 'collection_name is empty',
|
|
message: 'collection_name is empty',
|
|
})
|
|
})
|
|
readonly collection_name: string;
|
|
readonly collection_name: string;
|
|
|
|
|
|
- @ApiProperty()
|
|
|
|
|
|
+ @ApiProperty({
|
|
|
|
+ description: 'field name',
|
|
|
|
+ })
|
|
@IsString()
|
|
@IsString()
|
|
@IsNotEmpty({
|
|
@IsNotEmpty({
|
|
message: 'field_name is empty',
|
|
message: 'field_name is empty',
|
|
@@ -47,49 +51,63 @@ export class ManageIndex {
|
|
}
|
|
}
|
|
|
|
|
|
export class DescribeIndex {
|
|
export class DescribeIndex {
|
|
- @ApiProperty()
|
|
|
|
|
|
+ @ApiProperty({
|
|
|
|
+ description: 'Milvus collection description',
|
|
|
|
+ })
|
|
@IsString()
|
|
@IsString()
|
|
@IsNotEmpty({
|
|
@IsNotEmpty({
|
|
message: 'collection_name is empty',
|
|
message: 'collection_name is empty',
|
|
})
|
|
})
|
|
readonly collection_name: string;
|
|
readonly collection_name: string;
|
|
|
|
|
|
- @ApiProperty()
|
|
|
|
|
|
+ @ApiProperty({
|
|
|
|
+ description: 'field name',
|
|
|
|
+ })
|
|
@IsString()
|
|
@IsString()
|
|
@IsOptional()
|
|
@IsOptional()
|
|
readonly field_name?: string;
|
|
readonly field_name?: string;
|
|
}
|
|
}
|
|
|
|
|
|
export class GetIndexState {
|
|
export class GetIndexState {
|
|
- @ApiProperty()
|
|
|
|
|
|
+ @ApiProperty({
|
|
|
|
+ description: 'Milvus collection name',
|
|
|
|
+ })
|
|
@IsString()
|
|
@IsString()
|
|
@IsNotEmpty({
|
|
@IsNotEmpty({
|
|
message: 'collection_name is empty',
|
|
message: 'collection_name is empty',
|
|
})
|
|
})
|
|
readonly collection_name: string;
|
|
readonly collection_name: string;
|
|
|
|
|
|
- @ApiProperty()
|
|
|
|
|
|
+ @ApiProperty({
|
|
|
|
+ description: 'field name',
|
|
|
|
+ })
|
|
@IsString()
|
|
@IsString()
|
|
@IsOptional()
|
|
@IsOptional()
|
|
readonly field_name?: string;
|
|
readonly field_name?: string;
|
|
}
|
|
}
|
|
|
|
|
|
export class GetIndexProgress {
|
|
export class GetIndexProgress {
|
|
- @ApiProperty()
|
|
|
|
|
|
+ @ApiProperty({
|
|
|
|
+ description: 'Milvus collection name',
|
|
|
|
+ })
|
|
@IsString()
|
|
@IsString()
|
|
@IsNotEmpty({
|
|
@IsNotEmpty({
|
|
message: 'collection_name is empty',
|
|
message: 'collection_name is empty',
|
|
})
|
|
})
|
|
readonly collection_name: string;
|
|
readonly collection_name: string;
|
|
|
|
|
|
- @ApiProperty()
|
|
|
|
|
|
+ @ApiProperty({
|
|
|
|
+ description: 'index name',
|
|
|
|
+ })
|
|
@IsString()
|
|
@IsString()
|
|
@IsNotEmpty({
|
|
@IsNotEmpty({
|
|
message: 'index_name is empty',
|
|
message: 'index_name is empty',
|
|
})
|
|
})
|
|
readonly index_name: string;
|
|
readonly index_name: string;
|
|
|
|
|
|
- @ApiProperty()
|
|
|
|
|
|
+ @ApiProperty({
|
|
|
|
+ description: 'field name',
|
|
|
|
+ })
|
|
@IsString()
|
|
@IsString()
|
|
@IsOptional()
|
|
@IsOptional()
|
|
readonly field_name?: string;
|
|
readonly field_name?: string;
|