package com.red.circle.other.infra.database.cache.entity.sys;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
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.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author pengliang on 2021/9/15
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties(ignoreUnknown = true)
public class BannerCache implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 来源系统.
   */
  private String sysOrigin;

  /**
   * 封面.
   */
  private String cover;

  /**
   * 小封面图.
   */
  private String smallCover;

  /**
   * alert封面.
   */
  private String alertCover;

  /**
   * 展示位置.
   */
  private String displayPosition;

  /**
   * 类型.
   */
  private String type;

  /**
   * 内容.
   */
  private String content;

  /**
   * 参数.
   */
  private String params;

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

  /**
   * 开始时间.
   */
  private Timestamp startTime;

  /**
   * 区域.
   */
  private String regions;

}
