mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-31 03:32:43 +08:00
Error modifying environment
This commit is contained in:
@ -7,6 +7,7 @@ import ai.chat2db.spi.model.KeyValue;
|
||||
import ai.chat2db.spi.model.SSHInfo;
|
||||
import ai.chat2db.spi.model.SSLInfo;
|
||||
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
@ -101,4 +102,10 @@ public class DataSourceCreateParam {
|
||||
* @see ai.chat2db.server.domain.api.enums.DataSourceKindEnum
|
||||
*/
|
||||
private String kind;
|
||||
|
||||
/**
|
||||
* 环境id
|
||||
*/
|
||||
@NotNull
|
||||
private Long environmentId;
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ public interface DataSourceService {
|
||||
* @return
|
||||
* @throws ai.chat2db.server.tools.common.exception.DataNotFoundException
|
||||
*/
|
||||
DataResult<DataSource> queryExistent(@NotNull Long id);
|
||||
DataResult<DataSource> queryExistent(@NotNull Long id, DataSourceSelector selector);
|
||||
|
||||
/**
|
||||
* 克隆连接
|
||||
|
Reference in New Issue
Block a user