Skip to content

Commit 6a0621f

Browse files
committed
feat: Add new role search criteria
1 parent c2d982b commit 6a0621f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

shenyu-admin/src/main/java/org/apache/shenyu/admin/model/query/PluginQuery.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,24 @@ public void setEnabled(final Integer enabled) {
101101
this.enabled = enabled;
102102
}
103103

104+
/**
105+
* Gets the value of role.
106+
*
107+
* @return the value of role
108+
*/
109+
public String getRole() {
110+
return role;
111+
}
112+
113+
/**
114+
* Sets the role.
115+
*
116+
* @param role role
117+
*/
118+
public void setRole(final String role) {
119+
this.role = role;
120+
}
121+
104122
/**
105123
* Gets the value of pageParameter.
106124
*

shenyu-admin/src/test/java/org/apache/shenyu/admin/controller/PluginControllerTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public void testQueryPlugins() throws Exception {
110110
this.mockMvc.perform(MockMvcRequestBuilders.get("/plugin-template")
111111
.param("name", "t_n")
112112
.param("enabled", "1")
113+
.param("role", "super")
113114
.param("currentPage", String.valueOf(pageParameter.getCurrentPage()))
114115
.param("pageSize", String.valueOf(pageParameter.getPageSize())))
115116
.andExpect(status().isOk())

0 commit comments

Comments
 (0)