- 在IM、授权、推送、版本管理视图中添加最近使用应用的记忆功能 - 新增serviceApp工具函数用于存储和获取最近使用的应用 - 将系统日志、数据库、操作日志菜单项归类到运维管理子菜单 - 修复实体类索引字段命名不一致问题 - 在安全配置中启用方法级别安全注解支持
70 行
2.1 KiB
Java
70 行
2.1 KiB
Java
package com.xuqm.license.entity;
|
|
|
|
import jakarta.persistence.Column;
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.Id;
|
|
import jakarta.persistence.Index;
|
|
import jakarta.persistence.Table;
|
|
import java.time.LocalDateTime;
|
|
|
|
@Entity
|
|
@Table(name = "license_operation_log", indexes = {
|
|
@Index(name = "idx_license_op_log_app_time", columnList = "app_key,created_at")
|
|
})
|
|
public class LicenseOperationLogEntity {
|
|
|
|
@Id
|
|
private String id;
|
|
|
|
@Column(nullable = false, length = 64)
|
|
private String appKey;
|
|
|
|
@Column(nullable = false, length = 128)
|
|
private String operator;
|
|
|
|
@Column(nullable = false, length = 64)
|
|
private String action;
|
|
|
|
@Column(nullable = false, length = 64)
|
|
private String resourceType;
|
|
|
|
@Column(length = 128)
|
|
private String resourceId;
|
|
|
|
@Column(length = 255)
|
|
private String summary;
|
|
|
|
@Column(columnDefinition = "TEXT")
|
|
private String detailJson;
|
|
|
|
@Column(nullable = false)
|
|
private LocalDateTime createdAt;
|
|
|
|
public String getId() { return id; }
|
|
public void setId(String id) { this.id = id; }
|
|
|
|
public String getAppKey() { return appKey; }
|
|
public void setAppKey(String appKey) { this.appKey = appKey; }
|
|
|
|
public String getOperator() { return operator; }
|
|
public void setOperator(String operator) { this.operator = operator; }
|
|
|
|
public String getAction() { return action; }
|
|
public void setAction(String action) { this.action = action; }
|
|
|
|
public String getResourceType() { return resourceType; }
|
|
public void setResourceType(String resourceType) { this.resourceType = resourceType; }
|
|
|
|
public String getResourceId() { return resourceId; }
|
|
public void setResourceId(String resourceId) { this.resourceId = resourceId; }
|
|
|
|
public String getSummary() { return summary; }
|
|
public void setSummary(String summary) { this.summary = summary; }
|
|
|
|
public String getDetailJson() { return detailJson; }
|
|
public void setDetailJson(String detailJson) { this.detailJson = detailJson; }
|
|
|
|
public LocalDateTime getCreatedAt() { return createdAt; }
|
|
public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
|
|
}
|