package org.dromara.elevator.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.elevator.domain.EElevatorAccessory;
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_elevator_accessory
 *
 * @author zy
 * @date 2024-08-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EElevatorAccessory.class, reverseConvertGenerate = false)
public class EElevatorAccessoryBo extends BaseEntity {

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

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

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

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

    /**
     * 配件数量
     */
    @NotNull(message = "配件数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer number;

    /**
     * 配件规格
     */
    @NotBlank(message = "配件规格不能为空", groups = { AddGroup.class, EditGroup.class })
    private String specs;

    /**
     * 部门id
     */
    private String deptId;

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


}
