mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-01-13 07:05:11 +08:00
!243 fix 增加remote调用dictTypeVo类转换mapper。完善引用注解声明方便阅读代码
* fix 增加remote调用dictTypeVo类转换mapper。完善引用注解声明方便阅读代码
This commit is contained in:
@@ -9,6 +9,7 @@ import org.mapstruct.ReportingPolicy;
|
||||
|
||||
/**
|
||||
* 字典数据转换器
|
||||
*
|
||||
* @author zhujie
|
||||
*/
|
||||
@Mapper(componentModel = MappingConstants.ComponentModel.SPRING, unmappedTargetPolicy = ReportingPolicy.IGNORE)
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package org.dromara.system.domain.convert;
|
||||
|
||||
import io.github.linpeilie.BaseMapper;
|
||||
import org.dromara.system.api.domain.vo.RemoteDictTypeVo;
|
||||
import org.dromara.system.domain.vo.SysDictTypeVo;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.MappingConstants;
|
||||
import org.mapstruct.ReportingPolicy;
|
||||
|
||||
/**
|
||||
* 字典类型转换器
|
||||
*
|
||||
* @author liyaoheng
|
||||
*/
|
||||
@Mapper(componentModel = MappingConstants.ComponentModel.SPRING, unmappedTargetPolicy = ReportingPolicy.IGNORE)
|
||||
public interface SysDictTypeVoConvert extends BaseMapper<SysDictTypeVo, RemoteDictTypeVo> {
|
||||
|
||||
}
|
||||
@@ -23,6 +23,8 @@ public class RemoteClientServiceImpl implements RemoteClientService {
|
||||
|
||||
/**
|
||||
* 根据客户端id获取客户端详情
|
||||
*
|
||||
* @see org.dromara.system.domain.convert.SysClientVoConvert
|
||||
*/
|
||||
@Override
|
||||
public RemoteClientVo queryByClientId(String clientId) {
|
||||
|
||||
@@ -25,6 +25,13 @@ public class RemoteDictServiceImpl implements RemoteDictService {
|
||||
|
||||
private final ISysDictTypeService sysDictTypeService;
|
||||
|
||||
/**
|
||||
* remote根据字典类型查询字典
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return RemoteDictTypeVo
|
||||
* @see org.dromara.system.domain.convert.SysDictTypeVoConvert
|
||||
*/
|
||||
@Override
|
||||
public RemoteDictTypeVo selectDictTypeByType(String dictType) {
|
||||
SysDictTypeVo vo = sysDictTypeService.selectDictTypeByType(dictType);
|
||||
@@ -32,10 +39,11 @@ public class RemoteDictServiceImpl implements RemoteDictService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据字典类型查询字典数据
|
||||
* remote根据字典类型查询字典数据
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 字典数据集合信息
|
||||
* @see org.dromara.system.domain.convert.SysDictDataVoConvert
|
||||
*/
|
||||
@Override
|
||||
public List<RemoteDictDataVo> selectDictDataByType(String dictType) {
|
||||
|
||||
@@ -24,6 +24,8 @@ public class RemoteTenantServiceImpl implements RemoteTenantService {
|
||||
|
||||
/**
|
||||
* 根据租户id获取租户详情
|
||||
*
|
||||
* @see org.dromara.system.domain.convert.SysTenantVoConvert
|
||||
*/
|
||||
@Override
|
||||
public RemoteTenantVo queryByTenantId(String tenantId) {
|
||||
|
||||
@@ -305,6 +305,7 @@ public class RemoteUserServiceImpl implements RemoteUserService {
|
||||
*
|
||||
* @param userIds 用户ids
|
||||
* @return 用户列表
|
||||
* @see org.dromara.system.domain.convert.SysUserVoConvert
|
||||
*/
|
||||
@Override
|
||||
public List<RemoteUserVo> selectListByIds(List<Long> userIds) {
|
||||
|
||||
Reference in New Issue
Block a user