| | |
| | | package com.lf.server.entity.show; |
| | | |
| | | import com.lf.server.helper.StringHelper; |
| | | |
| | | import java.util.Calendar; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * FloatServerResponse |
| | | * @author WWW |
| | |
| | | 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; |
| | |
| | | public void setLicenseCode(final String licenseCode) { |
| | | this.licenseCode = licenseCode; |
| | | } |
| | | |
| | | public String getLocalId() { |
| | | return localId; |
| | | } |
| | | |
| | | public void setLocalId(String localId) { |
| | | this.localId = localId; |
| | | } |
| | | } |