package com.red.circle.mq.business.model.event.approval;

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

/**
 * 违规鉴定内容.
 *
 * @author pengliang on 2020/1/10 18:20
 */
@Data
@Accessors(chain = true)
public class CensorContent implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 资源id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

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

  public String compression300Content() {
    return this.content.concat("?imageView2/2/w/300");
  }
}
