package com.erp.approval.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 审核规则排序请求DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AuditRuleReorderRequest {
    
    @NotEmpty(message = "排序列表不能为空")
    private List<RuleOrderItem> orders;
    
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class RuleOrderItem {
        
        @NotNull(message = "规则ID不能为空")
        private Long id;
        
        @NotNull(message = "优先级不能为空")
        private Integer priority;
    }
}
