Skip to content

Commit 8ba1920

Browse files
committed
feat: remove the requirement for struct name to end with "Req" or "Res"
1 parent fcf2cc8 commit 8ba1920

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/kotlin/com/github/oldmegit/goframehelper/completion/go/CompletionApiTag.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ class CompletionApiTag: CompletionBase() {
4343
return null
4444
}
4545

46+
// Check struct name is end with "Req" or "Res"
47+
// GoFrame have removed the requirement for struct name to end with "Req" or "Res"
48+
// https://github.com/gogf/gf/commit/3d4904eb3dc558aebca89146f846d9852f3e0694
4649
private fun isValidStruct(): Boolean {
50+
return true
4751
val structType = getStructType()
4852
if (structType == null) {
4953
return false

0 commit comments

Comments
 (0)