From 5b1b39418ecdb1a035ac054393a863eda8c0ef5b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=85=95=E4=B8=8B?= <484014559@qq.com>
Date: Fri, 30 Aug 2024 16:44:28 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BF=83=E8=B7=B3=E6=95=B0=E6=8D=AE=E6=8E=A8?=
=?UTF-8?q?=E9=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ludu-module-datacenter-biz/pom.xml | 6 ++
.../DatacenterServerApplication.java | 2 +
.../app/checkticket/CheckTicketApi.java | 15 ++++
.../controller/app/clients/LoginClient.java | 16 +++++
.../app/clients/vo/AuthLoginReqVO.java | 69 +++++++++++++++++++
.../checkticket/CheckTicketServiceImpl.java | 6 ++
.../yudao-module-infra-biz/pom.xml | 6 ++
.../module/infra/InfraServerApplication.java | 2 +
.../infra/clients/LargeScreenClient.java | 13 ++++
.../LargeScreenHeartbeat.java | 28 ++++++++
.../controller/admin/auth/AuthController.java | 3 +
.../config/SecurityConfiguration.java | 2 +
12 files changed, 168 insertions(+)
create mode 100644 ludu-module-datacenter/ludu-module-datacenter-biz/src/main/java/cn/iocoder/yudao/module/datacenter/controller/app/clients/LoginClient.java
create mode 100644 ludu-module-datacenter/ludu-module-datacenter-biz/src/main/java/cn/iocoder/yudao/module/datacenter/controller/app/clients/vo/AuthLoginReqVO.java
create mode 100644 yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/clients/LargeScreenClient.java
create mode 100644 yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/job/largeScreenHeartbeat/LargeScreenHeartbeat.java
diff --git a/ludu-module-datacenter/ludu-module-datacenter-biz/pom.xml b/ludu-module-datacenter/ludu-module-datacenter-biz/pom.xml
index 18e366d75..4d2dea9cd 100644
--- a/ludu-module-datacenter/ludu-module-datacenter-biz/pom.xml
+++ b/ludu-module-datacenter/ludu-module-datacenter-biz/pom.xml
@@ -116,6 +116,12 @@
yudao-spring-boot-starter-monitor
+
+
+ org.springframework.cloud
+ spring-cloud-starter-openfeign
+
+
diff --git a/ludu-module-datacenter/ludu-module-datacenter-biz/src/main/java/cn/iocoder/yudao/module/datacenter/DatacenterServerApplication.java b/ludu-module-datacenter/ludu-module-datacenter-biz/src/main/java/cn/iocoder/yudao/module/datacenter/DatacenterServerApplication.java
index 3aa0aa9cd..87f446c28 100644
--- a/ludu-module-datacenter/ludu-module-datacenter-biz/src/main/java/cn/iocoder/yudao/module/datacenter/DatacenterServerApplication.java
+++ b/ludu-module-datacenter/ludu-module-datacenter-biz/src/main/java/cn/iocoder/yudao/module/datacenter/DatacenterServerApplication.java
@@ -2,11 +2,13 @@ package cn.iocoder.yudao.module.datacenter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cloud.openfeign.EnableFeignClients;
/**
* @Description 大屏服务启动类
*/
@SpringBootApplication
+@EnableFeignClients
public class DatacenterServerApplication {
public static void main(String[] args) {
SpringApplication.run(DatacenterServerApplication.class, args);
diff --git a/ludu-module-datacenter/ludu-module-datacenter-biz/src/main/java/cn/iocoder/yudao/module/datacenter/controller/app/checkticket/CheckTicketApi.java b/ludu-module-datacenter/ludu-module-datacenter-biz/src/main/java/cn/iocoder/yudao/module/datacenter/controller/app/checkticket/CheckTicketApi.java
index bd7d6865f..5924a2d58 100644
--- a/ludu-module-datacenter/ludu-module-datacenter-biz/src/main/java/cn/iocoder/yudao/module/datacenter/controller/app/checkticket/CheckTicketApi.java
+++ b/ludu-module-datacenter/ludu-module-datacenter-biz/src/main/java/cn/iocoder/yudao/module/datacenter/controller/app/checkticket/CheckTicketApi.java
@@ -1,5 +1,7 @@
package cn.iocoder.yudao.module.datacenter.controller.app.checkticket;
+import cn.iocoder.yudao.module.datacenter.controller.app.clients.LoginClient;
+import cn.iocoder.yudao.module.datacenter.controller.app.clients.vo.AuthLoginReqVO;
import cn.iocoder.yudao.module.datacenter.service.checkticket.CheckTicketService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
@@ -20,6 +22,10 @@ import java.util.Map;
public class CheckTicketApi {
@Resource
private CheckTicketService checkTicketService;
+
+ @Resource
+ private LoginClient loginClient;
+
@GetMapping()
@Operation(summary = "获得日期当天的检票人数")
public Long checkTicketTotal(String starTime, String endTime) {
@@ -35,4 +41,13 @@ public class CheckTicketApi {
String replace1 = endTime.replace("-", "");
return checkTicketService.findbytimetemp(replace,replace1);
}
+
+ @GetMapping("/getToken")
+ public Map