-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Automatically generate documents #4055
Comments
@HHC26 Hello, can you give some examples? For my understanding? |
// CreateApi // SyncApi func RouterApp() *gin.Engine { This is a very common expression! |
Gin automatically implements binding routing, parameter verification, and generating swaggers, which can reduce a lot of workload when developing the web type UserSearchReq struct { type UserAddReq struct { func GetUserList(c *gin.Context, req *UserSearchReq) (res *UserSearchRes, err error) { func UserAddReq(c *gin.Context, req *UserAddReq) (res *UserAddRes, err error) { |
Handwriting documents can be troublesome, but existing tools require handwriting for each API, which is repetitive work
// Query
// @tags User
// @summary User
// @Security ApiKeyAuth
// @param data query dto.SysUserQuery true
// @success 200 {object} response.JsonResult{data=response.PageResult{list=[]dto.SysUserVo}}
// @router /system/user/query [get]
What are some good solutions that can be automatically generated?
The text was updated successfully, but these errors were encountered: