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