| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -37,7 +37,6 @@ import java.util.Map; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					@Slf4j | 
					 | 
					 | 
					 | 
					@Slf4j | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					public class VectorParamController { | 
					 | 
					 | 
					 | 
					public class VectorParamController { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    private final VectorParamService vectorParamService; | 
					 | 
					 | 
					 | 
					    private final VectorParamService vectorParamService; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    private final VectorParamLogService vectorParamLogService; | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @GetMapping("/listPage") | 
					 | 
					 | 
					 | 
					    @GetMapping("/listPage") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @ApiOperation(value = "分页查询") | 
					 | 
					 | 
					 | 
					    @ApiOperation(value = "分页查询") | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -57,13 +56,7 @@ public class VectorParamController { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @ApiOperation(value = "保存向量参数配置") | 
					 | 
					 | 
					 | 
					    @ApiOperation(value = "保存向量参数配置") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @ApiOperationSupport(order = 3) | 
					 | 
					 | 
					 | 
					    @ApiOperationSupport(order = 3) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public R save(@RequestBody VectorParamEntity req) { | 
					 | 
					 | 
					 | 
					    public R save(@RequestBody VectorParamEntity req) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        Boolean result = vectorParamService.save(req); | 
					 | 
					 | 
					 | 
					        return R.status(vectorParamService.saveWithLog(req)); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if (result) { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            vectorParamLogService.create(VectorParamLogEntity.builder() | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    .vectorParamId(req.getId()) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    .type(DataOperateType.CREATE.getCode()).build()); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        } | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return R.status(result); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @DeleteMapping("/remove") | 
					 | 
					 | 
					 | 
					    @DeleteMapping("/remove") | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -77,13 +70,7 @@ public class VectorParamController { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @ApiOperation(value = "编辑向量参数配置") | 
					 | 
					 | 
					 | 
					    @ApiOperation(value = "编辑向量参数配置") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @ApiOperationSupport(order = 5) | 
					 | 
					 | 
					 | 
					    @ApiOperationSupport(order = 5) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public R update(@RequestBody VectorParamEntity req) { | 
					 | 
					 | 
					 | 
					    public R update(@RequestBody VectorParamEntity req) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        Boolean result = vectorParamService.updateById(req); | 
					 | 
					 | 
					 | 
					        return R.status(vectorParamService.updateWithLog(req)); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if (result) { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            vectorParamLogService.edit(VectorParamLogEntity.builder() | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    .vectorParamId(req.getId()) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    .type(DataOperateType.UPDATE.getCode()).build()); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        } | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return R.status(result); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @GetMapping("/getAuthorization") | 
					 | 
					 | 
					 | 
					    @GetMapping("/getAuthorization") | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |