package com.kamco.cd.kamcoback.menu.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
import lombok.Getter;
import lombok.NoArgsConstructor;

public class MyMenuDto {

  @Schema(name = "My Menu Basic", description = "사용자별 권한 메뉴 목록")
  @Getter
  @NoArgsConstructor
  public static class Basic {

    private String id;
    private String name;
    private String menuUrl;
    private Long order;
    private List<Basic> children = new ArrayList<>();

    public Basic(String menuUid, String menuNm, String menuUrl, Long menuOrder) {
      this.id = menuUid;
      this.name = menuNm;
      this.menuUrl = menuUrl;
      this.order = menuOrder;
    }
  }
}
