/** # __----~~~~~~~~~~~------___ # . . ~~//====...... __--~ ~~ # -. \_|// |||\\ ~~~~~~::::... /~ # ___-==_ _-~o~ \/ ||| \\ _/~~- # __---~~~.==~||\=_ -_--~/_-~|- |\\ \\ _/~ # _-~~ .=~ | \\-_ '-~7 /- / || \ / # .~ .~ | \\ -_ / /- / || \ / # / ____ / | \\ ~-_/ /|- _/ .|| \ / # |~~ ~~|--~~~~--_ \ ~==-/ | \~--===~~ .\ # ' ~-| /| |-~\~~ __--~~ # |-~~-_/ | | ~\_ _-~ /\ # / \ \__ \/~ \__ # _--~ _/ | .-~~____--~-/ ~~==. # ((->/~ '.|||' -_| ~~-/ , . _|| # -_ ~\ ~~---l__i__i__i--~~_/ # _-~-__ ~) \--______________--~~ # //.-~~~-~_--~- |-------~~~~~~~~ # //.-~~~--\ # 神兽保佑 # 永无BUG! */ package com.lunhan.xxx.service.convert; import com.lunhan.xxx.entity.request.notice.ReqCreateNotice; import com.lunhan.xxx.entity.request.notice.ReqModifyNotice; import com.lunhan.xxx.repository.po.NoticePO; import com.lunhan.xxx.repository.vo.NoticeVO; import org.mapstruct.Mapper; import org.mapstruct.factory.Mappers; import java.util.List; /** * 公告 * @author {#=author} * @description 公告 */ @Mapper public interface NoticeConvert { NoticeConvert INSTANCE = Mappers.getMapper(NoticeConvert.class); NoticePO toCreate(ReqCreateNotice request); NoticePO toModify(ReqModifyNotice request); NoticeVO toVo(NoticePO item); List toVo(List list); }