package com.upchina.rbac.vo; import com.upchina.rbac.entity.Role; import io.swagger.annotations.ApiModelProperty; import java.time.LocalDateTime; import java.util.List; public class RoleVO { @ApiModelProperty("ID") private Integer id; @ApiModelProperty("名称") private String name; @ApiModelProperty("描述") private String remark; @ApiModelProperty("创建时间") private LocalDateTime createTime; @ApiModelProperty("菜单列表") private List menuList; @ApiModelProperty("权限列表") private List permissionList; public RoleVO(Role role) { this.id = role.getId(); this.name = role.getName(); this.remark = role.getRemark(); this.createTime = role.getCreateTime(); } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } public LocalDateTime getCreateTime() { return createTime; } public void setCreateTime(LocalDateTime createTime) { this.createTime = createTime; } public List getMenuList() { return menuList; } public void setMenuList(List menuList) { this.menuList = menuList; } public List getPermissionList() { return permissionList; } public void setPermissionList(List permissionList) { this.permissionList = permissionList; } }