MemberManagerImpl.java 2.86 KB
package com.diligrp.website.manager.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.diligrp.website.manager.MemberManager;
import com.diligrp.website.rpc.MemberRPCService;
import com.diligrp.website.util.dao.BaseQuery;
import com.diligrp.website.util.web.PageTemplate;
import com.yqyw.user.rpc.client.domain.input.CreditLimitReq;
import com.yqyw.user.rpc.client.domain.input.FavoriteInfo;
import com.yqyw.user.rpc.client.domain.input.LockMemberReq;
import com.yqyw.user.rpc.client.domain.output.DefaultResp;
import com.yqyw.user.rpc.client.domain.output.EnterpriseInfoResp;
import com.yqyw.user.rpc.client.domain.output.ListFavoriteByPagingResp;
import com.yqyw.user.rpc.client.domain.output.LockMemberResp;
import com.yqyw.user.rpc.client.domain.output.MemberCreditInfoResp;
import com.yqyw.user.rpc.client.domain.output.MemberCreditOptionLogResp;
import com.yqyw.user.rpc.client.domain.output.UserExtensionResp;
import com.yqyw.user.rpc.client.domain.output.UserInfoResp;

@Component("memberManager")
public class MemberManagerImpl implements MemberManager {

    @Resource
    private MemberRPCService memberRPCService;

    @Override
    public PageTemplate query(BaseQuery bq) {
        return memberRPCService.query(bq);
    }

    @Override
    public LockMemberResp getLockUser(Long id) {
        return memberRPCService.getLockUser(id);
    }

    @Override
    public boolean lockMember(LockMemberReq req) {
        return memberRPCService.lockMember(req);
    }

    @Override
    public boolean unlockMember(LockMemberReq req) {
        return memberRPCService.unlockMember(req);
    }

    @Override
    public List<MemberCreditOptionLogResp> getCreditHistory(Long memberId) {
        return memberRPCService.getCreditHistory(memberId);
    }

    @Override
    public MemberCreditInfoResp getCreditInfo(Long memberId) {
        return memberRPCService.getCreditInfo(memberId);
    }

    @Override
    public DefaultResp updateCreditLimit(CreditLimitReq req) {
        return memberRPCService.updateCreditLimit(req);
    }

//    @Override
//    public ListBrowseHistoryResp historyList(Integer type,Long userId, BaseQuery bq) {
//        return memberRPCService.historyList(type, userId, bq);
//    }

    @Override
    public UserInfoResp getMemberInfo(Long uid) {
        return memberRPCService.getMemberInfo(uid);
    }

    @Override
    public UserExtensionResp getMemberExtension(Long uid) {
        return memberRPCService.getMemberExtension(uid);
    }

    @Override
    public EnterpriseInfoResp getEnterpriseByUserId(Long uid) {
        return memberRPCService.getEnterpriseByUserId(uid);
    }

    @Override
    public ListFavoriteByPagingResp getMemberFavorite(FavoriteInfo info,
            Integer currPage, Integer pageSize) {
        return memberRPCService.getMemberFavorite(info, currPage, pageSize);
    }

}