package org.dromara.elevator.domain.bo;

import org.dromara.elevator.domain.EBuildingInfo;
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_building_info
 *
 * @author zy
 * @date 2024-07-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EBuildingInfo.class, reverseConvertGenerate = false)
public class EBuildingInfoBo extends BaseEntity {

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

    /**
     * 项目id
     */
    private String projectId;

    /**
     * 部门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;

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


}
