36 lines
1.0 KiB
Java
36 lines
1.0 KiB
Java
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;
|
||
}
|