package com.red.circle.other.app.dto.clientobject.user.relation;

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;
import lombok.experimental.Accessors;

/**
 * 关系计数.
 *
 * @author pengliang on 2021/5/20
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class RelationshipCounterCO extends ClientObject {

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

  /**
   * 数量.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long quantity;

  /**
   * 格式化数量.
   */
  private String formatQuantity;
}
