package com.mmc.iuav.user.model.dto.dronepilot;

import com.mmc.iuav.group.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @Author small
 * @Date 2023/8/3 16:25
 * @Version 1.0
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PilotReasonDTO {

    @ApiModelProperty(value = "原因id", example = "1")
    @NotNull(message = "原因id", groups = Update.class)
    private Integer id;

    @ApiModelProperty(value = "原因", example = "1")
    private String reason;
}
