package com.xhpc.payment.controller;

import com.xhpc.common.core.domain.R;
import com.xhpc.common.core.web.controller.BaseController;
import com.xhpc.payment.service.IXhpcCommonPayment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yuyang
 * @date 2022/2/8 14:00
 */
@EnableScheduling
@RestController
@RequestMapping("/commonPayment")
public class XhpcCommonPaymentController extends BaseController {

    @Autowired
    private IXhpcCommonPayment xhpcCommonPayment;


    /**
     * 获取支付配置
     * @param status   1微信 2支付宝
     * @param tenantId
     * @return
     */
    @GetMapping("/settingConfig")
    public R settingConfig(Integer status, String tenantId) {

       return R.ok(xhpcCommonPayment.getXhpcSettingConfigTenantId(status, tenantId));
    }


}
