添加Apache Commons Codec依赖以支持SHA-256和十六进制工具,并在application.yml中新增外部脚本配置及链接过期时间设置。同时,删除不再使用的类文件以清理项目结构。
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.gameplatform.server.model.dto.link;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
public class LinkGenerateRequest {
|
||||
@Schema(description = "本次打脚本的次数", example = "10")
|
||||
private Integer times;
|
||||
@Schema(description = "每次打的数量", example = "5")
|
||||
private Integer perTimeQuantity;
|
||||
@Schema(description = "为哪个代理账户生成(管理员可指定,代理可省略或为自己)")
|
||||
private Long agentAccountId;
|
||||
|
||||
public Integer getTimes() { return times; }
|
||||
public void setTimes(Integer times) { this.times = times; }
|
||||
public Integer getPerTimeQuantity() { return perTimeQuantity; }
|
||||
public void setPerTimeQuantity(Integer perTimeQuantity) { this.perTimeQuantity = perTimeQuantity; }
|
||||
public Long getAgentAccountId() { return agentAccountId; }
|
||||
public void setAgentAccountId(Long agentAccountId) { this.agentAccountId = agentAccountId; }
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.gameplatform.server.model.dto.link;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
public class LinkGenerateResponse {
|
||||
@Schema(description = "批次ID")
|
||||
private Long batchId;
|
||||
@Schema(description = "扣点(管理员为0)")
|
||||
private Long deductPoints;
|
||||
@Schema(description = "过期时间")
|
||||
private LocalDateTime expireAt;
|
||||
@Schema(description = "生成的codeNo集合")
|
||||
private List<String> codeNos;
|
||||
|
||||
public Long getBatchId() { return batchId; }
|
||||
public void setBatchId(Long batchId) { this.batchId = batchId; }
|
||||
public Long getDeductPoints() { return deductPoints; }
|
||||
public void setDeductPoints(Long deductPoints) { this.deductPoints = deductPoints; }
|
||||
public LocalDateTime getExpireAt() { return expireAt; }
|
||||
public void setExpireAt(LocalDateTime expireAt) { this.expireAt = expireAt; }
|
||||
public List<String> getCodeNos() { return codeNos; }
|
||||
public void setCodeNos(List<String> codeNos) { this.codeNos = codeNos; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user