Merge branch 'developing' into team

This commit is contained in:
JiaJu Zhuang
2023-08-13 12:28:28 +08:00
130 changed files with 3938 additions and 1083 deletions

View File

@ -32,6 +32,11 @@ public enum AiSqlSourceEnum implements BaseEnum<String> {
*/
CHAT2DBAI("CHAT2DB OPENAI"),
/**
* CLAUDE AI
*/
CLAUDEAI("CLAUDE AI"),
;
final String description;

View File

@ -74,4 +74,9 @@ public class Operation {
* 是否在tab中被打开,y表示打开,n表示未打开
*/
private String tabOpened;
/**
* operation type
*/
private String operationType;
}

View File

@ -41,4 +41,9 @@ public class OperationPageQueryParam extends PageQueryParam {
* orderBy modify time desc
*/
private boolean orderByDesc;
/**
* operation type
*/
private String operationType;
}

View File

@ -49,4 +49,9 @@ public class OperationSavedParam {
* 是否在tab中被打开,y表示打开,n表示未打开
*/
private String tabOpened;
/**
* operation type
*/
private String operationType;
}

View File

@ -57,4 +57,9 @@ public class OperationUpdateParam {
* 是否在tab中被打开,y表示打开,n表示未打开
*/
private String tabOpened;
/**
* operation type
*/
private String operationType;
}

View File

@ -1,5 +1,6 @@
package ai.chat2db.server.domain.api.service;
import ai.chat2db.server.tools.base.wrapper.result.DataResult;
import ai.chat2db.server.tools.base.wrapper.result.ListResult;
import ai.chat2db.spi.model.Function;
import jakarta.validation.constraints.NotEmpty;
@ -18,5 +19,12 @@ public interface FunctionService {
*/
ListResult<Function> functions(@NotEmpty String databaseName, String schemaName);
/**
* Querying function information.
* @param databaseName
* @param schemaName
* @param functionName
* @return
*/
DataResult<Function> detail(String databaseName, String schemaName, String functionName);
}

View File

@ -1,5 +1,6 @@
package ai.chat2db.server.domain.api.service;
import ai.chat2db.server.tools.base.wrapper.result.DataResult;
import ai.chat2db.server.tools.base.wrapper.result.ListResult;
import ai.chat2db.spi.model.Procedure;
import jakarta.validation.constraints.NotEmpty;
@ -13,4 +14,13 @@ public interface ProcedureService {
* @return
*/
ListResult<Procedure> procedures(@NotEmpty String databaseName, String schemaName);
/**
* Querying procedure information.
* @param databaseName
* @param schemaName
* @param procedureName
* @return
*/
DataResult<Procedure> detail(String databaseName, String schemaName, String procedureName);
}

View File

@ -1,5 +1,6 @@
package ai.chat2db.server.domain.api.service;
import ai.chat2db.server.tools.base.wrapper.result.DataResult;
import ai.chat2db.server.tools.base.wrapper.result.ListResult;
import ai.chat2db.spi.model.Trigger;
import jakarta.validation.constraints.NotEmpty;
@ -14,4 +15,12 @@ public interface TriggerService {
*/
ListResult<Trigger> triggers(@NotEmpty String databaseName, String schemaName);
/**
* Querying trigger information.
* @param databaseName
* @param schemaName
* @param triggerName
* @return
*/
DataResult<Trigger> detail(String databaseName, String schemaName, String triggerName);
}

View File

@ -1,5 +1,6 @@
package ai.chat2db.server.domain.api.service;
import ai.chat2db.server.tools.base.wrapper.result.DataResult;
import ai.chat2db.server.tools.base.wrapper.result.ListResult;
import ai.chat2db.spi.model.Table;
import jakarta.validation.constraints.NotEmpty;
@ -19,4 +20,11 @@ public interface ViewService {
ListResult<Table> views(@NotEmpty String databaseName, String schemaName);
/**
* Querying the details of a view.
*
* @param databaseName
* @return
*/
DataResult<Table> detail(@NotEmpty String databaseName, String schemaName,String tableName);
}