package com.pj.api.jh.api;

import cn.hutool.core.util.XmlUtil;
import com.pj.api.jh.service.JhService;
import com.pj.utils.sg.AjaxJson;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.Writer;
import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: lzm
 * @Date: 2022/04/19/19:21
 * @Description:
 */
@RequestMapping("jh")
@RestController
@Slf4j
public class JhController {

    @Resource
    JhService jhService;
    @RequestMapping(value = "init-pay")
    public AjaxJson prePay( HttpServletRequest request) throws Exception {
        return AjaxJson.getSuccessData(jhService.initPay(request));
    }

}
