com.nbsaas.boot.article.rest.convert.SensitiveWordEntityConvert Maven / Gradle / Ivy
The newest version!
package com.nbsaas.boot.article.rest.convert;
import com.nbsaas.boot.article.data.entity.SensitiveWord;
import com.nbsaas.boot.article.api.domain.request.SensitiveWordRequest;
import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;
/**
* 请求对象转换成实体对象
*/
public class SensitiveWordEntityConvert implements Converter {
@Override
public SensitiveWord convert(SensitiveWordRequest source) {
SensitiveWord result = new SensitiveWord();
BeanDataUtils.copyProperties(source, result);
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy