A clear and concise description of what the question is.
Reproducible Code
Please construct a minimum complete and reproducible example for us to get the same error. And tell us how to reproduce it like how you send a request or send what request.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your question.
Hertz version:
Please provide the version of Hertz you are using.
最新版本
Describe the Question
使用hz代码生成工具生成的model里面有很多和struct无关的内容,请问他们的实际作用是什么?是否能只根据idl来生成model呢?(ps:我记得之前字节内部的hertz就是只生成struct的)
这是我的thrift idl
hz命令
生成model中的内容
虽然他生成的内容已经包含了我需要的struct,并且很好的帮我我减去编写struct的时间,但是我还是比较好奇他生成的其他内容,对于http api来说的作用是什么,以及是否可以去掉? thanks
A clear and concise description of what the question is.
Reproducible Code
Please construct a minimum complete and reproducible example for us to get the same error. And tell us how to reproduce it like how you send a request or send what request.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your question.
Hertz version:
Please provide the version of Hertz you are using.
最新版本
Environment:
The output of
go env
.Additional context
Add any other context about the question here.