All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.haoxuer.discover.user.rest.convert.UserInfoResponseConvert Maven / Gradle / Ivy

There is a newer version: 3.3.18-20230117
Show newest version
package com.haoxuer.discover.user.rest.convert;

import com.haoxuer.discover.user.api.domain.response.UserInfoResponse;
import com.haoxuer.discover.user.data.entity.UserInfo;
import com.haoxuer.discover.data.rest.core.Conver;
import com.haoxuer.discover.data.utils.BeanDataUtils;

public class UserInfoResponseConvert implements Conver {
    @Override
    public UserInfoResponse conver(UserInfo source) {
        UserInfoResponse result = new UserInfoResponse();
        BeanDataUtils.copyProperties(source,result);


         result.setStateName(source.getState()+"");
         result.setStoreStateName(source.getStoreState()+"");

        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy