style: 返回值警告消除

返回值警告消除
由 Result 为  Result<?>
由 Option 为 Option<Type>
This commit is contained in:
Theo
2024-08-02 23:43:40 +08:00
parent 8c6f95148d
commit e694ac5bb7
20 changed files with 69 additions and 69 deletions

View File

@@ -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);
}

View File

@@ -30,7 +30,6 @@ public interface GenConfigConverter {
GenConfigForm.FieldConfig toGenFieldConfigForm(GenFieldConfig genFieldConfig);
GenConfig toGenConfig(GenConfigForm formData);
List<GenFieldConfig> toGenFieldConfig(List<GenConfigForm.FieldConfig> fieldConfigs);

View File

@@ -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);

View File

@@ -14,6 +14,7 @@ import org.mapstruct.Mapper;
*/
@Mapper(componentModel = "spring")
public interface SysConfigConverter {
Page<ConfigVO> convertToPageVo(Page<SysConfig> page);
SysConfig toEntity(ConfigForm configForm);