feat: 为访问令牌增加名称
- 支持创建和编辑访问令牌名称 - 在列表首列展示名称并兼容历史数据
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user