141 lines
3.5 KiB
Java
141 lines
3.5 KiB
Java
package com.ruoyi.system.domain;
|
|
|
|
import java.util.Date;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
import com.ruoyi.common.annotation.Excel;
|
|
import com.ruoyi.common.core.domain.BaseEntity;
|
|
import java.io.Serializable;
|
|
/**
|
|
* HMAC请求防重放记录对象 rent_nonce
|
|
*
|
|
* @author luqj
|
|
* @date 2026-10-22
|
|
*/
|
|
public class RentNonce extends BaseEntity
|
|
{
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
/** 记录主键 */
|
|
private Long id;
|
|
|
|
/** rent_credential.api_key */
|
|
@Excel(name = "rent_credential.api_key")
|
|
private String apiKey;
|
|
|
|
/** API、NODE、TASK、WEBHOOK,签名须覆盖该域 */
|
|
@Excel(name = "API、NODE、TASK、WEBHOOK,签名须覆盖该域")
|
|
private String scope;
|
|
|
|
/** 高熵随机数 */
|
|
@Excel(name = "高熵随机数")
|
|
private String nonce;
|
|
|
|
/** 可清理时间服务器本地,必须晚于消息有效期 */
|
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
|
@Excel(name = "可清理时间服务器本地,必须晚于消息有效期", width = 30, dateFormat = "yyyy-MM-dd")
|
|
private Date expiresAt;
|
|
|
|
/** CAS乐观锁版本,更新须条件递增;追加记录保持0 */
|
|
@Excel(name = "CAS乐观锁版本,更新须条件递增;追加记录保持0")
|
|
private Long version;
|
|
|
|
/** 创建服务器本地时间,应用显式写入 */
|
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
|
@Excel(name = "创建服务器本地时间,应用显式写入", width = 30, dateFormat = "yyyy-MM-dd")
|
|
private Date createdAt;
|
|
|
|
/** 更新服务器本地时间,追加记录与创建时间相同 */
|
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
|
@Excel(name = "更新服务器本地时间,追加记录与创建时间相同", width = 30, dateFormat = "yyyy-MM-dd")
|
|
private Date updatedAt;
|
|
|
|
public void setId(Long id)
|
|
{
|
|
this.id = id;
|
|
}
|
|
|
|
public Long getId()
|
|
{
|
|
return id;
|
|
}
|
|
public void setApiKey(String apiKey)
|
|
{
|
|
this.apiKey = apiKey;
|
|
}
|
|
|
|
public String getApiKey()
|
|
{
|
|
return apiKey;
|
|
}
|
|
public void setScope(String scope)
|
|
{
|
|
this.scope = scope;
|
|
}
|
|
|
|
public String getScope()
|
|
{
|
|
return scope;
|
|
}
|
|
public void setNonce(String nonce)
|
|
{
|
|
this.nonce = nonce;
|
|
}
|
|
|
|
public String getNonce()
|
|
{
|
|
return nonce;
|
|
}
|
|
public void setExpiresAt(Date expiresAt)
|
|
{
|
|
this.expiresAt = expiresAt;
|
|
}
|
|
|
|
public Date getExpiresAt()
|
|
{
|
|
return expiresAt;
|
|
}
|
|
public void setVersion(Long version)
|
|
{
|
|
this.version = version;
|
|
}
|
|
|
|
public Long getVersion()
|
|
{
|
|
return version;
|
|
}
|
|
public void setCreatedAt(Date createdAt)
|
|
{
|
|
this.createdAt = createdAt;
|
|
}
|
|
|
|
public Date getCreatedAt()
|
|
{
|
|
return createdAt;
|
|
}
|
|
public void setUpdatedAt(Date updatedAt)
|
|
{
|
|
this.updatedAt = updatedAt;
|
|
}
|
|
|
|
public Date getUpdatedAt()
|
|
{
|
|
return updatedAt;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
.append("id", getId())
|
|
.append("apiKey", getApiKey())
|
|
.append("scope", getScope())
|
|
.append("nonce", getNonce())
|
|
.append("expiresAt", getExpiresAt())
|
|
.append("version", getVersion())
|
|
.append("createdAt", getCreatedAt())
|
|
.append("updatedAt", getUpdatedAt())
|
|
.toString();
|
|
}
|
|
}
|