package org.dromara.elevator.domain.bo;

import org.dromara.elevator.domain.EOtherMaintainRecord;
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.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 维修救援等记录;业务对象 e_other_maintain_record
 *
 * @author zy
 * @date 2024-07-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EOtherMaintainRecord.class, reverseConvertGenerate = false)
public class EOtherMaintainRecordBo 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 creator;

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

    /**
     * 计划时间
     */
    @NotNull(message = "计划时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date planTime;

    /**
     * 记录类型;1：维修记录  2：救援记录  3：评价记录
     */
    @NotNull(message = "记录类型;1：维修记录  2：救援记录  3：评价记录不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;


}
