-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
need support for generic type in router function #2457
Labels
bug
It is confirmed a bug, but don't worry, we'll handle it.
done
This issue is done, which may be release in next version.
enhancement
help wanted
Comments
@agzou 我看了一下,可以调整下路由注册时的名称校验,欢迎提供PR改进。 |
@agzou 另外,我想了解一下,你为什么不在 按照我的理解,在业务层应该用不上泛型,并且应该尽量避免使用泛型,使得API的输入/输出是确定地,不可变的。 |
@gqcn |
bobzh39
pushed a commit
to bobzh39/gf
that referenced
this issue
Apr 28, 2023
veryyoung
added a commit
to veryyoung/gf
that referenced
this issue
Jun 15, 2023
gqcn
added a commit
that referenced
this issue
Aug 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
It is confirmed a bug, but don't worry, we'll handle it.
done
This issue is done, which may be release in next version.
enhancement
help wanted
1. What version of
Go
and system type/arch are you using?go 1.19
2. What version of
GoFrame
are you using?v2.3.2
3. Can this issue be re-produced with the latest release?
4. What did you do?
报错日志:
[FATA] invalid struct naming for response: defined as "*v1.BaseRes[*xxx/api/v1.ListMessageRes]", but it should be named with "Res" suffix like "XxxRes"
是不是要考虑泛型情况下,返回值名称校验?
The text was updated successfully, but these errors were encountered: