package com.kcim.dao.model.dto;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("菜单保存")
public class MenuSaveDTO {

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

    @NotBlank(message = "菜单名称不能为空")
    private String name;

    @NotBlank(message = "菜单路径不能为空")
    private String path;

    private String url;

    private String perms;

    @NotNull(message = "菜单类型不能为空")
    private Integer type;

    private String icon;

    private Integer orderNum;
}
