feat: 为访问令牌增加名称

- 支持创建和编辑访问令牌名称

- 在列表首列展示名称并兼容历史数据
This commit is contained in:
2026-08-07 12:55:04 +08:00
parent d244a0404d
commit 13dec6c216
8 changed files with 220 additions and 14 deletions

View File

@@ -18,6 +18,12 @@ public class SysApiKeyBase implements Serializable {
@Id(keyType = KeyType.Generator, value = "snowFlakeId", comment = "id")
private BigInteger id;
/**
* 名称
*/
@Column(comment = "名称")
private String name;
/**
* apiKey
*/
@@ -68,6 +74,24 @@ public class SysApiKeyBase implements Serializable {
this.id = id;
}
/**
* 获取访问令牌名称。
*
* @return 访问令牌名称
*/
public String getName() {
return name;
}
/**
* 设置访问令牌名称。
*
* @param name 访问令牌名称
*/
public void setName(String name) {
this.name = name;
}
public String getApiKey() {
return apiKey;
}