package com.hzs.member.account.provider;

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

/**
 * 会员交易明细 Doubbo服务
 **/
@Slf4j
@DubboService
public class ICuMemberTradeServiceProvider implements ICuMemberTradeServiceApi {

    @Autowired
    private ICuMemberTradeService iCuMemberTradeService;

    @Override
    public R<Boolean> businessCommissionSubmit(BusinessCommissionDTO businessCommissionDTO) {
        return R.ok(iCuMemberTradeService.businessCommissionSubmit(businessCommissionDTO));
    }

    @Override
    public R<Boolean> businessCommissionReject(BusinessCommissionDTO businessCommissionDTO) {
        return R.ok(iCuMemberTradeService.businessCommissionReject(businessCommissionDTO));
    }

}
