|
@@ -4,11 +4,12 @@ import cn.reghao.jutil.jdk.db.Page;
|
|
|
import cn.reghao.jutil.jdk.db.PageList;
|
|
import cn.reghao.jutil.jdk.db.PageList;
|
|
|
import cn.reghao.tnb.account.api.dto.AccountInfo;
|
|
import cn.reghao.tnb.account.api.dto.AccountInfo;
|
|
|
import cn.reghao.tnb.account.api.dto.AccountRegistry;
|
|
import cn.reghao.tnb.account.api.dto.AccountRegistry;
|
|
|
|
|
+import cn.reghao.tnb.account.api.dto.AdminCreateAccount;
|
|
|
import cn.reghao.tnb.account.api.iface.AdminAccountService;
|
|
import cn.reghao.tnb.account.api.iface.AdminAccountService;
|
|
|
import cn.reghao.tnb.account.app.db.mapper.UserAccountMapper;
|
|
import cn.reghao.tnb.account.app.db.mapper.UserAccountMapper;
|
|
|
import cn.reghao.tnb.account.app.db.repository.AccountRepository;
|
|
import cn.reghao.tnb.account.app.db.repository.AccountRepository;
|
|
|
import cn.reghao.tnb.account.app.model.po.UserRegistry;
|
|
import cn.reghao.tnb.account.app.model.po.UserRegistry;
|
|
|
-import cn.reghao.tnb.account.app.service.impl.AccountRegistryServiceImpl;
|
|
|
|
|
|
|
+import cn.reghao.tnb.account.app.service.AccountRegistryService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.dubbo.config.annotation.DubboService;
|
|
import org.apache.dubbo.config.annotation.DubboService;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -26,10 +27,13 @@ public class AdminAccountServiceImpl implements AdminAccountService {
|
|
|
private final int pageSize = 100;
|
|
private final int pageSize = 100;
|
|
|
private final AccountRepository accountRepository;
|
|
private final AccountRepository accountRepository;
|
|
|
private final UserAccountMapper userAccountMapper;
|
|
private final UserAccountMapper userAccountMapper;
|
|
|
|
|
+ private final AccountRegistryService accountRegistryService;
|
|
|
|
|
|
|
|
- public AdminAccountServiceImpl(AccountRepository accountRepository, UserAccountMapper userAccountMapper) {
|
|
|
|
|
|
|
+ public AdminAccountServiceImpl(AccountRepository accountRepository, UserAccountMapper userAccountMapper,
|
|
|
|
|
+ AccountRegistryService accountRegistryService) {
|
|
|
this.accountRepository = accountRepository;
|
|
this.accountRepository = accountRepository;
|
|
|
this.userAccountMapper = userAccountMapper;
|
|
this.userAccountMapper = userAccountMapper;
|
|
|
|
|
+ this.accountRegistryService = accountRegistryService;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -53,4 +57,9 @@ public class AdminAccountServiceImpl implements AdminAccountService {
|
|
|
List<AccountInfo> list = userAccountMapper.findAccountInfoByPage(page);
|
|
List<AccountInfo> list = userAccountMapper.findAccountInfoByPage(page);
|
|
|
return PageList.pageList(pageNumber, pageSize, total, list);
|
|
return PageList.pageList(pageNumber, pageSize, total, list);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void createAccount(AdminCreateAccount adminCreateAccount) {
|
|
|
|
|
+ accountRegistryService.createAccount(adminCreateAccount);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|