KKSU
2025-02-07 05762546ed54a38ab4559b9c32374f16c5d61dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package cc.mrbird.febs.pay.service;
 
import org.springframework.web.bind.annotation.RequestBody;
 
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
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);
 
    String sendGet(String url, Map<String, Object> params, String token);
 
    Map<String, Object> fapiaoCallBack(HttpServletRequest request, @RequestBody Map<String, Object> requestBody);
 
    String getUserInvoiceInfo(String fapiaoApplyId) throws IOException;
}