package org.dromara.elevator.domain.bo;

import org.dromara.elevator.domain.EHouseInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 小区基础信息;业务对象 e_house_info
 *
 * @author zy
 * @date 2024-07-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EHouseInfo.class, reverseConvertGenerate = false)
public class EHouseInfoBo extends BaseEntity {

    /**
     * 主键id
     */
    private Long id;

    /**
     * 组织id
     */
    private String organizationId;

    /**
     * 部门id
     */
    @NotNull(message = "项目不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 小区编号
     */
    @NotBlank(message = "小区编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

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

    /**
     * 小区地址
     */
    @NotBlank(message = "小区地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 行政区域
     */
    private String areaCode;

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


}
