mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 15:01:23 +08:00
Added role management
This commit is contained in:
@@ -8,7 +8,14 @@ import com.baomidou.mybatisplus.annotation.Version;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import com.cfive.pinnacle.entity.permission.Element;
|
||||
import com.cfive.pinnacle.entity.permission.Menu;
|
||||
import com.cfive.pinnacle.entity.permission.Operation;
|
||||
import com.cfive.pinnacle.entity.permission.Power;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
@@ -29,6 +36,7 @@ public class Role implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@TableId("id")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
@@ -37,6 +45,18 @@ public class Role implements Serializable {
|
||||
@TableField("name")
|
||||
private String name;
|
||||
|
||||
@TableField(exist = false)
|
||||
private List<Menu> menus;
|
||||
|
||||
@TableField(exist = false)
|
||||
private List<Element> elements;
|
||||
|
||||
@TableField(exist = false)
|
||||
private List<Operation> operations;
|
||||
|
||||
@TableField(exist = false)
|
||||
private List<Power> powers;
|
||||
|
||||
@TableField("deleted")
|
||||
@TableLogic
|
||||
private Integer deleted;
|
||||
|
||||
Reference in New Issue
Block a user