84 lines
1.7 KiB
Java
Raw Normal View History

2025-01-27 21:47:33 +08:00
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<MenuVO> menuList;
@ApiModelProperty("权限列表")
private List<PermissionVO> 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<MenuVO> getMenuList() {
return menuList;
}
public void setMenuList(List<MenuVO> menuList) {
this.menuList = menuList;
}
public List<PermissionVO> getPermissionList() {
return permissionList;
}
public void setPermissionList(List<PermissionVO> permissionList) {
this.permissionList = permissionList;
}
}