diff --git a/zlt-business/edu-center/README.md b/zlt-business/edu-center/README.md
new file mode 100644
index 00000000..3156812e
--- /dev/null
+++ b/zlt-business/edu-center/README.md
@@ -0,0 +1,45 @@
+
+待开发功能:
+1. 景区管理
+2. 套餐管理
+3. 素材管理
+
+
+
+-- 订单创建时间 + 状态的联合索引(用于时间范围和状态统计)
+CREATE INDEX idx_orders_create_status ON orders(create_time, order_status);
+
+-- 二维码ID + 创建时间的联合索引(用于按二维码统计)
+CREATE INDEX idx_orders_qrcode_time ON orders(code_id, create_time);
+
+-- 景区ID + 创建时间的联合索引(用于按景区统计)
+CREATE INDEX idx_orders_tourism_time ON orders(tourism_id, create_time);
+
+-- 设备编号 + 创建时间的联合索引(用于按设备统计)
+CREATE INDEX idx_orders_device_time ON orders(device_sn, create_time);
+
+-- 软删除标记 + 创建时间的联合索引(用于过滤已删除订单)
+CREATE INDEX idx_orders_del_time ON orders(is_del, create_time);
+
+服务号推送消息功能
+
+1. 登录微信公众平台(mp.weixin.qq.com)
+
+2. 配置服务器:
+ - 进入"设置与开发 -> 基本配置"
+ - 填写服务器配置
+ - URL: https://你的域名/wx/message
+ - Token: 与配置文件中的token一致
+ - EncodingAESKey: 点击随机生成,复制到配置文件
+ - 消息加解密方式: 选择安全模式
+
+3. 配置消息模板:
+ - 进入"功能 -> 模板消息"
+ - 添加所需的消息模板
+ - 复制模板ID到配置文件
+
+4. 配置云托管(如果使用):
+ - 进入"云托管"
+ - 创建环境
+ - 部署服务
+ - 配置域名
diff --git a/zlt-business/edu-center/pom.xml b/zlt-business/edu-center/pom.xml
new file mode 100644
index 00000000..e069757c
--- /dev/null
+++ b/zlt-business/edu-center/pom.xml
@@ -0,0 +1,192 @@
+
+
+ 4.0.0
+
+ com.zlt
+ zlt-business
+ 6.0.0
+
+
+ edu-center
+ 教育中心
+
+
+ 17
+ 17
+ UTF-8
+
+
+
+
+
+ com.zlt
+ zlt-config
+
+
+ com.zlt
+ zlt-log-spring-boot-starter
+
+
+ com.zlt
+ zlt-common-spring-boot-starter
+
+
+ com.zlt
+ zlt-db-spring-boot-starter
+
+
+ com.zlt
+ zlt-redis-spring-boot-starter
+
+
+ com.zlt
+ zlt-loadbalancer-spring-boot-starter
+
+
+ com.zlt
+ zlt-sentinel-spring-boot-starter
+
+
+
+ com.github.xiaoymin
+ knife4j-openapi3-jakarta-spring-boot-starter
+
+
+ com.zlt
+ search-client
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ com.alibaba.cloud
+ spring-cloud-starter-alibaba-nacos-discovery
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+
+ mysql
+ mysql-connector-java
+
+
+
+ io.micrometer
+ micrometer-registry-prometheus
+
+
+ junit
+ junit
+ test
+
+
+ org.hibernate
+ hibernate-validator
+
+
+
+ com.github.wechatpay-apiv3
+ wechatpay-java
+ 0.2.15
+
+
+
+
+ com.github.binarywang
+ weixin-java-mp
+ 4.5.0
+
+
+
+ com.squareup.okhttp3
+ okhttp
+ 4.9.1
+
+
+ com.github.binarywang
+ weixin-java-miniapp
+ 4.6.0
+
+
+
+ com.github.binarywang
+ weixin-java-common
+ 4.6.0
+
+
+ javax.servlet
+ javax.servlet-api
+ 4.0.1
+ compile
+
+
+ org.springframework
+ spring-webflux
+
+
+
+ com.aliyun
+ alibabacloud-ice20201109
+ 5.0.3
+
+
+
+
+ org.springframework.retry
+ spring-retry
+
+
+ org.springframework.boot
+ spring-boot-starter-aop
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+ repackage
+
+
+
+
+
+ com.spotify
+ docker-maven-plugin
+
+ ${docker.image.prefix}/${project.artifactId}
+
+ ${project.version}
+ latest
+
+ true
+ ${docker.baseImage}
+ ${docker.volumes}
+
+ ${docker.java.opts}
+
+ ["sh","-c","java $JAVA_OPTS ${docker.java.security.egd} -jar /${project.build.finalName}.jar"]
+
+
+ /
+ ${project.build.directory}
+ ${project.build.finalName}.jar
+
+
+
+
+
+ ${project.artifactId}
+
+
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/EduCenterApp.java b/zlt-business/edu-center/src/main/java/com/central/order/EduCenterApp.java
new file mode 100644
index 00000000..ab5ec2b0
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/EduCenterApp.java
@@ -0,0 +1,22 @@
+package com.central.order;
+
+import com.central.common.lb.annotation.EnableFeignInterceptor;
+import com.central.search.annotation.EnableSearchClient;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
+import org.springframework.transaction.annotation.EnableTransactionManagement;
+
+/**
+ * @author 作者 lsl E-mail: 1272745473@qq.com
+ */
+@EnableDiscoveryClient
+@EnableSearchClient
+@EnableTransactionManagement
+@EnableFeignInterceptor
+@SpringBootApplication
+public class EduCenterApp {
+ public static void main(String[] args) {
+ SpringApplication.run(EduCenterApp.class, args);
+ }
+}
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/config/AliyunImsConfig.java b/zlt-business/edu-center/src/main/java/com/central/order/config/AliyunImsConfig.java
new file mode 100644
index 00000000..b7faf27c
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/config/AliyunImsConfig.java
@@ -0,0 +1,42 @@
+package com.central.order.config;
+
+import com.aliyun.auth.credentials.Credential;
+import com.aliyun.auth.credentials.provider.StaticCredentialProvider;
+import com.aliyun.sdk.service.ice20201109.AsyncClient;
+import darabonba.core.client.ClientOverrideConfiguration;
+import lombok.Data;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Data
+@Configuration
+@ConfigurationProperties(prefix = "aliyun.ims")
+public class AliyunImsConfig {
+ private String endpoint; // ice.cn-beijing.aliyuncs.com
+ private String ossEndpoint; // oss-cn-beijing.aliyuncs.com
+ private String accessKeyId;
+ private String accessKeySecret;
+ private String region; // cn-beijing
+ private String bucket; // goflyapp
+ private String callbackUrl;
+
+ @Bean
+ public AsyncClient imsClient() {
+ // 配置凭证
+ StaticCredentialProvider provider = StaticCredentialProvider.create(Credential.builder()
+ .accessKeyId(accessKeyId)
+ .accessKeySecret(accessKeySecret)
+ .build());
+
+ // 配置客户端
+ return AsyncClient.builder()
+ .region(region)
+ .credentialsProvider(provider)
+ .overrideConfiguration(
+ ClientOverrideConfiguration.create()
+ .setEndpointOverride(endpoint)
+ )
+ .build();
+ }
+}
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/config/AsyncConfig.java b/zlt-business/edu-center/src/main/java/com/central/order/config/AsyncConfig.java
new file mode 100644
index 00000000..b21b4534
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/config/AsyncConfig.java
@@ -0,0 +1,31 @@
+package com.central.order.config;
+
+import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
+import org.springframework.aop.interceptor.SimpleAsyncUncaughtExceptionHandler;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.scheduling.annotation.AsyncConfigurer;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
+
+import java.util.concurrent.Executor;
+
+@Configuration
+@EnableAsync
+public class AsyncConfig implements AsyncConfigurer {
+
+ @Override
+ public Executor getAsyncExecutor() {
+ ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
+ executor.setCorePoolSize(5);
+ executor.setMaxPoolSize(10);
+ executor.setQueueCapacity(25);
+ executor.setThreadNamePrefix("message-async-");
+ executor.initialize();
+ return executor;
+ }
+
+ @Override
+ public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
+ return new SimpleAsyncUncaughtExceptionHandler();
+ }
+}
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/config/ProfitSharingProperties.java b/zlt-business/edu-center/src/main/java/com/central/order/config/ProfitSharingProperties.java
new file mode 100644
index 00000000..7757afdc
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/config/ProfitSharingProperties.java
@@ -0,0 +1,58 @@
+package com.central.order.config;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.stereotype.Component;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+@ConfigurationProperties(prefix = "wechat.pay.profit-sharing")
+@Component
+public class ProfitSharingProperties {
+ /**
+ * 是否启用分账功能
+ */
+ @Builder.Default
+ private boolean enabled = true;
+
+ /**
+ * 最大重试次数
+ */
+ @Builder.Default
+ private int maxRetryTimes = 3;
+
+ /**
+ * 重试间隔(毫秒)
+ */
+ @Builder.Default
+ private long retryInterval = 300000; // 5分钟
+
+ /**
+ * 平台分账比例(%)
+ */
+ @Builder.Default
+ private String platformRate = "30";
+
+ /**
+ * 分账超时时间(毫秒)
+ */
+ @Builder.Default
+ private long timeout = 1800000; // 30分钟
+
+ /**
+ * 是否启用异步处理
+ */
+ @Builder.Default
+ private boolean asyncEnabled = true;
+
+ /**
+ * 异步处理线程池大小
+ */
+ @Builder.Default
+ private int asyncPoolSize = 5;
+}
\ No newline at end of file
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/config/TencentPayConfiguration.java b/zlt-business/edu-center/src/main/java/com/central/order/config/TencentPayConfiguration.java
new file mode 100644
index 00000000..fd7c3105
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/config/TencentPayConfiguration.java
@@ -0,0 +1,145 @@
+package com.central.order.config;
+
+import com.wechat.pay.java.core.Config;
+import com.wechat.pay.java.core.RSAAutoCertificateConfig;
+import com.wechat.pay.java.core.notification.NotificationConfig;
+import com.wechat.pay.java.core.notification.NotificationParser;
+import com.wechat.pay.java.service.payments.jsapi.JsapiServiceExtension;
+import com.wechat.pay.java.service.payments.jsapi.model.SettleInfo;
+import com.wechat.pay.java.service.profitsharing.ProfitsharingService;
+import com.wechat.pay.java.service.refund.RefundService;
+import lombok.Getter;
+import lombok.Setter;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.context.properties.EnableConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
+import org.springframework.beans.factory.annotation.Qualifier;
+
+import java.util.concurrent.Executor;
+import java.util.concurrent.ThreadPoolExecutor;
+
+/**
+ * 支付配置类
+ *
+ * @author lsl
+ * @date 2025-01-14
+ *
+ */
+@Getter
+@Setter
+@Configuration
+@ConfigurationProperties(prefix = "tencent")
+@EnableConfigurationProperties(ProfitSharingProperties.class)
+public class TencentPayConfiguration {
+
+ private String merchantId;
+
+ private String merchantSerialNumber;
+
+ private String apiV3Key;
+
+ private String privateKeyPath;
+
+ private String appId;
+
+ private String appSecret;
+
+ private String notifyUrl;
+
+ /**
+ * jsapi支付方式 支持小程序公众号支付
+ * @return
+ */
+ @Bean
+ public JsapiServiceExtension initialJsapiServiceExtension() {
+ // 构建service
+ return new JsapiServiceExtension.Builder().config(getConfig()).build();
+ }
+
+ @Bean
+ public RefundService initialRefundService() {
+ // 构建service
+ return new RefundService.Builder().config(getConfig()).build();
+ }
+
+ /**
+ * 微信支付配置获取
+ * @return
+ */
+ public Config getConfig() {
+ return new RSAAutoCertificateConfig.Builder()
+ .merchantId(merchantId)
+ .privateKeyFromPath(privateKeyPath)
+ .merchantSerialNumber(merchantSerialNumber)
+ .apiV3Key(apiV3Key)
+ .build();
+ }
+
+
+ @Bean
+ public NotificationConfig initialNotificationConfig() {
+ // . 如果你仍在使用微信支付平台证书,则使用 RSAAutoCertificateConfig
+ return new RSAAutoCertificateConfig.Builder()
+ .merchantId(merchantId)
+ .privateKeyFromPath(privateKeyPath)
+ .merchantSerialNumber(merchantSerialNumber)
+ .apiV3Key(apiV3Key)
+ .build();
+ }
+
+ @Bean
+ public TencentPayProperties initTencentPayProperties() {
+ TencentPayProperties tencentPayProperties = new TencentPayProperties();
+ tencentPayProperties.setApiV3Key(apiV3Key);
+ tencentPayProperties.setMerchantId(merchantId);
+ tencentPayProperties.setMerchantSerialNumber(merchantSerialNumber);
+ tencentPayProperties.setAppId(appId);
+ tencentPayProperties.setAppSecret(appSecret);
+ tencentPayProperties.setNotifyUrl(notifyUrl);
+ return tencentPayProperties;
+ }
+
+ @Value("${wechat.pay.profit-sharing.enabled:true}")
+ private boolean profitSharingEnabled;
+
+ @Bean
+ public SettleInfo defaultSettleInfo() {
+ SettleInfo settleInfo = new SettleInfo();
+ settleInfo.setProfitSharing(profitSharingEnabled);
+ return settleInfo;
+ }
+
+ @Bean
+ public NotificationParser notificationParser(NotificationConfig config) {
+ return new NotificationParser(config);
+ }
+
+ @Bean
+ public ProfitsharingService profitsharingService() {
+ // 使用已有的配置方法
+ Config config = getConfig();
+ return new ProfitsharingService.Builder()
+ .config(config)
+ .build();
+ }
+
+ @Bean
+ public Executor profitSharingExecutor(@Qualifier("wechat.pay.profit-sharing-com.central.order.config.ProfitSharingProperties")
+ ProfitSharingProperties properties) {
+ if (!properties.isAsyncEnabled()) {
+ return null;
+ }
+
+ ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
+ executor.setCorePoolSize(properties.getAsyncPoolSize());
+ executor.setMaxPoolSize(properties.getAsyncPoolSize());
+ executor.setQueueCapacity(100);
+ executor.setThreadNamePrefix("profit-sharing-");
+ executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());
+ executor.initialize();
+ return executor;
+ }
+}
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/config/TencentPayProperties.java b/zlt-business/edu-center/src/main/java/com/central/order/config/TencentPayProperties.java
new file mode 100644
index 00000000..61b449fe
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/config/TencentPayProperties.java
@@ -0,0 +1,25 @@
+package com.central.order.config;
+
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+public class TencentPayProperties {
+
+ private String merchantId;
+
+ private String merchantSerialNumber;
+
+ private String apiV3Key;
+
+ private String privateKeyPath;
+
+ private String appId;
+
+ private String appSecret;
+
+ private String notifyUrl;
+
+}
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/config/WxMaProperties.java b/zlt-business/edu-center/src/main/java/com/central/order/config/WxMaProperties.java
new file mode 100644
index 00000000..66b79b90
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/config/WxMaProperties.java
@@ -0,0 +1,9 @@
+package com.central.order.config;
+
+import lombok.Data;
+
+@Data
+public class WxMaProperties {
+ private String appId;
+ private String secret;
+}
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/config/WxMpConfiguration.java b/zlt-business/edu-center/src/main/java/com/central/order/config/WxMpConfiguration.java
new file mode 100644
index 00000000..a5d9d1b4
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/config/WxMpConfiguration.java
@@ -0,0 +1,68 @@
+package com.central.order.config;
+
+import cn.binarywang.wx.miniapp.api.WxMaService;
+import cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl;
+import cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import lombok.RequiredArgsConstructor;
+import me.chanjar.weixin.mp.api.WxMpService;
+import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl;
+import me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.http.converter.StringHttpMessageConverter;
+import org.springframework.web.client.RestTemplate;
+
+import java.nio.charset.StandardCharsets;
+
+@Configuration
+@RequiredArgsConstructor
+public class WxMpConfiguration {
+
+ @Bean
+ @ConfigurationProperties(prefix = "wx.mp")
+ public WxMpProperties wxMpProperties() {
+ return new WxMpProperties();
+ }
+
+ @Bean
+ public WxMpService wxMpService(WxMpProperties wxMpProperties) {
+ WxMpService service = new WxMpServiceImpl();
+ WxMpDefaultConfigImpl config = new WxMpDefaultConfigImpl();
+
+ config.setAppId(wxMpProperties.getAppId());
+ config.setSecret(wxMpProperties.getSecret());
+
+ service.setWxMpConfigStorage(config);
+ return service;
+ }
+
+ @Bean
+ public RestTemplate restTemplate() {
+ RestTemplate restTemplate = new RestTemplate();
+ restTemplate.getMessageConverters().set(1, new StringHttpMessageConverter(StandardCharsets.UTF_8));
+ return restTemplate;
+ }
+
+ @Bean
+ public ObjectMapper objectMapper() {
+ return new ObjectMapper();
+ }
+
+ @Bean
+ @ConfigurationProperties(prefix = "wx.mini")
+ public WxMaProperties wxMaProperties() {
+ return new WxMaProperties();
+ }
+
+ @Bean
+ public WxMaService wxMaService(WxMaProperties wxMaProperties) {
+ WxMaDefaultConfigImpl config = new WxMaDefaultConfigImpl();
+ config.setAppid(wxMaProperties.getAppId());
+ config.setSecret(wxMaProperties.getSecret());
+ WxMaService service = new WxMaServiceImpl();
+ service.setWxMaConfig(config);
+ return service;
+ }
+}
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/config/WxMpProperties.java b/zlt-business/edu-center/src/main/java/com/central/order/config/WxMpProperties.java
new file mode 100644
index 00000000..b0b53fb0
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/config/WxMpProperties.java
@@ -0,0 +1,54 @@
+package com.central.order.config;
+
+import lombok.Data;
+
+@Data
+public class WxMpProperties {
+ /**
+ * 设置微信公众号的appid
+ */
+ private String appId;
+
+ /**
+ * 设置微信公众号的app secret
+ */
+ private String secret;
+
+ /**
+ * 设置云托管环境ID
+ */
+ private String cloudEnv;
+
+ /**
+ * 设置服务基础URL
+ */
+ private String baseUrl;
+
+ /**
+ * 模板ID配置
+ */
+ private TemplateConfig templateId = new TemplateConfig();
+
+ @Data
+ public static class TemplateConfig {
+ /**
+ * 支付成功通知模板ID
+ * 模板内容:
+ * 服务名称:{{thing2.DATA}}
+ * 出行时间:{{time3.DATA}}
+ * 订单号:{{character_string1.DATA}}
+ * 支付金额:{{amount4.DATA}}
+ */
+ private String paymentSuccess;
+
+ /**
+ * 视频处理完成通知模板ID
+ */
+ private String videoComplete;
+
+ /**
+ * 视频处理失败通知模板ID
+ */
+ private String videoFail;
+ }
+}
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/constants/EditTaskStatus.java b/zlt-business/edu-center/src/main/java/com/central/order/constants/EditTaskStatus.java
new file mode 100644
index 00000000..afd51433
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/constants/EditTaskStatus.java
@@ -0,0 +1,53 @@
+package com.central.order.constants;
+
+/**
+ * 编辑任务状态常量
+ */
+public interface EditTaskStatus {
+ /**
+ * 待处理
+ */
+ int PENDING = 0;
+
+ /**
+ * 处理中
+ */
+ int PROCESSING = 1;
+
+ /**
+ * 处理完成
+ */
+ int COMPLETED = 2;
+
+ /**
+ * 处理失败
+ */
+ int FAILED = 3;
+
+ /**
+ * 判断是否为处理中状态
+ */
+ static boolean isProcessing(Integer status) {
+ return PROCESSING == status;
+ }
+
+ /**
+ * 判断是否为完成状态
+ */
+ static boolean isCompleted(Integer status) {
+ return COMPLETED == status;
+ }
+
+ /**
+ * 获取状态描述
+ */
+ static String getStatusDesc(Integer status) {
+ switch (status) {
+ case PENDING: return "待处理";
+ case PROCESSING: return "处理中";
+ case COMPLETED: return "已完成";
+ case FAILED: return "失败";
+ default: return "未知状态";
+ }
+ }
+}
\ No newline at end of file
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/constants/OrderStatusConstants.java b/zlt-business/edu-center/src/main/java/com/central/order/constants/OrderStatusConstants.java
new file mode 100644
index 00000000..f30536ee
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/constants/OrderStatusConstants.java
@@ -0,0 +1,21 @@
+package com.central.order.constants;
+
+import com.central.order.enums.OrderStatus;
+
+public class OrderStatusConstants {
+
+ // 已支付状态集合(已支付排队中、正在服务中、设备执行完成、素材上传中、素材上传完成)
+ public static final String PAID_STATUS = String.format("(%d,%d,%d,%d,%d)",
+ OrderStatus.PAID.getId(), // 1-已支付排队中
+ OrderStatus.DOING.getId(), // 4-正在服务中
+ OrderStatus.COMPLETE.getId(), // 3-设备执行完成
+ OrderStatus.UPLOADING.getId(), // 5-素材上传中
+ OrderStatus.UPLOADED.getId() // 6-素材上传完成
+ );
+
+ // 退款状态集合(退款中、已退款)
+ public static final String REFUND_STATUS = String.format("(%d,%d)",
+ OrderStatus.REFUNDING.getId(), // 7-退款中
+ OrderStatus.REFUNDED.getId() // 8-已退款
+ );
+}
\ No newline at end of file
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/constants/ProfitSharingConstants.java b/zlt-business/edu-center/src/main/java/com/central/order/constants/ProfitSharingConstants.java
new file mode 100644
index 00000000..4eee7ccb
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/constants/ProfitSharingConstants.java
@@ -0,0 +1,16 @@
+package com.central.order.constants;
+
+public interface ProfitSharingConstants {
+ String PROFIT_SHARING_PREFIX = "PS";
+ String PROFIT_SHARING_DESC = "二维码分账";
+
+ int MAX_RETRY_TIMES = 3;
+ long RETRY_INTERVAL = 300000; // 5分钟
+
+ interface Status {
+ int INIT = 0;
+ int PROCESSING = 1;
+ int SUCCESS = 2;
+ int FAILED = 3;
+ }
+}
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/constants/WxConstants.java b/zlt-business/edu-center/src/main/java/com/central/order/constants/WxConstants.java
new file mode 100644
index 00000000..a9cd7e76
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/constants/WxConstants.java
@@ -0,0 +1,35 @@
+package com.central.order.constants;
+
+
+public class WxConstants {
+ /**
+ * Redis key前缀
+ */
+ public static final String REDIS_KEY_PREFIX = "wx:";
+
+ /**
+ * access_token相关
+ */
+ public static class AccessToken {
+ public static final String CACHE_KEY = REDIS_KEY_PREFIX + "access_token";
+ public static final String LOCK_KEY = REDIS_KEY_PREFIX + "access_token:lock";
+ public static final long EXPIRE_TIME = 7000; // 7000秒
+ public static final long REFRESH_TIME = 5400000; // 1.5小时
+ }
+
+ /**
+ * 模板消息相关
+ */
+ public static class Template {
+ public static final String API_SEND = "https://api.weixin.qq.com/cgi-bin/message/template/send";
+ public static final String API_GET_LIST = "https://api.weixin.qq.com/cgi-bin/template/get_all_private_template";
+ public static final String API_DELETE = "https://api.weixin.qq.com/cgi-bin/template/del_private_template";
+ }
+
+ /**
+ * 微信接口相关
+ */
+ public static class Api {
+ public static final String ACCESS_TOKEN = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s";
+ }
+}
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/controller/AutoCutVideoController.java b/zlt-business/edu-center/src/main/java/com/central/order/controller/AutoCutVideoController.java
new file mode 100644
index 00000000..b6ed639d
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/controller/AutoCutVideoController.java
@@ -0,0 +1,266 @@
+package com.central.order.controller;
+
+import com.central.common.model.PageResult;
+import com.central.common.model.Result;
+import com.central.common.model.SysUser;
+import com.central.order.constants.EditTaskStatus;
+import com.central.order.enums.OrderStatus;
+import com.central.order.feign.UserCenterService;
+import com.central.order.model.*;
+import com.central.order.model.dto.CallbackDTO;
+import com.central.order.model.params.EditTaskQueryParams;
+import com.central.order.service.*;
+import com.central.order.util.DateUtils;
+import com.central.order.util.StringUtils;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+/**
+ * 一键成片
+ *
+ */
+@Slf4j
+@RestController
+@Tag(name = "剪辑管理")
+@RequestMapping("/auto/cut")
+@RequiredArgsConstructor
+public class AutoCutVideoController {
+
+ @Autowired
+ private IOrderService orderService;
+ @Autowired
+ private IEditTaskService editTaskService;
+ @Autowired
+ private IOrderFileService orderFileService;
+ @Autowired
+ private IVideoEditService videoEditService;
+ @Autowired
+ private IQrCodeService qrCodeService;
+ @Autowired
+ private WxMiniSubscribeService wxMiniSubscribeService;
+
+ @Autowired
+ private UserCenterService userCenterService;
+
+ @Autowired
+ private ITourismService tourismService;
+
+ @Operation(summary = "根据订单号生成视频")
+ @PostMapping("/generate")
+ public Result generateVideo(@RequestParam String orderNo) {
+ try {
+ // 1. 验证订单状态
+ Order order = orderService.getOrderByNumber(orderNo);
+ if (order == null || !OrderStatus.isValidForEdit(order.getOrderStatus())) {
+ return Result.failed("订单状态不允许生成视频");
+ }
+
+ // 1. 检查是否开启一键成片
+ QrCode qrCode = qrCodeService.getByCodeId(order.getCodeId());
+ if (!isVideoEditEnabled(qrCode)) {
+ log.info("未开启一键成片功能: orderNo={}, codeId={}",
+ order.getOrderNo(), order.getCodeId());
+ return Result.failed("未开启一键成片功能");
+ }
+
+ // 2. 检查是否存在进行中的任务
+ EditTask existingTask = editTaskService.getTaskByOrderSn(orderNo);
+ if (existingTask != null && EditTaskStatus.isProcessing(existingTask.getStatus())) {
+ return Result.failed("已存在进行中的编辑任务");
+ }
+
+ // 3. 创建新任务
+ EditTask task = editTaskService.createTask(orderNo, order.getUserId());
+
+ // 4. 获取素材文件
+ List orderFiles = orderFileService.getOrderFileByOrderNo(orderNo);
+
+ // 5. 提交编辑任务
+ String jobId = videoEditService.submitEditTask(orderNo, orderFiles);
+
+ // 6. 更新任务信息
+ task.setJobId(jobId);
+ task.setStatus(EditTaskStatus.PROCESSING);
+ editTaskService.saveOrUpdateTask(task);
+
+ return Result.succeed(jobId);
+
+ } catch (Exception e) {
+ log.error("提交视频编辑任务失败: orderNo={}", orderNo, e);
+ return Result.failed("提交任务失败:" + e.getMessage());
+ }
+ }
+
+ @Operation(summary = "智能剪辑回调接口")
+ @PostMapping("/callback")
+ public Result handleCallback(@RequestBody CallbackDTO callback) {
+ log.info("收到视频编辑回调: {}", callback);
+ try {
+ // 1. 验证回调信息
+ if (!isValidCallback(callback)) {
+ return Result.failed("无效的回调信息");
+ }
+
+ // 2. 获取任务信息
+ EditTask task = editTaskService.getTaskByJobId(callback.getJobId());
+ if (task == null) {
+ return Result.failed("未找到对应的任务");
+ }
+
+ // 3. 处理成功回调
+ if ("Success".equals(callback.getStatus())) {
+ // 更新任务状态
+ editTaskService.updateTaskStatus(
+ callback.getJobId(),
+ EditTaskStatus.COMPLETED,
+ callback.getResult()
+ );
+
+ // 发送通知
+ notifyUser(task.getUserId().toString(), task.getOrderSn());
+ }
+ // 4. 处理失败回调
+ else {
+ editTaskService.updateTaskStatus(
+ callback.getJobId(),
+ EditTaskStatus.FAILED,
+ callback.getErrorMessage()
+ );
+
+ // 记录错误日志
+ log.error("视频编辑失败: jobId={}, error={}",
+ callback.getJobId(), callback.getErrorMessage());
+ }
+
+ return Result.succeed("回调处理成功");
+
+ } catch (Exception e) {
+ log.error("处理视频编辑回调失败", e);
+ return Result.failed("处理回调失败:" + e.getMessage());
+ }
+ }
+
+ @Operation(summary = "获取任务状态")
+ @GetMapping("/task/status/{orderNo}")
+ public Result getTaskStatus(@PathVariable String orderNo) {
+ try {
+ EditTask task = editTaskService.getTaskByOrderSn(orderNo);
+ if (task == null) {
+ return Result.failed("未找到任务记录");
+ }
+ return Result.succeed(task);
+ } catch (Exception e) {
+ log.error("获取任务状态失败", e);
+ return Result.failed("获取任务状态失败:" + e.getMessage());
+ }
+ }
+
+
+ private boolean isValidCallback(CallbackDTO callback) {
+ // Implementation of isValidCallback method
+ return false; // Placeholder return, actual implementation needed
+ }
+
+ private void notifyUser(String userId,String orderNo) {
+ try {
+ // 1. 获取用户信息
+ SysUser user = userCenterService.findUserById(Long.valueOf(userId));
+ if (user == null || user.getOpenId() == null) {
+ log.warn("未找到用户或用户未绑定小程序openId,无法发送成片完成通知: userId={}", userId);
+ return;
+ }
+
+ // 2. 获取任务和订单信息
+ // 假设 message 里包含订单号或任务名,实际可根据 EditTask 查找
+ Order order = orderService.getOrderByNumber(orderNo);
+ if (order == null) {
+ log.warn("未找到订单信息,无法发送成片完成通知: orderNo={}", orderNo);
+ return;
+ }
+
+ Tourism tourism = tourismService.getTourismById(order.getTourismId());
+ String result = "视频已生成请查阅";
+
+ wxMiniSubscribeService.sendPaySuccessMsg(
+ user.getOpenId(),
+ tourism.getTourismName(),
+ orderNo,
+ result,
+ StringUtils.fenToYuan(order.getOrderAmount()),
+ DateUtils.sdf.format(order.getPayTime())
+ );
+ log.info("已发送一键成片完成通知: userId={}, openId={}, orderNo={}", userId, user.getOpenId(), orderNo);
+ } catch (Exception e) {
+ log.error("发送一键成片完成通知失败: userId={}, message={}", userId, orderNo, e);
+ }
+ }
+
+
+ @Operation(summary = "获取剪辑任务列表")
+ @GetMapping("/list")
+ public Result> getTaskList(
+ @RequestParam(defaultValue = "1") Integer page,
+ @RequestParam(defaultValue = "10") Integer limit,
+ @RequestParam(required = false) String orderSn,
+ @RequestParam(required = false) String jobId,
+ @RequestParam(required = false) Integer status) {
+ try {
+ EditTaskQueryParams params = EditTaskQueryParams.builder()
+ .page(page)
+ .limit(limit)
+ .orderSn(orderSn)
+ .jobId(jobId)
+ .status(status)
+ .build();
+
+ PageResult result = editTaskService.getTaskList(params);
+ return Result.succeed(result);
+
+ } catch (Exception e) {
+ log.error("查询剪辑任务列表失败", e);
+ return Result.failed("查询任务列表失败");
+ }
+ }
+
+ @Operation(summary = "保存或更新剪辑任务")
+ @PostMapping("/save")
+ public Result saveOrUpdateTask(@RequestBody EditTask task) {
+ try {
+ boolean success = editTaskService.saveOrUpdateTask(task);
+ return Result.succeed(success);
+
+ } catch (Exception e) {
+ log.error("保存剪辑任务失败: task={}", task, e);
+ return Result.failed("保存任务失败: " + e.getMessage());
+ }
+ }
+
+ @Operation(summary = "删除剪辑任务")
+ @DeleteMapping("/delete/{id}")
+ public Result deleteTask(@PathVariable Integer id) {
+ try {
+ boolean success = editTaskService.deleteTask(id);
+ return Result.succeed(success);
+
+ } catch (Exception e) {
+ log.error("删除剪辑任务失败: id={}", id, e);
+ return Result.failed("删除任务失败: " + e.getMessage());
+ }
+ }
+
+ /**
+ * 检查是否开启一键成片功能
+ */
+ private boolean isVideoEditEnabled(QrCode qrCode) {
+ return qrCode != null
+ && qrCode.getEnableVideoEdit() != null
+ && qrCode.getEnableVideoEdit() == 1
+ && qrCode.getTemplateId() != null; // 确保有模板ID
+ }
+}
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/controller/DashboardController.java b/zlt-business/edu-center/src/main/java/com/central/order/controller/DashboardController.java
new file mode 100644
index 00000000..600e4a66
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/controller/DashboardController.java
@@ -0,0 +1,34 @@
+package com.central.order.controller;
+
+import com.central.common.model.Result;
+import com.central.order.model.vo.DashboardStatisticsVO;
+import com.central.order.service.IDashboardService;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@Slf4j
+@RestController
+@RequestMapping("/dashboard")
+@Tag(name = "首页统计", description = "首页统计数据接口")
+@RequiredArgsConstructor
+public class DashboardController {
+
+ private final IDashboardService dashboardService;
+
+ @Operation(summary = "获取首页统计数据")
+ @GetMapping("/statistics")
+ public Result getStatistics() {
+ try {
+ DashboardStatisticsVO statistics = dashboardService.getDashboardStatistics();
+ return Result.succeed(statistics, "获取首页统计数据成功");
+ } catch (Exception e) {
+ log.error("获取首页统计数据失败", e);
+ return Result.failed("获取统计数据失败:" + e.getMessage());
+ }
+ }
+}
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/controller/HomeCarouselController.java b/zlt-business/edu-center/src/main/java/com/central/order/controller/HomeCarouselController.java
new file mode 100644
index 00000000..34194594
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/controller/HomeCarouselController.java
@@ -0,0 +1,90 @@
+package com.central.order.controller;
+
+import com.central.common.model.PageResult;
+import com.central.common.model.Result;
+import com.central.order.feign.FileCenterService;
+import com.central.order.model.HomeCarousel;
+import com.central.order.service.IHomeCarouselService;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.Parameters;
+import io.swagger.v3.oas.annotations.enums.ParameterIn;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * HomeCarousel information
+ *
+ * @author lsl
+ * @date 2025-2-19 17:51:47
+ */
+@Slf4j
+@RestController
+@Tag(name = "HomeCarousel管理")
+@RequestMapping("/home/carousel")
+@RequiredArgsConstructor
+public class HomeCarouselController {
+
+ @Autowired
+ private IHomeCarouselService homeCarouselService;
+
+ @Autowired
+ private FileCenterService fileCenterService;
+
+ /**
+ * 列表
+ */
+ @Operation(summary = "查询列表")
+ @Parameters({
+ @Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
+ @Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
+ })
+ @GetMapping
+ public PageResult list(@RequestParam Map params) {
+ PageResult pageResult = homeCarouselService.findList(params);
+ if (pageResult.getCount()>0){
+ for (HomeCarousel homeCarousel: pageResult.getData()){
+ homeCarousel.setImageUrl(fileCenterService.getViewUrlByPath(homeCarousel.getImageUrl()));
+ }
+ }
+ return pageResult;
+ }
+
+ @GetMapping("/app")
+ public Result> homeList() {
+ List list = homeCarouselService.list();
+ if (!list.isEmpty()){
+ for (HomeCarousel homeCarousel: list){
+ homeCarousel.setImageUrl(fileCenterService.getViewUrlByPath(homeCarousel.getImageUrl()));
+ }
+ }
+ return Result.succeed(list,"获取成功");
+ }
+
+ @PostMapping()
+ public Result saveOrUpdate(@RequestBody HomeCarousel homeCarousel) {
+ return homeCarouselService.saveOrUpdateHomeCarousel(homeCarousel);
+ }
+
+ @Operation(summary = "查询HomeCarousel")
+ @GetMapping("/{id}")
+ public Result getHomeCarousel(@PathVariable("id") Long id) {
+ HomeCarousel homeCarousel = homeCarouselService.getById(id);
+ if (homeCarousel == null) {
+ return Result.failed("暂无数据");
+ }
+ return Result.succeed(homeCarousel,"获取成功");
+ }
+
+ @DeleteMapping("/{id}")
+ public Result delete(@PathVariable Long id) {
+ homeCarouselService.removeById(id);
+ return Result.succeed("操作成功");
+ }
+}
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/controller/MessageController.java b/zlt-business/edu-center/src/main/java/com/central/order/controller/MessageController.java
new file mode 100644
index 00000000..c3baaea8
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/controller/MessageController.java
@@ -0,0 +1,47 @@
+package com.central.order.controller;
+
+import com.central.common.model.PageResult;
+import com.central.common.model.Result;
+import com.central.order.model.Message;
+import com.central.order.service.IMessageService;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.Map;
+
+@Slf4j
+@RestController
+@RequestMapping("/messages")
+@Tag(name = "站内信管理")
+@RequiredArgsConstructor
+public class MessageController {
+
+ private final IMessageService messageService;
+
+ @Operation(summary = "获取消息列表")
+ @GetMapping
+ public PageResult getMessages(@RequestParam Map params) {
+ return messageService.findMessages(params);
+ }
+
+ @Operation(summary = "标记消息已读")
+ @PutMapping("/{id}/read")
+ public Result markAsRead(@PathVariable Long id) {
+ return messageService.markAsRead(id);
+ }
+
+ @Operation(summary = "标记所有消息已读")
+ @PutMapping("/read/all")
+ public Result markAllAsRead() {
+ return messageService.markAllAsRead();
+ }
+
+ @Operation(summary = "删除消息")
+ @DeleteMapping("/{id}")
+ public Result deleteMessage(@PathVariable Long id) {
+ return messageService.deleteMessage(id);
+ }
+}
diff --git a/zlt-business/edu-center/src/main/java/com/central/order/controller/OrderController.java b/zlt-business/edu-center/src/main/java/com/central/order/controller/OrderController.java
new file mode 100644
index 00000000..18795f52
--- /dev/null
+++ b/zlt-business/edu-center/src/main/java/com/central/order/controller/OrderController.java
@@ -0,0 +1,680 @@
+package com.central.order.controller;
+
+import com.alibaba.csp.sentinel.util.StringUtil;
+import com.central.common.constant.CommonConstant;
+import com.central.common.context.LoginUserContextHolder;
+import com.central.common.context.TenantContextHolder;
+import com.central.common.model.LoginAppUser;
+import com.central.common.model.PageResult;
+import com.central.common.model.Result;
+import com.central.common.model.SysUser;
+import com.central.log.annotation.AuditLog;
+import com.central.order.config.TencentPayProperties;
+import com.central.order.enums.CommonStatus;
+import com.central.order.enums.OrderStatus;
+import com.central.order.feign.DeviceCenterService;
+import com.central.order.feign.FileCenterService;
+import com.central.order.feign.UserCenterService;
+import com.central.order.model.*;
+import com.central.order.service.*;
+import com.wechat.pay.java.service.payments.jsapi.JsapiServiceExtension;
+import com.wechat.pay.java.service.payments.jsapi.model.*;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.Parameters;
+import io.swagger.v3.oas.annotations.enums.ParameterIn;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.collections4.MapUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.util.Assert;
+import org.springframework.web.bind.annotation.*;
+
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Order information
+ *
+ * @author lsl
+ * @date 2024-12-19 17:51:47
+ */
+@Slf4j
+@RestController
+@Tag(name = "订单管理")
+@RequiredArgsConstructor
+public class OrderController {
+
+ //设备执行任务默认时间长度3分钟
+ private static final long DEVICE_EXEC_TIME = 4;
+
+ @Autowired
+ private IOrderService orderService;
+
+ @Autowired
+ private IOrderFileService orderFileService;
+
+ @Autowired
+ private ITourismService tourismService;
+
+ @Autowired
+ private ITourismFileService tourismFileService;
+
+ @Autowired
+ private UserCenterService userCenterService;
+
+ @Autowired
+ private FileCenterService fileCenterService;
+
+ @Autowired
+ private JsapiServiceExtension service;
+
+ @Autowired
+ private IQrCodeService qrCodeService;
+
+ @Autowired
+ private TencentPayProperties tencentPayProperties;
+
+ @Value("${file.oss-url}")
+ private String cdnOssUrl;
+
+ @Value("${file.cdn-url}")
+ private String cdnUrl;
+
+ @Value("${file.style}")
+ private String fileStyle;
+ // 获取当前日期,格式化为 yyyyMMdd
+ SimpleDateFormat sdf = new SimpleDateFormat(CommonConstant.DATEMINUTE_FORMAT);
+
+ @Autowired
+ private DeviceCenterService deviceCenterService;
+
+ @Autowired
+ private IProfitSharingService profitSharingService;
+
+ /**
+ * 列表
+ */
+ @Operation(summary = "查询全部列表")
+ @Parameters({
+ @Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
+ @Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
+ })
+ @GetMapping("/list")
+ public PageResult list(@RequestParam Map params) {
+ return orderService.findList(params);
+ }
+
+ /**
+ * 列表
+ */
+ @Operation(summary = "查询用户订单列表")
+ @Parameters({
+ @Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
+ @Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
+ })
+ @GetMapping
+ public PageResult listByUser(@RequestParam Map params) {
+ LoginAppUser user = LoginUserContextHolder.getUser();
+ if (user == null) {
+ return new PageResult<>();
+ }
+ params.put("userId", user.getId());
+ return orderService.findListByUser(params);
+ }
+
+ /**
+ * 列表
+ */
+ @Operation(summary = "查询用户订单详情列表")
+ @Parameters({
+ @Parameter(name = "page",description = "分页起始位置",required = true,in=ParameterIn.QUERY),
+ @Parameter(name = "limit",description = "分页结束位置",required = true,in=ParameterIn.QUERY)
+ })
+ @GetMapping("/user")
+ public PageResult