File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ impl GraphvizRender {
56
56
package : clazz. package . to_string ( ) ,
57
57
group : 1
58
58
} )
59
- } else if class_name. ends_with ( "Controller" ) {
59
+ } else if class_name. ends_with ( "Controller" ) || class_name . ends_with ( "Ctrl" ) {
60
60
let graph = sub_graphs_map. entry ( "Controller" . to_string ( ) ) . or_insert ( vec ! [ ] ) ;
61
61
graph. push ( class_name. to_string ( ) ) ;
62
62
@@ -65,7 +65,7 @@ impl GraphvizRender {
65
65
package : clazz. package . to_string ( ) ,
66
66
group : 2
67
67
} )
68
- } else if class_name. ends_with ( "Service" ) || class_name. ends_with ( "ServiceImpl" ) {
68
+ } else if class_name. ends_with ( "Service" ) || class_name. ends_with ( "Services" ) || class_name . ends_with ( " ServiceImpl") {
69
69
let graph = sub_graphs_map. entry ( "Service" . to_string ( ) ) . or_insert ( vec ! [ ] ) ;
70
70
graph. push ( class_name. to_string ( ) ) ;
71
71
You can’t perform that action at this time.
0 commit comments