基础代码生成

This commit is contained in:
lu7213 committed 2026-10-22 11:09:36 -04:00
1 parent 352d7d023f
commit 1c0544afe0
122 files changed
+21475

No files matched your search

@@ -0,0 +1,197 @@
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凭证版本;不含RSA对象 rent_credential
*
* @author luqj
* @date 2026-10-22
*/
public class RentCredential extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 记录主键 */
private Long id;
/** APP商户、NODE节点 */
@Excel(name = "APP商户、NODE节点")
private String ownerType;
/** APP时rent_app.id,NODE时rent_node.id */
@Excel(name = "APP时rent_app.id,NODE时rent_node.id")
private Long ownerId;
/** 永久唯一公开凭证标识 */
@Excel(name = "永久唯一公开凭证标识")
private String apiKey;
/** AES-GCM加密封装的API Secret,含IV和tag;禁止返回或记录明文 */
@Excel(name = "AES-GCM加密封装的API Secret,含IV和tag;禁止返回或记录明文")
private String apiSecret;
/** 外部AES主密钥版本,不存主密钥 */
@Excel(name = "外部AES主密钥版本,不存主密钥")
private String masterKeyVersion;
/** ACTIVE可签发新消息、VERIFY_ONLY仅验历史在途、REVOKED吊销 */
@Excel(name = "ACTIVE可签发新消息、VERIFY_ONLY仅验历史在途、REVOKED吊销")
private String status;
/** 凭证过期时间,UTC */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "凭证过期时间,UTC", width = 30, dateFormat = "yyyy-MM-dd")
private Date expiresAt;
/** 吊销时间,UTC */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "吊销时间,UTC", width = 30, dateFormat = "yyyy-MM-dd")
private Date revokedAt;
/** CAS乐观锁版本,更新须条件递增;追加记录保持0 */
@Excel(name = "CAS乐观锁版本,更新须条件递增;追加记录保持0")
private Long version;
/** 创建UTC时间,应用显式写入 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "创建UTC时间,应用显式写入", width = 30, dateFormat = "yyyy-MM-dd")
private Date createdAt;
/** 更新UTC时间,追加记录与创建时间相同 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "更新UTC时间,追加记录与创建时间相同", width = 30, dateFormat = "yyyy-MM-dd")
private Date updatedAt;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setOwnerType(String ownerType)
{
this.ownerType = ownerType;
}
public String getOwnerType()
{
return ownerType;
}
public void setOwnerId(Long ownerId)
{
this.ownerId = ownerId;
}
public Long getOwnerId()
{
return ownerId;
}
public void setApiKey(String apiKey)
{
this.apiKey = apiKey;
}
public String getApiKey()
{
return apiKey;
}
public void setApiSecret(String apiSecret)
{
this.apiSecret = apiSecret;
}
public String getApiSecret()
{
return apiSecret;
}
public void setMasterKeyVersion(String masterKeyVersion)
{
this.masterKeyVersion = masterKeyVersion;
}
public String getMasterKeyVersion()
{
return masterKeyVersion;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setExpiresAt(Date expiresAt)
{
this.expiresAt = expiresAt;
}
public Date getExpiresAt()
{
return expiresAt;
}
public void setRevokedAt(Date revokedAt)
{
this.revokedAt = revokedAt;
}
public Date getRevokedAt()
{
return revokedAt;
}
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("ownerType", getOwnerType())
.append("ownerId", getOwnerId())
.append("apiKey", getApiKey())
.append("apiSecret", getApiSecret())
.append("masterKeyVersion", getMasterKeyVersion())
.append("status", getStatus())
.append("expiresAt", getExpiresAt())
.append("revokedAt", getRevokedAt())
.append("version", getVersion())
.append("createdAt", getCreatedAt())
.append("updatedAt", getUpdatedAt())
.toString();
}
}