package com.jeequan.jeepay.mgr.ctrl.merchant;

import com.jeequan.jeepay.mgr.ctrl.CommonCtrl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/mchApplyments")
public class ZftMchApplymentController extends CommonCtrl {

//    @Autowired
//    private IZftApplymentApiService zftApplymentApiService;
//
//    @Autowired private MchAppService mchAppService;
//
//    /** 支付宝直付通废弃商户接口 **/
//    @PostMapping("/zftMchDelete/{appId}/{smId}")
//    public ApiRes zftMchDelete(@PathVariable("appId") String appId, @PathVariable("smId") String smId) {
//
//        if (StringUtils.isEmpty(smId)) {
//            throw new BizException("支付宝商户号不可为空");
//        }
//
//        // 商户信息
//        MchApp mchApp = mchAppService.getById(appId);
//
//        if (mchApp == null) {
//            throw new BizException(appId + "商户应用不存在");
//        }
//        MchInfo mchInfo = mchInfoService.getById(mchApp.getMchNo());
//        if (mchInfo == null) {
//            throw new BizException(mchApp.getMchNo() + "商户不存在");
//        }
//
//        ChannelRetMsg channelRetMsg = zftApplymentApiService.zftMchDelete(mchInfo, smId);
//        return ApiRes.ok(channelRetMsg);
//    }
}
