refactor:重构菜单接口

This commit is contained in:
haoxr 2020-11-06 18:04:35 +08:00
parent 42d7bdc7bd
commit f454a13030
3 changed files with 11 additions and 8 deletions

View File

@ -1,19 +1,25 @@
package com.youlai.admin.vo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.youlai.common.core.base.BaseEntity;
import lombok.Data;
import java.util.List;
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class MenuVO extends BaseEntity {
private Integer id;
private String name;
private String title;
private Integer parentId;
private String name;
private String path;
private String icon;
private Integer sort;
@ -24,10 +30,6 @@ public class MenuVO extends BaseEntity {
private String component;
private String path;
private String perms;
private List<MenuVO> children;
}

View File

@ -25,6 +25,8 @@ public class RouterVO {
private String name;
private Boolean hidden;
private Meta meta;
@Data

View File

@ -2,9 +2,8 @@ package com.youlai.common.core.constant;
public interface Constants {
/**
* 正常状态值
*/
Integer STATUS_NORMAL_VALUE = 1;
Integer VISIBLE_SHOW_VALUE = 1;
}