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.

24 lines
610 B

  1. package com.example.demo.domain.entity;
  2. import lombok.AllArgsConstructor;
  3. import lombok.Data;
  4. import lombok.NoArgsConstructor;
  5. import org.springframework.data.annotation.Id;
  6. import java.time.LocalDateTime;
  7. @Data
  8. @NoArgsConstructor
  9. public class OperationLog {
  10. @Id
  11. private Integer id;
  12. private Integer userId;
  13. private String username;
  14. private String action; // 操作描述
  15. private String ip;
  16. private String method; // 调用的方法名
  17. private String args; // 参数(JSON字符串)
  18. private LocalDateTime createTime = LocalDateTime.now();
  19. }