forked from rongchao/epmet-cloud-rizhao
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.2 KiB
51 lines
1.2 KiB
/**
|
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
|
*
|
|
* https://www.renren.io
|
|
*
|
|
* 版权所有,侵权必究!
|
|
*/
|
|
|
|
package com.epmet.dto;
|
|
|
|
import com.epmet.commons.tools.validator.group.DefaultGroup;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import lombok.Data;
|
|
|
|
import javax.validation.constraints.Min;
|
|
import javax.validation.constraints.NotBlank;
|
|
import javax.validation.constraints.NotNull;
|
|
import java.io.Serializable;
|
|
import java.util.Date;
|
|
|
|
|
|
/**
|
|
* 行政区域
|
|
*
|
|
* @author Mark sunlightcs@gmail.com
|
|
*/
|
|
@Data
|
|
public class SysRegionDTO implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@NotNull(message="{id.require}", groups = DefaultGroup.class)
|
|
private Long id;
|
|
|
|
@NotNull(message="{region.pid.require}", groups = DefaultGroup.class)
|
|
private Long pid;
|
|
|
|
@NotBlank(message="{region.name.require}", groups = DefaultGroup.class)
|
|
private String name;
|
|
|
|
@Min(value = 0, message = "{sort.number}", groups = DefaultGroup.class)
|
|
private Long sort;
|
|
|
|
private String parentName;
|
|
|
|
private Boolean hasChildren;
|
|
|
|
private Integer treeLevel;
|
|
|
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
|
private Date updateDate;
|
|
}
|
|
|