2025-12-29 16:06:48 +08:00
|
|
|
package com.senmesh.component.dict.mapstruct;
|
2025-06-11 09:42:13 +08:00
|
|
|
|
|
|
|
|
import org.mapstruct.Mapper;
|
|
|
|
|
import org.mapstruct.factory.Mappers;
|
|
|
|
|
|
2025-12-29 16:06:48 +08:00
|
|
|
import com.senmesh.component.dict.dto.DictDTO;
|
|
|
|
|
import com.senmesh.component.dict.dto.DictQueryDTO;
|
|
|
|
|
import com.senmesh.component.dict.entity.Dict;
|
2025-06-11 09:42:13 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author sr on 2020-07-30
|
|
|
|
|
*/
|
|
|
|
|
@Mapper
|
|
|
|
|
public interface DictMapMapper {
|
|
|
|
|
|
|
|
|
|
DictMapMapper INSTANCE = Mappers.getMapper(DictMapMapper.class);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param dictDetailDTO
|
|
|
|
|
* @return
|
|
|
|
|
* @author sr on 2020-07-30
|
|
|
|
|
*/
|
|
|
|
|
Dict toEntity(DictDTO dictDTO);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param dictQueryDTO
|
|
|
|
|
* @return
|
|
|
|
|
* @author sr on 2020-07-30
|
|
|
|
|
*/
|
|
|
|
|
Dict toEntity(DictQueryDTO dictQueryDTO);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param dict
|
|
|
|
|
* @return
|
|
|
|
|
* @author sr on 2020-07-30
|
|
|
|
|
*/
|
|
|
|
|
DictDTO toDto(Dict dict);
|
|
|
|
|
|
|
|
|
|
}
|