From dba9054ddcc6a9cec93ab58ecef4c3de4ce64310 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 14 十一月 2022 16:15:14 +0800
Subject: [PATCH] 1

---
 src/main/java/com/lf/server/entity/show/FloatServerResponse.java |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/lf/server/entity/show/FloatServerResponse.java b/src/main/java/com/lf/server/entity/show/FloatServerResponse.java
index da3c811..9aaab2a 100644
--- a/src/main/java/com/lf/server/entity/show/FloatServerResponse.java
+++ b/src/main/java/com/lf/server/entity/show/FloatServerResponse.java
@@ -1,5 +1,10 @@
 package com.lf.server.entity.show;
 
+import com.lf.server.helper.StringHelper;
+
+import java.util.Calendar;
+import java.util.Date;
+
 /**
  * FloatServerResponse
  * @author WWW
@@ -18,6 +23,23 @@
     private int availableNum;
 
     private String licenseCode;
+
+    private String localId;
+
+    public FloatServerResponse() {
+    }
+
+    public FloatServerResponse(ReqParamFloatServer req) {
+        Calendar calendar = Calendar.getInstance();
+        calendar.set(Calendar.YEAR, 2025);
+
+        this.id = req.getId();
+        this.localId = req.getLocalId();
+        this.availableNum = req.getAvailableNum();
+        this.time = calendar.getTimeInMillis();
+        this.expireDate = StringHelper.YMD_FORMAT.format(this.time);
+        this.licenseCode = "78a82f0920de0f557f8177bec1e48601c4dc25e4054a00728e4314b56528d3a1632de5298edee38a65412277977a174fea5d91c452b19ef138dbc2ba089ba632";
+    }
 
     public String getModules() {
         return this.modules;
@@ -74,4 +96,12 @@
     public void setLicenseCode(final String licenseCode) {
         this.licenseCode = licenseCode;
     }
+
+    public String getLocalId() {
+        return localId;
+    }
+
+    public void setLocalId(String localId) {
+        this.localId = localId;
+    }
 }

--
Gitblit v1.9.3