package com.hzs.member.account.provider;

import com.hzs.common.core.domain.R;
import com.hzs.member.account.IMemberBankServiceApi;
import com.hzs.member.account.dto.CuMemberBankParam;
import com.hzs.member.account.service.ICuMemberBankService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 银行卡 Doubbo服务
 */
@Slf4j
@DubboService
public class MemberBankServiceProvider implements IMemberBankServiceApi {

    @Autowired
    ICuMemberBankService cuMemberBankService;

    @Override
    public R addBankInfo(CuMemberBankParam cuMemberBankParam) {
        return R.ok(cuMemberBankService.saveMemberBank(cuMemberBankParam));
    }
}
