40 lines
768 B
Java
40 lines
768 B
Java
|
|
package com.newyetai.component.dict.mapstruct;
|
||
|
|
|
||
|
|
import org.mapstruct.Mapper;
|
||
|
|
import org.mapstruct.factory.Mappers;
|
||
|
|
|
||
|
|
import com.newyetai.component.dict.dto.DictDTO;
|
||
|
|
import com.newyetai.component.dict.dto.DictQueryDTO;
|
||
|
|
import com.newyetai.component.dict.entity.Dict;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @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);
|
||
|
|
|
||
|
|
}
|