Commit 18ccf57f by 刘宇峰

框架完善

1 parent 74a708c9
......@@ -24,8 +24,34 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<curator.version>2.10.0</curator.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
<version>${curator.version}</version>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-recipes</artifactId>
<version>${curator.version}</version>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-client</artifactId>
<version>${curator.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>20.0</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<resources>
<resource>
......
......@@ -22,27 +22,19 @@
<dependency>
<groupId>com.glsx</groupId>
<artifactId>rest-admin-elasticjob</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.5.8</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
package cn.com.glsx.scheduler.modules.job;
import cn.com.glsx.scheduler.modules.service.RestSimpleJobService;
import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;
import com.dangdang.elasticjob.lite.annotation.ElasticSimpleJob;
import com.glsx.plat.common.utils.DateUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.shardingsphere.elasticjob.api.ShardingContext;
import org.apache.shardingsphere.elasticjob.simple.job.SimpleJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
......@@ -12,6 +13,7 @@ import java.util.Date;
@Slf4j
@Component
@ElasticSimpleJob("0/10 * * * * ?")
public class RestSimpleJob implements SimpleJob {
@Autowired
......@@ -32,7 +34,7 @@ public class RestSimpleJob implements SimpleJob {
String normalDate = DateUtils.formatNormal(new Date());
log.info("---------------{}-开始----------------", normalDate);
simpleJobService.simpleJob("张三 " + normalDate);
log.info("---------------{}-结束--------------", normalDate);
log.info("---------------{}-结束--------------", DateUtils.formatNormal(new Date()));
}
}
package cn.com.glsx.scheduler.modules.service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
/**
* @author liuyf
* @date 2021年01月26日 下午2:37:40
*/
@Slf4j
@Service
public class RestSimpleJobService {
public void simpleJob(String name) {
try {
log.info("do something for job");
Thread.sleep(10000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
System.out.println("呼叫:" + name);
}
......
......@@ -25,4 +25,6 @@ spring.cloud.nacos.config.shared-configs[0].refresh=true
#数据库、redis等公共配置
spring.cloud.nacos.config.shared-configs[1].group=ARCHETYPE_GROUP
spring.cloud.nacos.config.shared-configs[1].data-id=rest-admin-share-dev.properties
spring.cloud.nacos.config.shared-configs[1].refresh=true
\ No newline at end of file
spring.cloud.nacos.config.shared-configs[1].refresh=true
spring.main.allow-circular-references=true
\ No newline at end of file
......@@ -71,14 +71,6 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-bom</artifactId>
<version>3.0.2.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
......@@ -157,6 +149,10 @@
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
......
......@@ -21,6 +21,12 @@
<dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId>
<exclusions>
<exclusion>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
......
......@@ -18,7 +18,7 @@
<commons.codec.version>1.10</commons.codec.version>
<commons.lang3.version>3.12.0</commons.lang3.version>
<commons.collections4.version>4.4</commons.collections4.version>
<joda.time.version>2.10.14</joda.time.version>
<joda.time.version>2.10.10</joda.time.version>
<org.mapstruct.version>1.5.2.Final</org.mapstruct.version>
<fastjson.version>1.2.76</fastjson.version>
<fastjson2.version>2.0.3</fastjson2.version>
......
......@@ -12,10 +12,21 @@
<artifactId>rest-admin-dubbo</artifactId>
<properties>
<curator.version>5.2.1</curator.version>
<zookeeper.version>3.7.0</zookeeper.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-bom</artifactId>
<version>3.0.2.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
......
......@@ -12,7 +12,8 @@
<artifactId>rest-admin-elasticjob</artifactId>
<properties>
<zookeeper.version>3.6.0</zookeeper.version>
<curator.version>2.10.0</curator.version>
<guava.version>18.0</guava.version>
</properties>
<dependencies>
......@@ -22,18 +23,32 @@
<artifactId>rest-admin-context</artifactId>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere.elasticjob</groupId>
<artifactId>elasticjob-lite-spring-boot-starter</artifactId>
<version>3.0.3</version>
<groupId>com.github.kuhn-he</groupId>
<artifactId>elastic-job-lite-spring-boot-starter</artifactId>
<version>2.1.53</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.apache.shardingsphere.elasticjob</groupId>-->
<!-- <artifactId>elasticjob-error-handler-email</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.apache.shardingsphere.elasticjob</groupId>-->
<!-- <artifactId>elasticjob-error-handler-wechat</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
<version>${curator.version}</version>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-recipes</artifactId>
<version>${curator.version}</version>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-client</artifactId>
<version>${curator.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>20.0</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
......
package com.glsx.plat.job.config;
import org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperConfiguration;
import org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperRegistryCenter;
import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperConfiguration;
import com.dangdang.ddframe.job.reg.zookeeper.ZookeeperRegistryCenter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
//@Configuration
@Configuration
public class ElasticJobConfig {
// @Autowired
@Autowired
private ZookeeperRegistryCenter regCenter;
@Bean(initMethod = "init")
......
package com.glsx.plat.job.config;
import org.apache.shardingsphere.elasticjob.reg.base.CoordinatorRegistryCenter;
import org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperConfiguration;
import org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperRegistryCenter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
//@Configuration
public class ZookepeerConfig {
//zookeeper链接字符串 localhost:2181
private String ZOOKEEPER_CONNECTION_STRING = "localhost:2181";
//定时任务命名空间
private String JOB_NAMESPACE = "elastic-job-boot-java";
//zk的配置及创建注册中心
@Bean(initMethod = "init")
public CoordinatorRegistryCenter setUpRegistryCenter(@Value("${elaticjob.zookeeper.server-lists}") final String serverList, @Value("${elaticjob.zookeeper.namespace}") final String namespace) {
//zk的配置
ZookeeperConfiguration zookeeperConfiguration = new ZookeeperConfiguration(serverList, namespace);
//设置zk超时时间
zookeeperConfiguration.setSessionTimeoutMilliseconds(1000);
//创建注册中心
CoordinatorRegistryCenter zookeeperRegistryCenter = new ZookeeperRegistryCenter(zookeeperConfiguration);
return zookeeperRegistryCenter;
}
}
//package com.glsx.plat.job.config;
//
//import org.apache.shardingsphere.elasticjob.reg.base.CoordinatorRegistryCenter;
//import org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperConfiguration;
//import org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperRegistryCenter;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
////@Configuration
//public class ZookepeerConfig {
//
// //zookeeper链接字符串 localhost:2181
// private String ZOOKEEPER_CONNECTION_STRING = "localhost:2181";
// //定时任务命名空间
// private String JOB_NAMESPACE = "elastic-job-boot-java";
//
// //zk的配置及创建注册中心
// @Bean(initMethod = "init")
// public CoordinatorRegistryCenter setUpRegistryCenter(@Value("${elaticjob.zookeeper.server-lists}") final String serverList, @Value("${elaticjob.zookeeper.namespace}") final String namespace) {
// //zk的配置
// ZookeeperConfiguration zookeeperConfiguration = new ZookeeperConfiguration(serverList, namespace);
// //设置zk超时时间
// zookeeperConfiguration.setSessionTimeoutMilliseconds(1000);
// //创建注册中心
// CoordinatorRegistryCenter zookeeperRegistryCenter = new ZookeeperRegistryCenter(zookeeperConfiguration);
// return zookeeperRegistryCenter;
// }
//
//}
//
......@@ -22,7 +22,7 @@
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
<version>2.2.3</version>
<version>2.6.11</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
......@@ -26,7 +26,7 @@
</dependency>
<dependency>
<groupId>com.glsx</groupId>
<artifactId>rest-admin-swagger2</artifactId>
<artifactId>rest-admin-swagger3</artifactId>
</dependency>
<dependency>
<groupId>com.github.binarywang</groupId>
......
......@@ -3,8 +3,6 @@ package com.glsx.plat.wechat.modules.controller;
import com.github.binarywang.wxpay.bean.entpay.*;
import com.github.binarywang.wxpay.exception.WxPayException;
import com.github.binarywang.wxpay.service.WxPayService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
......@@ -16,7 +14,7 @@ import org.springframework.web.bind.annotation.*;
*
* @author <a href="https://github.com/binarywang">Binary Wang</a>
*/
@Api("企业付款")
//@Api("企业付款")
@RequestMapping("/pay")
@RestController
@AllArgsConstructor
......@@ -35,7 +33,7 @@ public class EntPayController {
*
* @param request 请求对象
*/
@ApiOperation(value = "企业付款到零钱")
// @ApiOperation(value = "企业付款到零钱")
@PostMapping("/entPay")
public EntPayResult entPay(@RequestBody EntPayRequest request) throws WxPayException {
return this.wxService.getEntPayService().entPay(request);
......@@ -51,7 +49,7 @@ public class EntPayController {
*
* @param partnerTradeNo 商户订单号
*/
@ApiOperation(value = "查询企业付款到零钱的结果")
// @ApiOperation(value = "查询企业付款到零钱的结果")
@GetMapping("/queryEntPay/{partnerTradeNo}")
public EntPayQueryResult queryEntPay(@PathVariable String partnerTradeNo) throws WxPayException {
return this.wxService.getEntPayService().queryEntPay(partnerTradeNo);
......@@ -77,7 +75,7 @@ public class EntPayController {
* @return the public key
* @throws WxPayException the wx pay exception
*/
@ApiOperation(value = "获取RSA加密公钥")
// @ApiOperation(value = "获取RSA加密公钥")
@GetMapping("/getPublicKey")
public String getPublicKey() throws WxPayException {
return this.wxService.getEntPayService().getPublicKey();
......@@ -96,7 +94,7 @@ public class EntPayController {
* @return the ent pay bank result
* @throws WxPayException the wx pay exception
*/
@ApiOperation(value = "企业付款到银行卡")
// @ApiOperation(value = "企业付款到银行卡")
@PostMapping("/payBank")
public EntPayBankResult payBank(EntPayBankRequest request) throws WxPayException {
return this.wxService.getEntPayService().payBank(request);
......@@ -114,7 +112,7 @@ public class EntPayController {
* @return the ent pay bank query result
* @throws WxPayException the wx pay exception
*/
@ApiOperation(value = "查询企业付款到银行卡的结果")
// @ApiOperation(value = "查询企业付款到银行卡的结果")
@GetMapping("/queryPayBank/{partnerTradeNo}")
public EntPayBankQueryResult queryPayBank(@PathVariable String partnerTradeNo) throws WxPayException {
return this.wxService.getEntPayService().queryPayBank(partnerTradeNo);
......
......@@ -12,8 +12,6 @@ import com.github.binarywang.wxpay.service.WxPayService;
import com.glsx.plat.common.annotation.SysLog;
import com.glsx.plat.common.utils.SnowFlake;
import com.glsx.plat.core.web.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
......@@ -26,7 +24,7 @@ import java.util.Map;
* @author Binary Wang
*/
@Slf4j
@Api("微信支付")
//@Api("微信支付")
@RestController
@RequestMapping("/pay")
@AllArgsConstructor
......@@ -49,7 +47,7 @@ public abstract class WxPayController {
* @param transactionId 微信订单号
* @param outTradeNo 商户系统内部的订单号,当没提供transactionId时需要传这个。
*/
@ApiOperation(value = "查询订单")
// @ApiOperation(value = "查询订单")
@GetMapping("/queryOrder")
public WxPayOrderQueryResult queryOrder(@RequestParam(required = false) String transactionId,
@RequestParam(required = false) String outTradeNo)
......@@ -57,7 +55,7 @@ public abstract class WxPayController {
return this.wxPayService.queryOrder(transactionId, outTradeNo);
}
@ApiOperation(value = "查询订单")
// @ApiOperation(value = "查询订单")
@PostMapping("/queryOrder")
public WxPayOrderQueryResult queryOrder(@RequestBody WxPayOrderQueryRequest wxPayOrderQueryRequest) throws WxPayException {
return this.wxPayService.queryOrder(wxPayOrderQueryRequest);
......@@ -77,13 +75,13 @@ public abstract class WxPayController {
*
* @param outTradeNo 商户系统内部的订单号
*/
@ApiOperation(value = "关闭订单")
// @ApiOperation(value = "关闭订单")
@GetMapping("/closeOrder/{outTradeNo}")
public WxPayOrderCloseResult closeOrder(@PathVariable String outTradeNo) throws WxPayException {
return this.wxPayService.closeOrder(outTradeNo);
}
@ApiOperation(value = "关闭订单")
// @ApiOperation(value = "关闭订单")
@PostMapping("/closeOrder")
public WxPayOrderCloseResult closeOrder(@RequestBody WxPayOrderCloseRequest wxPayOrderCloseRequest) throws WxPayException {
return this.wxPayService.closeOrder(wxPayOrderCloseRequest);
......@@ -96,7 +94,7 @@ public abstract class WxPayController {
* @param <T> 请使用{@link com.github.binarywang.wxpay.bean.order}包下的类
* @return 返回 {@link com.github.binarywang.wxpay.bean.order}包下的类对象
*/
@ApiOperation(value = "统一下单,并组装所需支付参数")
// @ApiOperation(value = "统一下单,并组装所需支付参数")
@PostMapping("/createOrder")
public <T> T createOrder(@RequestBody WxPayUnifiedOrderRequest request) throws WxPayException {
return this.wxPayService.createOrder(request);
......@@ -110,7 +108,7 @@ public abstract class WxPayController {
* @param request 请求对象,注意一些参数如appid、mchid等不用设置,方法内会自动从配置对象中获取到(前提是对应配置中已经设置)
*/
@SysLog
@ApiOperation(value = "原生的统一下单接口")
// @ApiOperation(value = "原生的统一下单接口")
@PostMapping("/unifiedOrder")
public R<WxPayUnifiedOrderResult> unifiedOrder(@RequestBody WxPayUnifiedOrderRequest request) throws WxPayException {
String outTradeNo = "B" + SnowFlake.nextSerialNumber();
......@@ -137,7 +135,7 @@ public abstract class WxPayController {
* @param request 请求对象
* @return 退款操作结果
*/
@ApiOperation(value = "退款")
// @ApiOperation(value = "退款")
@PostMapping("/refund")
public WxPayRefundResult refund(@RequestBody WxPayRefundRequest request) throws WxPayException {
return this.wxPayService.refund(request);
......@@ -160,7 +158,7 @@ public abstract class WxPayController {
* @param refundId 微信退款单号
* @return 退款信息
*/
@ApiOperation(value = "退款查询")
// @ApiOperation(value = "退款查询")
@GetMapping("/refundQuery")
public WxPayRefundQueryResult refundQuery(@RequestParam(required = false) String transactionId,
@RequestParam(required = false) String outTradeNo,
......@@ -170,13 +168,13 @@ public abstract class WxPayController {
return this.wxPayService.refundQuery(transactionId, outTradeNo, outRefundNo, refundId);
}
@ApiOperation(value = "退款查询")
// @ApiOperation(value = "退款查询")
@PostMapping("/refundQuery")
public WxPayRefundQueryResult refundQuery(@RequestBody WxPayRefundQueryRequest wxPayRefundQueryRequest) throws WxPayException {
return this.wxPayService.refundQuery(wxPayRefundQueryRequest);
}
@ApiOperation(value = "支付回调通知处理")
// @ApiOperation(value = "支付回调通知处理")
@PostMapping("/notify/order")
public String parseOrderNotifyResult(@RequestBody String xmlData) throws WxPayException {
final WxPayOrderNotifyResult notifyResult = this.wxPayService.parseOrderNotifyResult(xmlData);
......@@ -192,7 +190,7 @@ public abstract class WxPayController {
return WxPayNotifyResponse.success("成功");
}
@ApiOperation(value = "退款回调通知处理")
// @ApiOperation(value = "退款回调通知处理")
@PostMapping("/notify/refund")
public String parseRefundNotifyResult(@RequestBody String xmlData) throws WxPayException {
final WxPayRefundNotifyResult result = this.wxPayService.parseRefundNotifyResult(xmlData);
......@@ -200,7 +198,7 @@ public abstract class WxPayController {
return WxPayNotifyResponse.success("成功");
}
@ApiOperation(value = "扫码支付回调通知处理")
// @ApiOperation(value = "扫码支付回调通知处理")
@PostMapping("/notify/scanpay")
public String parseScanPayNotifyResult(String xmlData) throws WxPayException {
final WxScanPayNotifyResult result = this.wxPayService.parseScanPayNotifyResult(xmlData);
......@@ -220,7 +218,7 @@ public abstract class WxPayController {
*
* @param request 请求对象
*/
@ApiOperation(value = "发送红包")
// @ApiOperation(value = "发送红包")
@PostMapping("/sendRedpack")
public WxPaySendRedpackResult sendRedpack(@RequestBody WxPaySendRedpackRequest request) throws WxPayException {
return this.wxPayService.getRedpackService().sendRedpack(request);
......@@ -237,7 +235,7 @@ public abstract class WxPayController {
*
* @param mchBillNo 商户发放红包的商户订单号,比如10000098201411111234567890
*/
@ApiOperation(value = "查询红包")
// @ApiOperation(value = "查询红包")
@GetMapping("/queryRedpack/{mchBillNo}")
public WxPayRedpackQueryResult queryRedpack(@PathVariable String mchBillNo) throws WxPayException {
return this.wxPayService.getRedpackService().queryRedpack(mchBillNo);
......@@ -305,7 +303,7 @@ public abstract class WxPayController {
* 是否需要证书:不需要
* </pre>
*/
@ApiOperation(value = "提交交易保障数据")
// @ApiOperation(value = "提交交易保障数据")
@PostMapping("/report")
public void report(@RequestBody WxPayReportRequest request) throws WxPayException {
this.wxPayService.report(request);
......@@ -330,14 +328,14 @@ public abstract class WxPayController {
* @param deviceInfo 设备号 device_info 非必传参数,终端设备号
* @return 保存到本地的临时文件
*/
@ApiOperation(value = "下载对账单")
// @ApiOperation(value = "下载对账单")
@GetMapping("/downloadBill/{billDate}/{billType}/{tarType}/{deviceInfo}")
public WxPayBillResult downloadBill(@PathVariable String billDate, @PathVariable String billType,
@PathVariable String tarType, @PathVariable String deviceInfo) throws WxPayException {
return this.wxPayService.downloadBill(billDate, billType, tarType, deviceInfo);
}
@ApiOperation(value = "下载对账单")
// @ApiOperation(value = "下载对账单")
@PostMapping("/downloadBill")
public WxPayBillResult downloadBill(WxPayDownloadBillRequest wxPayDownloadBillRequest) throws WxPayException {
return this.wxPayService.downloadBill(wxPayDownloadBillRequest);
......@@ -355,7 +353,7 @@ public abstract class WxPayController {
* 是否需要证书:不需要。
* </pre>
*/
@ApiOperation(value = "提交刷卡支付")
// @ApiOperation(value = "提交刷卡支付")
@PostMapping("/micropay")
public WxPayMicropayResult micropay(@RequestBody WxPayMicropayRequest request) throws WxPayException {
return this.wxPayService.micropay(request);
......@@ -373,37 +371,37 @@ public abstract class WxPayController {
* 是否需要证书:请求需要双向证书。
* </pre>
*/
@ApiOperation(value = "撤销订单")
// @ApiOperation(value = "撤销订单")
@PostMapping("/reverseOrder")
public WxPayOrderReverseResult reverseOrder(@RequestBody WxPayOrderReverseRequest request) throws WxPayException {
return this.wxPayService.reverseOrder(request);
}
@ApiOperation(value = "获取沙箱环境签名key")
// @ApiOperation(value = "获取沙箱环境签名key")
@GetMapping("/getSandboxSignKey")
public String getSandboxSignKey() throws WxPayException {
return this.wxPayService.getSandboxSignKey();
}
@ApiOperation(value = "发放代金券")
// @ApiOperation(value = "发放代金券")
@PostMapping("/sendCoupon")
public WxPayCouponSendResult sendCoupon(@RequestBody WxPayCouponSendRequest request) throws WxPayException {
return this.wxPayService.sendCoupon(request);
}
@ApiOperation(value = "查询代金券批次")
// @ApiOperation(value = "查询代金券批次")
@PostMapping("/queryCouponStock")
public WxPayCouponStockQueryResult queryCouponStock(@RequestBody WxPayCouponStockQueryRequest request) throws WxPayException {
return this.wxPayService.queryCouponStock(request);
}
@ApiOperation(value = "查询代金券信息")
// @ApiOperation(value = "查询代金券信息")
@PostMapping("/queryCouponInfo")
public WxPayCouponInfoQueryResult queryCouponInfo(@RequestBody WxPayCouponInfoQueryRequest request) throws WxPayException {
return this.wxPayService.queryCouponInfo(request);
}
@ApiOperation(value = "拉取订单评价数据")
// @ApiOperation(value = "拉取订单评价数据")
@PostMapping("/queryComment")
public String queryComment(Date beginDate, Date endDate, Integer offset, Integer limit) throws WxPayException {
return this.wxPayService.queryComment(beginDate, endDate, offset, limit);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!