Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0440f8d

Browse files
committed
docs: add some alias
1 parent a97ec3c commit 0440f8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/render/graphviz_render.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl GraphvizRender {
5656
package: clazz.package.to_string(),
5757
group: 1
5858
})
59-
} else if class_name.ends_with("Controller") {
59+
} else if class_name.ends_with("Controller") || class_name.ends_with("Ctrl") {
6060
let graph = sub_graphs_map.entry("Controller".to_string()).or_insert(vec![]);
6161
graph.push(class_name.to_string());
6262

@@ -65,7 +65,7 @@ impl GraphvizRender {
6565
package: clazz.package.to_string(),
6666
group: 2
6767
})
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") {
6969
let graph = sub_graphs_map.entry("Service".to_string()).or_insert(vec![]);
7070
graph.push(class_name.to_string());
7171

0 commit comments

Comments
 (0)