@Override
    public DataResult<Long> create(DataSourceAccessCreatParam param) {
        DataSourceAccessDO data = dataSourceAccessConverter.param2do(param, ContextUtils.getUserId());

        getAccessMapper().insert(data);
        return DataResult.of(data.getId());
    }
Data Source Access

@author Jiaju Zhuang
chat2db-server/chat2db-server-domain/chat2db-server-domain-core/src/main/java/ai/chat2db/server/domain/core/impl/DataSourceAccessServiceImpl.java