package com.red.circle.other.app.dto.clientobject.dynamic;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.ClientObject;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 动态图片
 * </p>
 *
 * @author pengshigang
 * @since 2022-4-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class DynamicPictureCO extends ClientObject {

  /**
   * 文件id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 动态id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long dynamicId;

  /**
   * 资源图片地址.
   */
  private String resourceUrl;

  /**
   * 缩略图-资源图片地址.
   */
  private String miniResourceUrl;

  /**
   * 图片宽.
   */
  private Integer width;

  /**
   * 图片高.
   */
  private Integer height;

  /**
   * 序号.
   */
  private Integer sort;

  /**
   * 违规状态.
   */
  private String violation;

}
