mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 04:27:39 +00:00
(improvement)(headless) ClickHouse also adopts a connection-based approach, and the package path issue in UserRepositoryImpl has been fixed (#1622)
This commit is contained in:
@@ -3,11 +3,12 @@ package com.tencent.supersonic.auth.authentication.persistence.repository.impl;
|
|||||||
|
|
||||||
import com.tencent.supersonic.auth.authentication.persistence.dataobject.UserDO;
|
import com.tencent.supersonic.auth.authentication.persistence.dataobject.UserDO;
|
||||||
import com.tencent.supersonic.auth.authentication.persistence.dataobject.UserDOExample;
|
import com.tencent.supersonic.auth.authentication.persistence.dataobject.UserDOExample;
|
||||||
import com.tencent.supersonic.auth.authentication.persistence.repository.UserRepository;
|
|
||||||
import com.tencent.supersonic.auth.authentication.persistence.mapper.UserDOMapper;
|
import com.tencent.supersonic.auth.authentication.persistence.mapper.UserDOMapper;
|
||||||
|
import com.tencent.supersonic.auth.authentication.persistence.repository.UserRepository;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class UserRepositoryImpl implements UserRepository {
|
public class UserRepositoryImpl implements UserRepository {
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
package com.tencent.supersonic.headless.server.pojo;
|
package com.tencent.supersonic.headless.server.pojo;
|
||||||
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class ClickHouseParametersBuilder implements DbParametersBuilder {
|
public class ClickHouseParametersBuilder implements DbParametersBuilder {
|
||||||
@@ -14,17 +15,11 @@ public class ClickHouseParametersBuilder implements DbParametersBuilder {
|
|||||||
public List<DatabaseParameter> build() {
|
public List<DatabaseParameter> build() {
|
||||||
List<DatabaseParameter> databaseParameters = new ArrayList<>();
|
List<DatabaseParameter> databaseParameters = new ArrayList<>();
|
||||||
DatabaseParameter host = new DatabaseParameter();
|
DatabaseParameter host = new DatabaseParameter();
|
||||||
host.setComment("host");
|
host.setComment("链接");
|
||||||
host.setName("host");
|
host.setName("url");
|
||||||
host.setPlaceholder("请输入host");
|
host.setPlaceholder("请输入链接");
|
||||||
databaseParameters.add(host);
|
databaseParameters.add(host);
|
||||||
|
|
||||||
DatabaseParameter port = new DatabaseParameter();
|
|
||||||
port.setComment("port");
|
|
||||||
port.setName("port");
|
|
||||||
port.setPlaceholder("请输入端口号");
|
|
||||||
databaseParameters.add(port);
|
|
||||||
|
|
||||||
DatabaseParameter userName = new DatabaseParameter();
|
DatabaseParameter userName = new DatabaseParameter();
|
||||||
userName.setComment("用户名");
|
userName.setComment("用户名");
|
||||||
userName.setName("username");
|
userName.setName("username");
|
||||||
|
|||||||
Reference in New Issue
Block a user