package com.red.circle.other.inner.model.dto.sys;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统操作日志表.
 * </p>
 *
 * @author pengliang on 2021-03-30
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class ApiOperationLogDTO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 记录id.
   */
  private String id;

  /**
   * 请求用户用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long requestUserId;

  /**
   * 接口描述.
   */
  private String apiDesc;

  /**
   * 业务编号.
   */
  private String businessCode;

  /**
   * 业务内容.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private String businessContent;

  /**
   * 命令信息.
   */
  private String cmd;

  /**
   * 过期时间.
   */
  private Date expiredTime;

  /**
   * 创建时间.
   */
  private Date createTime;
}
