style: 返回值警告消除
返回值警告消除 由 Result 为 Result<?> 由 Option 为 Option<Type>
This commit is contained in:
@@ -35,6 +35,6 @@ public interface DictItemConverter {
|
||||
@Mapping(target = "value", source = "id"),
|
||||
@Mapping(target = "label", source = "name")
|
||||
})
|
||||
Option convertToOption(SysDictItem dictItem);
|
||||
List<Option> convertToOption(List<SysDictItem> dictItems);
|
||||
Option<Long> convertToOption(SysDictItem dictItem);
|
||||
List<Option<Long>> convertToOption(List<SysDictItem> dictItems);
|
||||
}
|
||||
|
||||
@@ -30,7 +30,6 @@ public interface GenConfigConverter {
|
||||
|
||||
GenConfigForm.FieldConfig toGenFieldConfigForm(GenFieldConfig genFieldConfig);
|
||||
|
||||
|
||||
GenConfig toGenConfig(GenConfigForm formData);
|
||||
|
||||
List<GenFieldConfig> toGenFieldConfig(List<GenConfigForm.FieldConfig> fieldConfigs);
|
||||
|
||||
@@ -26,10 +26,9 @@ public interface RoleConverter {
|
||||
@Mapping(target = "value", source = "id"),
|
||||
@Mapping(target = "label", source = "name")
|
||||
})
|
||||
Option entity2Option(SysRole role);
|
||||
Option<Long> entity2Option(SysRole role);
|
||||
|
||||
|
||||
List<Option> entities2Options(List<SysRole> roles);
|
||||
List<Option<Long>> entities2Options(List<SysRole> roles);
|
||||
|
||||
SysRole toEntity(RoleForm roleForm);
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ import org.mapstruct.Mapper;
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface SysConfigConverter {
|
||||
|
||||
Page<ConfigVO> convertToPageVo(Page<SysConfig> page);
|
||||
|
||||
SysConfig toEntity(ConfigForm configForm);
|
||||
|
||||
Reference in New Issue
Block a user