You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
610 B
25 lines
610 B
package com.example.demo.domain.entity;
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
import lombok.Data;
|
|
import lombok.NoArgsConstructor;
|
|
import org.springframework.data.annotation.Id;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
@Data
|
|
@NoArgsConstructor
|
|
public class OperationLog {
|
|
@Id
|
|
private Integer id;
|
|
|
|
private Integer userId;
|
|
private String username;
|
|
private String action; // 操作描述
|
|
private String ip;
|
|
private String method; // 调用的方法名
|
|
private String args; // 参数(JSON字符串)
|
|
private LocalDateTime createTime = LocalDateTime.now();
|
|
|
|
}
|