package com.xinelu.applet.dto.nursepersonapplogin;

import com.xinelu.common.custominterface.Insert;
import com.xinelu.common.custominterface.Update;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description 护理员任务退回传入DTO
 * @Author 张恒
 * @Date 2023-03-30
 */
@Data
public class OrderFallbackDTO implements Serializable {
    private static final long serialVersionUID = -7304878110328260180L;

    /**
     * 预约订单id
     */
    @NotNull(message = "订单信息为空", groups = {Insert.class, Update.class})
    private Long appointmentOrderId;

    /**
     * 护理员id
     */
    @NotNull(message = "用户信息为空", groups = {Insert.class, Update.class})
    private Long stationPersonId;

    /**
     * 订单编号
     */
    @NotBlank(message = "订单编号为空", groups = {Insert.class, Update.class})
    private String appointmentOrderNo;

    /**
     * 退回原因
     */
    @NotBlank(message = "退回原因为空", groups = {Insert.class})
    private String taskReturnReason;
}
