@Override
    public DataResult<Long> createWithPermission(OperationSavedParam param) {
        OperationSavedDO userSavedDdlDO = operationConverter.param2do(param);
        userSavedDdlDO.setGmtCreate(LocalDateTime.now());
        userSavedDdlDO.setGmtModified(LocalDateTime.now());
        userSavedDdlDO.setUserId(ContextUtils.getUserId());
        getMapper().insert(userSavedDdlDO);
        return DataResult.of(userSavedDdlDO.getId());
    }
@author moji
@version UserSavedDdlCoreServiceImpl.java, v 0.1 September 25, 2022 15:50 moji Exp $
@date 2022/09/25
chat2db-server/chat2db-server-domain/chat2db-server-domain-core/src/main/java/ai/chat2db/server/domain/core/impl/OperationServiceImpl.java