package com.sckw.contract.controller;

import com.sckw.contract.model.vo.req.ESignCallBackReqVo;
import com.sckw.contract.service.KwcOpenapiService;
import com.sckw.core.exception.SystemException;
import com.sckw.core.web.response.HttpResult;
import jakarta.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author czh
 * @desc 对外开放的接口
 * @date 2023/8/14
 */
@RestController
@RequestMapping("kwcOpenapi")
public class KwcOpenapiController {


    @Autowired
    private KwcOpenapiService kwcOpenapiService;

    /**
     * @desc: e签宝回调
     * @param: reqVo 入参
     * @author: czh
     * @date 2023/8/14
     * @return HttpResult
     */
    @RequestMapping("eSignCallBack")
    public HttpResult eSignCallBack(@Valid @RequestBody ESignCallBackReqVo reqVo) {
        kwcOpenapiService.eSignCallBack(reqVo);
        return HttpResult.ok();
    }

}
