package cn.novalon.gym.manage.sys.core.command;

/**
 * 更新菜单命令对象
 * 
 * @author 张翔
 * @date 2026-03-13
 */
public record UpdateMenuCommand(
        Long id,
        Long parentId,
        String menuName,
        String menuType,
        Integer orderNum,
        String component,
        String perms,
        Integer status
) {
    public static UpdateMenuCommand of(Long id, Long parentId, String menuName, String menuType, Integer orderNum,
                                      String component, String perms, Integer status) {
        return new UpdateMenuCommand(id, parentId, menuName, menuType, orderNum, component, perms, status);
    }
}
