package com.qianwen.smartman.modules.notify.convert;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import java.util.List;
|
import org.mapstruct.Mapper;
|
import org.mapstruct.Mapping;
|
import org.mapstruct.Mappings;
|
import org.mapstruct.factory.Mappers;
|
import com.qianwen.smartman.modules.notify.entity.NotifySystem;
|
import com.qianwen.smartman.modules.notify.vo.NotifySystemVO;
|
|
@Mapper
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/notify/convert/NotifySystemConvert.class */
|
public interface NotifySystemConvert {
|
public static final NotifySystemConvert INSTANCE = (NotifySystemConvert) Mappers.getMapper(NotifySystemConvert.class);
|
|
@Mappings({})
|
NotifySystemVO convert(NotifySystem notifySystem);
|
|
@Mappings({@Mapping(source = "id", target = "id")})
|
NotifySystem convert(NotifySystemVO notifySystemVO);
|
|
@Mappings({})
|
List<NotifySystemVO> convert(List<NotifySystem> list);
|
|
@Mappings({})
|
default IPage<NotifySystemVO> convert(IPage<NotifySystem> page) {
|
Page page2 = new Page(page.getCurrent(), page.getSize(), page.getTotal());
|
page2.setRecords(convert(page.getRecords()));
|
return page2;
|
}
|
}
|