package com.hzs.member.account.provider;

import com.hzs.common.core.domain.R;
import com.hzs.common.core.enums.EApproveStatus;
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;

/**
 * @description: 会员交易明细 Doubbo服务
 * @author: zhang jing
 * @date: 2023/7/28 11:53
 * @param:
 * @return:
 **/
@Slf4j
@DubboService
public class ICuMemberTradeServiceProvider implements ICuMemberTradeServiceApi {

    @Autowired
    private ICuMemberTradeService iCuMemberTradeService;

    /**
     * @description: 业务办理扣费提交
     * @author: zhang jing
     * @date: 2023/7/28 14:38
     * @param: [businessCommissionDTO, eApproveStatus]
     * @return: com.hzs.common.core.domain.R<java.lang.Boolean>
     **/
    @Override
    public R<Boolean> businessCommissionSubmit(BusinessCommissionDTO businessCommissionDTO) {
        return R.ok(iCuMemberTradeService.businessCommissionSubmit(businessCommissionDTO));
    }

    /**
     * @description: 业务办理扣费驳回
     * @author: zhang jing
     * @date: 2023/7/28 14:38
     * @param: [businessCommissionDTO, eApproveStatus]
     * @return: com.hzs.common.core.domain.R<java.lang.Boolean>
     **/
    @Override
    public R<Boolean> businessCommissionReject(BusinessCommissionDTO businessCommissionDTO) {
        return R.ok(iCuMemberTradeService.businessCommissionReject(businessCommissionDTO));
    }


}
