/**
|
# __----~~~~~~~~~~~------___
|
# . . ~~//====...... __--~ ~~
|
# -. \_|// |||\\ ~~~~~~::::... /~
|
# ___-==_ _-~o~ \/ ||| \\ _/~~-
|
# __---~~~.==~||\=_ -_--~/_-~|- |\\ \\ _/~
|
# _-~~ .=~ | \\-_ '-~7 /- / || \ /
|
# .~ .~ | \\ -_ / /- / || \ /
|
# / ____ / | \\ ~-_/ /|- _/ .|| \ /
|
# |~~ ~~|--~~~~--_ \ ~==-/ | \~--===~~ .\
|
# ' ~-| /| |-~\~~ __--~~
|
# |-~~-_/ | | ~\_ _-~ /\
|
# / \ \__ \/~ \__
|
# _--~ _/ | .-~~____--~-/ ~~==.
|
# ((->/~ '.|||' -_| ~~-/ , . _||
|
# -_ ~\ ~~---l__i__i__i--~~_/
|
# _-~-__ ~) \--______________--~~
|
# //.-~~~-~_--~- |-------~~~~~~~~
|
# //.-~~~--\
|
# 神兽保佑
|
# 永无BUG!
|
*/
|
package com.nanjing.water.service.convert;
|
|
import com.nanjing.water.entity.request.waterfacility.ReqCreateWaterFacility;
|
import com.nanjing.water.entity.request.waterfacility.ReqModifyWaterFacility;
|
import com.nanjing.water.repository.po.WaterFacilityPO;
|
import com.nanjing.water.repository.vo.WaterFacilityVO;
|
import org.mapstruct.Mapper;
|
import org.mapstruct.factory.Mappers;
|
|
import java.util.List;
|
|
/**
|
* 设备信息
|
* @author {#=author}
|
*/
|
@Mapper
|
public interface WaterFacilityConvert {
|
WaterFacilityConvert INSTANCE = Mappers.getMapper(WaterFacilityConvert.class);
|
|
WaterFacilityPO toCreate(ReqCreateWaterFacility request);
|
WaterFacilityPO toModify(ReqModifyWaterFacility request);
|
|
WaterFacilityVO toVo(WaterFacilityPO item);
|
List<WaterFacilityVO> toVo(List<WaterFacilityPO> list);
|
}
|