package org.dromara.elevator.domain.bo;

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

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

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

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

    /**
     * 联系人
     */
    @NotBlank(message = "联系人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contacts;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 组织机构代码
     */
    private String institutionCode;

    /**
     * 电梯安全管理员
     */
    private String safetyManager;

    /**
     * 管理员手机
     */
    private String managerPhone;

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


}
