package org.dromara.elevator.domain.bo;

import org.dromara.elevator.domain.EFunctionInfo;
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_function_info
 *
 * @author zy
 * @date 2024-09-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EFunctionInfo.class, reverseConvertGenerate = false)
public class EFunctionInfoBo extends BaseEntity {

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

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

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

    /**
     * 联系人
     */
    private String contacts;

    /**
     * 联系电话
     */
    private String contactsPhone;

    /**
     * 接受报警短信手机
     */
    private String alarmPhone;

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


}
