管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-14 dba9054ddcc6a9cec93ab58ecef4c3de4ce64310
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;
    }
}