新增apiKey和相关逻辑

This commit is contained in:
lu7213 committed 2026-10-09 10:58:25 -04:00
1 parent bc772b8b15
commit 051f78b59c
9 files changed
+77 -15

No files matched your search

@@ -29,6 +29,10 @@ public class AppApiKeys extends BaseEntity
@Excel(name = "用户")
private Long userId;
/** API 公钥标识 */
@Excel(name = "API Key")
private String apiKey;
/** 密钥 */
@JsonIgnore
private String apiSecret;
@@ -82,6 +86,15 @@ public class AppApiKeys extends BaseEntity
{
return userId;
}
public void setApiKey(String apiKey)
{
this.apiKey = apiKey;
}
public String getApiKey()
{
return apiKey;
}
public void setApiSecret(String apiSecret)
{
this.apiSecret = apiSecret;
@@ -143,6 +156,7 @@ public class AppApiKeys extends BaseEntity
.append("id", getId())
.append("appId", getAppId())
.append("userId", getUserId())
.append("apiKey", getApiKey())
.append("apiSecret", "<redacted>")
.append("status", getStatus())
.append("expiredAt", getExpiredAt())