package org.dromara.elevator.domain.bo;

import org.dromara.elevator.domain.ERescueInfo;
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.*;
import java.math.BigDecimal;

/**
 * 救援站信息;业务对象 e_rescue_info
 *
 * @author zy
 * @date 2024-09-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ERescueInfo.class, reverseConvertGenerate = false)
public class ERescueInfoBo 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;

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

    /**
     * 负责人手机
     */
    @NotBlank(message = "负责人手机不能为空", groups = { AddGroup.class, EditGroup.class })
    private String principalPhone;

    /**
     * 应急救援负责人
     */
    @NotBlank(message = "应急救援负责人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String emergency;

    /**
     * 应急救援负责人手机
     */
    @NotBlank(message = "应急救援负责人手机不能为空", groups = { AddGroup.class, EditGroup.class })
    private String emergencyPhone;

    /**
     * 维保单位
     */
    private String maintenance;

    /**
     * 组织
     */
    private String organization;

    /**
     * 经度
     */
    private BigDecimal lng;

    /**
     * 纬度
     */
    private BigDecimal lat;

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

    /**
     * 单位资质
     */
    private String certification;


}
