package com.hzs.member.detail.provider;

import com.hzs.common.core.domain.R;
import com.hzs.common.domain.member.detail.CuMemberLevel;
import com.hzs.common.domain.member.detail.ext.CuMemberAwardsExt;
import com.hzs.member.detail.ICuMemberDetailServiceApi;
import com.hzs.member.detail.service.ICuMemberAwardsService;
import com.hzs.member.detail.service.ICuMemberLevelService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 会员升级记录dubbo服务
 */
@DubboService
public class CuMemberDetailProvider implements ICuMemberDetailServiceApi {

    @Autowired
    private ICuMemberLevelService iCuMemberLevelService;
    @Autowired
    private ICuMemberAwardsService iCuMemberAwardsService;

    @Override
    public R<CuMemberLevel> queryLastManualUpgrade(Long pkMember, Integer pkCountry) {
        return R.ok(iCuMemberLevelService.queryLastManualUpgrade(pkMember, pkCountry));
    }

    @Override
    public R<CuMemberAwardsExt> queryLastManualAwards(Long pkMember, Integer pkCountry) {
        return R.ok(iCuMemberAwardsService.queryLastManualAwards(pkMember, pkCountry));
    }

}
