package com.writeoff.module.system.dto;

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

public class ReorderMenusRequest {
    @NotNull(message = "菜单排序列表不能为空")
    private List<MenuSortItem> menus;

    public List<MenuSortItem> getMenus() {
        return menus;
    }

    public static class MenuSortItem {
        @NotNull(message = "菜单ID不能为空")
        private Long id;
        @NotNull(message = "排序值不能为空")
        private Integer sortNo;

        public Long getId() {
            return id;
        }

        public Integer getSortNo() {
            return sortNo;
        }
    }
}
