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

com.haoxuer.discover.user.rest.convert.UserInfoSimpleConvert 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.simple.UserInfoSimple;
import com.haoxuer.discover.user.data.entity.UserInfo;
import com.haoxuer.discover.data.rest.core.Conver;
public class UserInfoSimpleConvert implements Conver {


    @Override
    public UserInfoSimple conver(UserInfo source) {
        UserInfoSimple result = new UserInfoSimple();

            result.setId(source.getId());
             result.setStoreState(source.getStoreState());
             result.setPhone(source.getPhone());
             result.setCatalog(source.getCatalog());
             result.setName(source.getName());
             result.setAvatar(source.getAvatar());
             result.setState(source.getState());
             result.setLoginSize(source.getLoginSize());
             result.setAddDate(source.getAddDate());

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy