mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-04-23 02:48:34 +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
|
* @author zhujie
|
||||||
*/
|
*/
|
||||||
@Mapper(componentModel = MappingConstants.ComponentModel.SPRING, unmappedTargetPolicy = ReportingPolicy.IGNORE)
|
@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获取客户端详情
|
* 根据客户端id获取客户端详情
|
||||||
|
*
|
||||||
|
* @see org.dromara.system.domain.convert.SysClientVoConvert
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public RemoteClientVo queryByClientId(String clientId) {
|
public RemoteClientVo queryByClientId(String clientId) {
|
||||||
|
|||||||
@@ -25,6 +25,13 @@ public class RemoteDictServiceImpl implements RemoteDictService {
|
|||||||
|
|
||||||
private final ISysDictTypeService sysDictTypeService;
|
private final ISysDictTypeService sysDictTypeService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* remote根据字典类型查询字典
|
||||||
|
*
|
||||||
|
* @param dictType 字典类型
|
||||||
|
* @return RemoteDictTypeVo
|
||||||
|
* @see org.dromara.system.domain.convert.SysDictTypeVoConvert
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public RemoteDictTypeVo selectDictTypeByType(String dictType) {
|
public RemoteDictTypeVo selectDictTypeByType(String dictType) {
|
||||||
SysDictTypeVo vo = sysDictTypeService.selectDictTypeByType(dictType);
|
SysDictTypeVo vo = sysDictTypeService.selectDictTypeByType(dictType);
|
||||||
@@ -32,10 +39,11 @@ public class RemoteDictServiceImpl implements RemoteDictService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据字典类型查询字典数据
|
* remote根据字典类型查询字典数据
|
||||||
*
|
*
|
||||||
* @param dictType 字典类型
|
* @param dictType 字典类型
|
||||||
* @return 字典数据集合信息
|
* @return 字典数据集合信息
|
||||||
|
* @see org.dromara.system.domain.convert.SysDictDataVoConvert
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<RemoteDictDataVo> selectDictDataByType(String dictType) {
|
public List<RemoteDictDataVo> selectDictDataByType(String dictType) {
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ public class RemoteTenantServiceImpl implements RemoteTenantService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据租户id获取租户详情
|
* 根据租户id获取租户详情
|
||||||
|
*
|
||||||
|
* @see org.dromara.system.domain.convert.SysTenantVoConvert
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public RemoteTenantVo queryByTenantId(String tenantId) {
|
public RemoteTenantVo queryByTenantId(String tenantId) {
|
||||||
|
|||||||
@@ -305,6 +305,7 @@ public class RemoteUserServiceImpl implements RemoteUserService {
|
|||||||
*
|
*
|
||||||
* @param userIds 用户ids
|
* @param userIds 用户ids
|
||||||
* @return 用户列表
|
* @return 用户列表
|
||||||
|
* @see org.dromara.system.domain.convert.SysUserVoConvert
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<RemoteUserVo> selectListByIds(List<Long> userIds) {
|
public List<RemoteUserVo> selectListByIds(List<Long> userIds) {
|
||||||
|
|||||||
Reference in New Issue
Block a user