mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-10 02:07:12 +08:00
refactor: Add logs to the system operation method
This commit is contained in:
@@ -28,8 +28,8 @@ from ..crud.field import get_fields_by_table_id
|
||||
from ..crud.table import get_tables_by_ds_id
|
||||
from ..models.datasource import CoreDatasource, CreateDatasource, TableObj, CoreTable, CoreField, FieldObj, \
|
||||
TableSchemaResponse, ColumnSchemaResponse, PreviewResponse
|
||||
from sqlbot_xpack.audit.models.log_model import OperationType, OperationModules
|
||||
from sqlbot_xpack.audit.schemas.logger_decorator import LogConfig, system_log
|
||||
from common.audit.models.log_model import OperationType, OperationModules
|
||||
from common.audit.schemas.logger_decorator import LogConfig, system_log
|
||||
|
||||
router = APIRouter(tags=["Datasource"], prefix="/datasource")
|
||||
path = settings.EXCEL_PATH
|
||||
|
||||
@@ -5,8 +5,8 @@ from apps.datasource.crud.recommended_problem import get_datasource_recommended,
|
||||
save_recommended_problem, get_datasource_recommended_base
|
||||
from apps.datasource.models.datasource import RecommendedProblemBase
|
||||
from common.core.deps import SessionDep, CurrentUser
|
||||
from sqlbot_xpack.audit.models.log_model import OperationType, OperationModules
|
||||
from sqlbot_xpack.audit.schemas.logger_decorator import LogConfig, system_log
|
||||
from common.audit.models.log_model import OperationType, OperationModules
|
||||
from common.audit.schemas.logger_decorator import LogConfig, system_log
|
||||
|
||||
router = APIRouter(tags=["recommended_problem"], prefix="/recommended_problem")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user