refactor: Style

This commit is contained in:
felord
2021-05-26 10:19:53 +08:00
parent a46590d0a9
commit 8cd3f63d68
3 changed files with 5 additions and 5 deletions

View File

@@ -47,13 +47,13 @@ public enum WechatPayV3Type {
* *
* @since 1.0.3.RELEASE * @since 1.0.3.RELEASE
*/ */
TRADEBILL(HttpMethod.GET, "%s/v3/bill/tradebill"), TRADE_BILL(HttpMethod.GET, "%s/v3/bill/tradebill"),
/** /**
* 申请资金账单API. * 申请资金账单API.
* *
* @since 1.0.3.RELEASE * @since 1.0.3.RELEASE
*/ */
FUNDFLOWBILL(HttpMethod.GET, "%s/v3/bill/fundflowbill"), FUND_FLOW_BILL(HttpMethod.GET, "%s/v3/bill/fundflowbill"),
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@@ -257,7 +257,7 @@ public abstract class AbstractApi {
public ResponseEntity<Resource> downloadTradeBill(TradeBillParams tradeBillParams) { public ResponseEntity<Resource> downloadTradeBill(TradeBillParams tradeBillParams) {
WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>(); WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>();
this.client().withType(WechatPayV3Type.TRADEBILL, tradeBillParams) this.client().withType(WechatPayV3Type.TRADE_BILL, tradeBillParams)
.function((wechatPayV3Type, params) -> { .function((wechatPayV3Type, params) -> {
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<>(); MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<>();
LocalDate billDate = params.getBillDate(); LocalDate billDate = params.getBillDate();
@@ -304,7 +304,7 @@ public abstract class AbstractApi {
*/ */
public ResponseEntity<Resource> downloadFundFlowBill(FundFlowBillParams fundFlowBillParams) { public ResponseEntity<Resource> downloadFundFlowBill(FundFlowBillParams fundFlowBillParams) {
WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>(); WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>();
this.client().withType(WechatPayV3Type.FUNDFLOWBILL, fundFlowBillParams) this.client().withType(WechatPayV3Type.FUND_FLOW_BILL, fundFlowBillParams)
.function((wechatPayV3Type, params) -> { .function((wechatPayV3Type, params) -> {
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<>(); MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<>();
LocalDate billDate = params.getBillDate(); LocalDate billDate = params.getBillDate();

View File

@@ -118,7 +118,7 @@ public class SignatureProvider {
/** /**
* 我方请求前用 SHA256withRSA 加签使用API证书. * 我方请求前用 SHA256withRSA 加签使用API证书.
* *
* @param newLine the new line * @param newLine 签名协议不兼容而增加的开关 github issues#18
* @param tenantId the properties key * @param tenantId the properties key
* @param method the method * @param method the method
* @param canonicalUrl the canonical url * @param canonicalUrl the canonical url