短信转换工具
This commit is contained in:
parent
98019a9996
commit
f8fcd4fd48
|
@ -0,0 +1,30 @@
|
|||
package net.maku.system.convert;
|
||||
|
||||
import net.maku.sms.config.SmsConfig;
|
||||
import net.maku.system.entity.SysSmsConfigEntity;
|
||||
import net.maku.system.vo.SysSmsConfigVO;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 短信配置
|
||||
*
|
||||
* @author 阿沐 babamu@126.com
|
||||
*/
|
||||
@Mapper
|
||||
public interface SysSmsConfigConvert {
|
||||
SysSmsConfigConvert INSTANCE = Mappers.getMapper(SysSmsConfigConvert.class);
|
||||
|
||||
SysSmsConfigEntity convert(SysSmsConfigVO vo);
|
||||
|
||||
SysSmsConfigVO convert(SysSmsConfigEntity entity);
|
||||
|
||||
List<SysSmsConfigVO> convertList(List<SysSmsConfigEntity> list);
|
||||
|
||||
SmsConfig convert2(SysSmsConfigEntity entity);
|
||||
|
||||
List<SmsConfig> convertList2(List<SysSmsConfigEntity> list);
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package net.maku.system.convert;
|
||||
|
||||
import net.maku.system.entity.SysSmsLogEntity;
|
||||
import net.maku.system.vo.SysSmsLogVO;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 短信日志
|
||||
*
|
||||
* @author 阿沐 babamu@126.com
|
||||
*/
|
||||
@Mapper
|
||||
public interface SysSmsLogConvert {
|
||||
SysSmsLogConvert INSTANCE = Mappers.getMapper(SysSmsLogConvert.class);
|
||||
|
||||
SysSmsLogVO convert(SysSmsLogEntity entity);
|
||||
|
||||
List<SysSmsLogVO> convertList(List<SysSmsLogEntity> list);
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user