package cc.mrbird.febs.pay.service; import org.springframework.web.bind.annotation.RequestBody; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.security.PrivateKey; import java.security.SignatureException; import java.util.Map; public interface WxFaPiaoService { String createAuthorization(String method, String canonicalUrl, String body, PrivateKey keyPair) throws UnsupportedEncodingException, NoSuchAlgorithmException;//生成Token PrivateKey getPrivateKeyV3() throws IOException;//获取私钥 String sendPatch(String url, String params, String token); String sendPost(String url, String params, String token); Map fapiaoCallBack(HttpServletRequest request, @RequestBody Map requestBody) throws IOException, NoSuchAlgorithmException, InvalidKeyException, SignatureException; }