go-zero
go-zero copied to clipboard
redis HmsetCtx and Hmset params type :fieldsAndValues map[string]string why not fieldsAndValues map[string]any
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior, if applicable:
- The code is
-
The error is
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Environments (please complete the following information):
- OS: [e.g. Linux]
- go-zero version 1.6.1
- goctl version [e.g. 1.2.1, optional]
More description Add any other context about the problem here.
Let me open a PR for this issue!
Personal opinion: If "any" is used here, passing in a value that is a map[string]string or another type could cause an error. Therefore, I believe that specifying the parameter as map[string]string could reduce the likelihood of such errors occurring. I think there should be no need to make changes here.