package menu

import "hyapp-admin-server/internal/repository"

type menuRequest struct {
	ParentID       *uint  `json:"parentId"`
	Label          string `json:"label" binding:"required"`
	Code           string `json:"code" binding:"required"`
	Path           string `json:"path"`
	Icon           string `json:"icon"`
	PermissionCode string `json:"permissionCode"`
	Sort           int    `json:"sort"`
	Visible        bool   `json:"visible"`
}

type visibleRequest struct {
	Visible bool `json:"visible"`
}

type menuSortRequest struct {
	Items []repository.MenuSortItem `json:"items" binding:"required"`
}
