package cn.qinys.platform.upms.api.req;

import cn.qinys.platform.entity.upms.UpmsMenuPermissionBase;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * Description:
 *
 * @author tanlie
 * Date: 2024/2/28 12:02
 */
@Data
public class MenuCreateReq implements Serializable {

    @NotNull(message = "组件不能为空")
    private String component;

    private String hidden;

    private String icon;

    private String keepAlive;

    private Boolean leaf;

    private Integer ord;

    @NotNull(message = "父级id不能为空")
    private Integer parentId;

    @NotNull(message = "路由路径不能为空")
    private String path;

    @NotNull(message = "名称不能为空")
    private String title;

    private List<UpmsMenuPermissionBase> permissions;

}
