hikvision-video-api/src/main/java/com/hikvision/video/model/RegionInfo.java

36 lines
1.0 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.hikvision.video.model;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
/**
* 区域信息
* <p>
* 同时兼容 v1 字段名regionIndexCode / regionName
* v2 字段名indexCode / name通过 {@code @JsonAlias} 实现。
* </p>
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class RegionInfo {
/** 区域唯一编码v1: regionIndexCode, v2: indexCode */
@JsonAlias("indexCode")
private String regionIndexCode;
/** 区域名称v1: regionName, v2: name */
@JsonAlias("name")
private String regionName;
/** 父级区域编码 */
private String parentIndexCode;
/** 区域层级从0开始 */
private Integer regionLevel;
/** 区域类型1-平台, 2-分组 */
private String regionType;
/** 排序号 */
private Integer sort;
/** 创建时间 */
private String createTime;
/** 更新时间 */
private String updateTime;
}