Search in sources :

Example 1 with MyCenterVO

use of com.ch999.haha.admin.vo.MyCenterVO in project haha by hahafreeasair666.

the class UserInfoServiceImpl method getMyCenterInfo.

@Override
public MyCenterVO getMyCenterInfo(UserInfoBO userInfo) {
    MyCenterVO userCenterVO = new MyCenterVO();
    UserCenterInfoCountVO userInfoCount = getUserInfoCount(userInfo.getUserInfo().getId());
    userCenterVO.setUserName(userInfo.getUserInfo().getUsername());
    userCenterVO.setFans(userInfoCount.getFans());
    userCenterVO.setFollows(userInfoCount.getFollow());
    userCenterVO.setMyCollection(userInfoCount.getCollections());
    userCenterVO.setMyAdoption(userInfoCount.getMyAdoption());
    userCenterVO.setAdoptionRequest(userInfoCount.getAdoptionRequest());
    userCenterVO.setUserId(userInfoCount.getUserId());
    userCenterVO.setZan(userInfoCount.getZan());
    userCenterVO.setDescription(userInfo.getUserInfo().getAutograph());
    userCenterVO.setMyCredit(userInfo.getCreditInfo().get("creditNum") != null ? (int) userInfo.getCreditInfo().get("creditNum") : 0);
    userCenterVO.setAvatar(userInfo.getUserInfo().getPicPath());
    userCenterVO.setMyRelease(userInfoCount.getReleases());
    userCenterVO.setAdoptionPerson(userInfoCount.getAdoptionPerson());
    return userCenterVO;
}
Also used : MyCenterVO(com.ch999.haha.admin.vo.MyCenterVO) UserCenterInfoCountVO(com.ch999.haha.admin.vo.mappervo.UserCenterInfoCountVO)

Aggregations

MyCenterVO (com.ch999.haha.admin.vo.MyCenterVO)1 UserCenterInfoCountVO (com.ch999.haha.admin.vo.mappervo.UserCenterInfoCountVO)1