com.nbsaas.boot.article.rest.convert.ArticleDocumentResponseConvert Maven / Gradle / Ivy
package com.nbsaas.boot.article.rest.convert;
import com.nbsaas.boot.article.data.entity.ArticleDocument;
import com.nbsaas.boot.article.api.domain.response.ArticleDocumentResponse;
import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 实体对象转化成响应对象
*/
public class ArticleDocumentResponseConvert implements Converter {
@Override
public ArticleDocumentResponse convert(ArticleDocument source) {
ArticleDocumentResponse result = new ArticleDocumentResponse();
BeanDataUtils.copyProperties(source, result);
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy