package cn.pluss.platform.controller.merchant.callback;

import cn.pluss.platform.channel.MerchantCertService;
import com.alibaba.fastjson.JSONObject;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 微信认证回调接口
 * @author Djh
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("wxCertCallback")
public class WxCertCallbackController {

    @Qualifier("sxfCertService")
    private final MerchantCertService sxfCertService;

    @PostMapping("sxf")
    @ResponseBody
    public Map<String, Object> sxf(@RequestBody JSONObject wxCertResult) {
        return sxfCertService.wxCertCallback(wxCertResult);
    }
}
