package org.dromara.inspection.domain.bo;

import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.inspection.domain.ArRegion;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.util.Map;

/**
 * 巡检区域业务对象 ar_region
 *
 * @author Lion Li
 * @date 2025-01-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ArRegion.class, reverseConvertGenerate = false)
public class ArRegionBo extends BaseEntity {

    /**
     * 区域ID
     */
    @NotNull(message = "区域ID不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 区域名称
     */
    @NotBlank(message = "区域名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String regionName;

    /**
     * 区域编码
     */
    private String regionCode;

    /**
     * 区域业务数据(预留)
     */
    private Map<String, Object> regionData;

    /**
     * 状态(0正常 1停用)
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

}
