refactor: 系统功能重构
This commit is contained in:
@@ -4,22 +4,20 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.youlai.system.model.entity.SysDict;
|
||||
import com.youlai.system.model.form.DictForm;
|
||||
import com.youlai.system.model.vo.DictPageVO;
|
||||
import org.mapstruct.InheritInverseConfiguration;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
/**
|
||||
* 字典数据项对象转换器
|
||||
* 字典 对象转换器
|
||||
*
|
||||
* @author haoxr
|
||||
* @author Ray Hao
|
||||
* @since 2022/6/8
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface DictConverter {
|
||||
|
||||
Page<DictPageVO> entity2Page(Page<SysDict> page);
|
||||
Page<DictPageVO> convertToPageVo(Page<SysDict> page);
|
||||
|
||||
DictForm entity2Form(SysDict entity);
|
||||
DictForm convertToForm(SysDict entity);
|
||||
|
||||
@InheritInverseConfiguration(name="entity2Form")
|
||||
SysDict form2Entity(DictForm entity);
|
||||
SysDict convertToEntity(DictForm entity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user