package org.dromara.elevator.domain.bo;

import org.dromara.elevator.domain.EMaintenanceRecord;
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_maintenance_record
 *
 * @author Lion Li
 * @date 2024-07-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EMaintenanceRecord.class, reverseConvertGenerate = false)
public class EMaintenanceRecordBo 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 maintainer;

    /**
     * 维保类型
     */
    @NotBlank(message = "维保类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String maintenanceType;

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

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


}
