refactor: 代码生成临时提交
This commit is contained in:
@@ -14,10 +14,10 @@ import org.mapstruct.Mapper;
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface DeptConverter {
|
||||
|
||||
DeptForm convertToForm(SysDept entity);
|
||||
DeptForm toForm(SysDept entity);
|
||||
|
||||
DeptVO convertToVo(SysDept entity);
|
||||
|
||||
SysDept convertToEntity(DeptForm deptForm);
|
||||
SysDept toEntity(DeptForm deptForm);
|
||||
|
||||
}
|
||||
@@ -17,7 +17,7 @@ public interface DictConverter {
|
||||
|
||||
Page<DictPageVO> convertToPageVo(Page<SysDict> page);
|
||||
|
||||
DictForm convertToForm(SysDict entity);
|
||||
DictForm toForm(SysDict entity);
|
||||
|
||||
SysDict convertToEntity(DictForm entity);
|
||||
SysDict toEntity(DictForm entity);
|
||||
}
|
||||
|
||||
@@ -23,10 +23,10 @@ public interface DictItemConverter {
|
||||
|
||||
Page<DictPageVO> convertToPageVo(Page<SysDictItem> page);
|
||||
|
||||
DictForm convertToForm(SysDictItem entity);
|
||||
DictForm toForm(SysDictItem entity);
|
||||
|
||||
SysDictItem convertToEntity(DictForm.DictItem dictFormDictItems);
|
||||
List<SysDictItem> convertToEntity(List<DictForm.DictItem> dictFormDictItems);
|
||||
SysDictItem toEntity(DictForm.DictItem dictFormDictItems);
|
||||
List<SysDictItem> toEntity(List<DictForm.DictItem> dictFormDictItems);
|
||||
|
||||
DictForm.DictItem convertToDictFormDictItem(SysDictItem entity);
|
||||
List<DictForm.DictItem> convertToDictFormDictItem(List<SysDictItem> entities);
|
||||
|
||||
@@ -18,9 +18,9 @@ public interface MenuConverter {
|
||||
MenuVO convertToVo(SysMenu entity);
|
||||
|
||||
@Mapping(target = "params", ignore = true)
|
||||
MenuForm convertToForm(SysMenu entity);
|
||||
MenuForm toForm(SysMenu entity);
|
||||
|
||||
@Mapping(target = "params", ignore = true)
|
||||
SysMenu convertToEntity(MenuForm menuForm);
|
||||
SysMenu toEntity(MenuForm menuForm);
|
||||
|
||||
}
|
||||
@@ -31,7 +31,7 @@ public interface RoleConverter {
|
||||
|
||||
List<Option> entities2Options(List<SysRole> roles);
|
||||
|
||||
SysRole convertToEntity(RoleForm roleForm);
|
||||
SysRole toEntity(RoleForm roleForm);
|
||||
|
||||
RoleForm convertToForm(SysRole entity);
|
||||
RoleForm toForm(SysRole entity);
|
||||
}
|
||||
@@ -28,16 +28,16 @@ public interface UserConverter {
|
||||
|
||||
Page<UserPageVO> toPageVo(Page<UserBO> bo);
|
||||
|
||||
UserForm convertToForm(SysUser entity);
|
||||
UserForm toForm(SysUser entity);
|
||||
|
||||
@InheritInverseConfiguration(name = "convertToForm")
|
||||
SysUser convertToEntity(UserForm entity);
|
||||
@InheritInverseConfiguration(name = "toForm")
|
||||
SysUser toEntity(UserForm entity);
|
||||
|
||||
@Mappings({
|
||||
@Mapping(target = "userId", source = "id")
|
||||
})
|
||||
UserInfoVO toUserInfoVo(SysUser entity);
|
||||
|
||||
SysUser convertToEntity(UserImportDTO vo);
|
||||
SysUser toEntity(UserImportDTO vo);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user