package cn.iocoder.yudao.module.server.controller.admin.policycommunications.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "管理后台 - 政策沟通交流批量排序 Request VO")
@Data
public class PolicyCommunicationsBatchSortReqVO {

    @Data
    public static class SortItem {
        @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
        @NotNull(message = "ID不能为空")
        private Long id;

        @Schema(description = "排序序号", requiredMode = Schema.RequiredMode.REQUIRED)
        @NotNull(message = "排序序号不能为空")
        private Integer sortOrder;
    }

    @Schema(description = "排序项列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序项列表不能为空")
    private List<SortItem> items;
}