fix: 为cc.iotkit.common.service下的接口类,添加实现类

V0.5.x
gaoyoulong 2024-03-21 17:48:19 +08:00
parent 60b7164575
commit 3af34fbc11
5 changed files with 14 additions and 4 deletions

View File

@ -6,6 +6,7 @@ import cc.iotkit.common.constant.CacheNames;
import cc.iotkit.common.constant.UserConstants;
import cc.iotkit.common.exception.BizException;
import cc.iotkit.common.redis.utils.CacheUtils;
import cc.iotkit.common.service.ConfigService;
import cc.iotkit.common.utils.*;
import cc.iotkit.data.ICommonData;
import cc.iotkit.data.manager.*;
@ -38,7 +39,7 @@ import java.util.List;
*/
@RequiredArgsConstructor
@Service
public class SysConfigServiceImpl implements ISysConfigService {
public class SysConfigServiceImpl implements ISysConfigService, ConfigService {
@Autowired
private ISysConfigData sysConfigData;
@ -184,6 +185,7 @@ public class SysConfigServiceImpl implements ISysConfigService {
* @param configKey key
* @return
*/
@Override
public String getConfigValue(String configKey) {
return SpringUtils.getAopProxy(this).selectConfigByKey(configKey);
}

View File

@ -4,6 +4,7 @@ import cc.iotkit.common.constant.UserConstants;
import cc.iotkit.common.enums.ErrCode;
import cc.iotkit.common.exception.BizException;
import cc.iotkit.common.satoken.utils.LoginHelper;
import cc.iotkit.common.service.DeptService;
import cc.iotkit.common.utils.MapstructUtils;
import cc.iotkit.common.utils.SpringUtils;
import cc.iotkit.common.utils.StringUtils;
@ -33,7 +34,7 @@ import java.util.stream.Collectors;
*/
@RequiredArgsConstructor
@Service
public class SysDeptServiceImpl implements ISysDeptService {
public class SysDeptServiceImpl implements ISysDeptService, DeptService {
private final ISysDeptData sysDeptData;
@ -121,6 +122,7 @@ public class SysDeptServiceImpl implements ISysDeptService {
* @param deptIds ID
* @return
*/
@Override
public String selectDeptNameByIds(String deptIds) {
List<String> list = new ArrayList<>();
for (Long id : StringUtils.splitTo(deptIds, Convert::toLong)) {

View File

@ -183,6 +183,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService, DictService
* @return
*/
@SuppressWarnings("unchecked cast")
@Override
public String getDictLabel(String dictType, String dictValue, String separator) {
// 优先从本地缓存获取
List<SysDictDataVo> datas = (List<SysDictDataVo>) SaHolder.getStorage().get(CacheConstants.SYS_DICT_KEY + dictType);
@ -210,6 +211,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService, DictService
* @return
*/
@SuppressWarnings("unchecked cast")
@Override
public String getDictValue(String dictType, String dictLabel, String separator) {
// 优先从本地缓存获取
List<SysDictDataVo> datas = (List<SysDictDataVo>) SaHolder.getStorage().get(CacheConstants.SYS_DICT_KEY + dictType);

View File

@ -9,6 +9,7 @@ import cc.iotkit.common.oss.entity.UploadResult;
import cc.iotkit.common.oss.enumd.AccessPolicyType;
import cc.iotkit.common.oss.exception.OssException;
import cc.iotkit.common.oss.factory.OssFactory;
import cc.iotkit.common.service.OssService;
import cc.iotkit.common.utils.MapstructUtils;
import cc.iotkit.common.utils.SpringUtils;
import cc.iotkit.common.utils.StringUtils;
@ -38,7 +39,7 @@ import java.util.List;
@Slf4j
@RequiredArgsConstructor
@Service
public class SysOssServiceImpl implements ISysOssService {
public class SysOssServiceImpl implements ISysOssService, OssService {
private final ISysOssData sysOssData;
@ -60,6 +61,7 @@ public class SysOssServiceImpl implements ISysOssService {
return list;
}
@Override
public String selectUrlByIds(String ossIds) {
List<String> list = new ArrayList<>();
for (Long id : StringUtils.splitTo(ossIds, Convert::toLong)) {

View File

@ -6,6 +6,7 @@ import cc.iotkit.common.constant.UserConstants;
import cc.iotkit.common.enums.ErrCode;
import cc.iotkit.common.exception.BizException;
import cc.iotkit.common.satoken.utils.LoginHelper;
import cc.iotkit.common.service.UserService;
import cc.iotkit.common.utils.MapstructUtils;
import cc.iotkit.common.utils.StreamUtils;
import cc.iotkit.data.system.*;
@ -34,7 +35,7 @@ import java.util.List;
*/
@RequiredArgsConstructor
@Service
public class SysUserServiceImpl implements ISysUserService {
public class SysUserServiceImpl implements ISysUserService, UserService {
@Autowired
private ISysUserData sysUserData;
@ -55,6 +56,7 @@ public class SysUserServiceImpl implements ISysUserService {
private ISysUserPostData sysUserPostData;
@Override
public String selectUserNameById(Long userId) {
return null;
}