refactor: 项目结构优化
This commit is contained in:
25
src/main/java/com/youlai/system/pojo/vo/ResourceVO.java
Normal file
25
src/main/java/com/youlai/system/pojo/vo/ResourceVO.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package com.youlai.system.pojo.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description ="资源(菜单+权限)视图对象")
|
||||
@Data
|
||||
public class ResourceVO {
|
||||
|
||||
@Schema(description="选项的值")
|
||||
private Long value;
|
||||
|
||||
@Schema(description="选项的标签")
|
||||
private String label;
|
||||
|
||||
@Schema(description="子菜单")
|
||||
@JsonInclude(value = JsonInclude.Include.NON_EMPTY)
|
||||
private List<ResourceVO> children;
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user