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

com.haoxuer.discover.user.rest.conver.UserResponseConver Maven / Gradle / Ivy

There is a newer version: 2.2.2
Show newest version
package com.haoxuer.discover.user.rest.conver;

import com.haoxuer.discover.data.rest.core.Conver;
import com.haoxuer.discover.user.data.entity.UserInfo;
import com.haoxuer.discover.user.rest.domain.response.UserResponse;

public class UserResponseConver implements Conver {
  @Override
  public UserResponse conver(UserInfo source) {
    UserResponse result = new UserResponse();
    result.setAvatar(source.getAvatar());
    result.setName(source.getName());
    result.setPhone(source.getPhone());
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy