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