Skip to content

Commit

Permalink
fix: fix mvc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Aug 1, 2023
1 parent d4764d2 commit 8c9fec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/src/main/kotlin/cc/unitmesh/idea/MvcUtil.kt
Expand Up @@ -2,9 +2,9 @@ package cc.unitmesh.idea

object MvcUtil {
fun isController(fileName: String, lang: String): Boolean {
return fileName.endsWith("Controller.$lang")
return fileName.endsWith("Controller.${lang.lowercase()}")
}

fun isService(fileName: String, lang: String) =
fileName.endsWith("Service.$lang") || fileName.endsWith("ServiceImpl.$lang")
fileName.endsWith("Service.$${lang.lowercase()}") || fileName.endsWith("ServiceImpl.$${lang.lowercase()}")
}

0 comments on commit 8c9fec0

Please sign in to comment.