File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
main/java/org/apache/shenyu/admin/model/query
test/java/org/apache/shenyu/admin/controller Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff 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 *
Original file line number Diff line number Diff 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 ())
You can’t perform that action at this time.
0 commit comments