package com.ruoyi.base.area.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 行政区域业务对象 sys_cn_area
 *
 * @author ruoyi
 * @date 2023-06-25
 */

@Data
@EqualsAndHashCode
@ApiModel("行政区域业务对象")
public class SysCnAreaBo implements Serializable {

    /**
     *
     */
    @ApiModelProperty(value = "主键ID", required = true)
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", required = true)
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String label;

    /**
     * 行政编码
     */
    @ApiModelProperty(value = "行政编码", required = true)
    @NotBlank(message = "行政编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String value;

    /**
     * 上级行政编码
     */
    @ApiModelProperty(value = "上级行政编码", required = true)
    @NotBlank(message = "上级行政编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String parent;

    /**
     * 经度
     */
    @ApiModelProperty(value = "经度", required = true)
    @NotBlank(message = "经度不能为空", groups = { AddGroup.class, EditGroup.class })
    private String longitude;

    /**
     * 维度
     */
    @ApiModelProperty(value = "维度", required = true)
    @NotBlank(message = "维度不能为空", groups = { AddGroup.class, EditGroup.class })
    private String latitude;

    /**
     * 级别
     */
    @ApiModelProperty(value = "级别", required = true)
    @NotNull(message = "级别不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer level;


    /**
     * 首字母
     */
    @ApiModelProperty("首字母")
    private String initial;

    /**
     * 拼音
     */
    @ApiModelProperty("拼音")
    private String pinyin;



}
