package com.xindazhou.business.convert.community.sensitive;

import com.xindazhou.business.controller.admin.community.sensitive.vo.SensitiveWordPageReqVO;
import com.xindazhou.business.controller.admin.community.sensitive.vo.SensitiveWordRespVO;
import com.xindazhou.business.controller.admin.community.sensitive.vo.SensitiveWordSaveReqVO;
import com.xindazhou.business.dal.community.dataobject.sensitive.SensitiveWordDO;
import com.xindazhou.framework.common.pojo.PageResult;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 敏感词 Convert
 *
 * @author xindazhou
 */
@Mapper
public interface SensitiveWordConvert {

    SensitiveWordConvert INSTANCE = Mappers.getMapper(SensitiveWordConvert.class);

    SensitiveWordDO convert(SensitiveWordSaveReqVO bean);

    SensitiveWordRespVO convert(SensitiveWordDO bean);

    List<SensitiveWordRespVO> convertList(List<SensitiveWordDO> list);

    PageResult<SensitiveWordRespVO> convertPage(PageResult<SensitiveWordDO> page);

}

