package com.red.circle.other.inner.model.dto.user.reigon;

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


/**
 * <p>
 * 用户区域.
 * </p>
 *
 * @author pengliang on 2023/11/28
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class UserRegionDTO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 用户ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  /**
   * 归属系统.
   */
  private String sysOrigin;

  /**
   * 区域ID.
   */
  private String regionId;

  /**
   * 区域编号.
   */
  private String regionCode;

  /**
   * 元数据.
   */
  private Map<String, String> metadata;

}
