package com.maintain.business.domain.bo;

import com.maintain.common.core.validate.AddGroup;
import com.maintain.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.maintain.common.core.domain.BaseEntity;

/**
 * 报修单-交车信息业务对象 erp_repair_form_delivery
 *
 * @author liushuai
 * @date 2025-04-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpRepairFormDeliveryBo extends BaseEntity {

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

    /**
     * 报修单ID
     */
    @NotNull(message = "报修单ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long repairFormId;

    /**
     * 交车人员ID
     */
    @NotNull(message = "交车人员ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deliveryUserId;

    /**
     * 交车人姓名
     */
    private String deliveryUserName;

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

    /**
     * 交车备注
     */
    private String deliveryRemark;

    /**
     * 交车照片
     */
    @NotBlank(message = "交车照片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deliveryUrl;

    /**
     * 接车人姓名
     */
    @NotBlank(message = "接车人姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carPickupUserName;

    /**
     * 接车人电话
     */
    @NotBlank(message = "接车人电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carPickupUserPhone;

    /**
     * 接车人照片
     */
    @NotBlank(message = "接车人照片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carPickupUrl;


}
