We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
handlergen.sh
interface
@Tags
@Router
swagger
例如:
type Handler interface { // Create 创建用户 // @Tags User // @Router /user/create [post] Create() core.HandlerFunc }
生成的方法注释如下:
// 创建用户 // @Summary 创建用户 // @Description 创建用户 // @Tags User // @Accept json // @Produce json // @Param Request body createRequest true "请求信息" // @Success 200 {object} createResponse // @Failure 400 {object} code.Failure // @Router /user/create [post] func (h *handler) Create() core.HandlerFunc {}
The text was updated successfully, but these errors were encountered:
#16 optimize handlergen.sh
49ccaf9
No branches or pull requests
优化脚本
handlergen.sh
interface
中方法注释,新增@Tags
、@Router
;swagger
注释信息;例如:
生成的方法注释如下:
The text was updated successfully, but these errors were encountered: