content: package net.laoyeye.yyblog.model;
  
  import java.util.Date;
  
  import com.fasterxml.jackson.annotation.JsonFormat;
  /**
   * 
   * @author 小卖铺的老爷爷
   * @date 2018年6月22日
   * @website www.laoyeye.net
   */
  public class LogDO {
      private Long id;
  
      private Long userId;
  
      private String username;
  
      private String operation;
  
      private Integer time;
  
      private String method;
  
      private String params;
  
      private String params2;
  
      private String ip;
      @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
      private Date createTime;
  
      public Long getId() {
          return id;
      }
  
      public void setId(Long id) {
          this.id = id;
      }
  
      public Long getUserId() {
          return userId;
      }
  
      public void setUserId(Long userId) {
          this.userId = userId;
      }
  
      public String getUsername() {
          return username;
      }
  
      public void setUsername(String username) {
          this.username = username == null ? null : username.trim();
      }
  
      public String getOperation() {
          return operation;
      }
  
      public void setOperation(String operation) {
          this.operation = operation == null ? null : operation.trim();
      }
  
      public Integer getTime() {
          return time;
      }
  
      public void setTime(Integer time) {
          this.time = time;
      }
  
      public String getMethod() {
          return method;
      }
  
      public void setMethod(String method) {
          this.method = method == null ? null : method.trim();
      }
  
      public String getParams() {
          return params;
      }
  
      public void setParams(String params) {
          this.params = params == null ? null : params.trim();
      }
  
      public String getParams2() {
          return params2;
      }
  
      public void setParams2(String params2) {
          this.params2 = params2 == null ? null : params2.trim();
      }
  
      public String getIp() {
          return ip;
      }
  
      public void setIp(String ip) {
          this.ip = ip == null ? null : ip.trim();
      }
  
      public Date getCreateTime() {
          return createTime;
      }
  
      public void setCreateTime(Date createTime) {
          this.createTime = createTime;
      }
  }