package com.multictrl.modules.business.dto;

import com.multictrl.common.validator.group.AddGroup;
import com.multictrl.common.validator.group.UpdateGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 航点动作信息
 *
 * @author Sdy
 * @since 1.0.0 2026-04-20
 */
@Data
@Schema(name = "航点动作信息")
public class WaypointActionDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "{route.waypoint.action.type.require}", groups = {AddGroup.class, UpdateGroup.class})
    @Schema(description = "航点动作类型")
    private String actionType;

    @Schema(description = "动作值")
    private String actionValue;

    @Schema(description = "航点顺序", hidden = true)
//    @JsonIgnore
    private String waypointOrder;
}
