feat: 完善后端脚手架基础能力

This commit is contained in:
2026-08-09 01:06:21 +08:00
parent e311f416f2
commit f95311a107
61 changed files with 5630 additions and 521 deletions
+6 -1
View File
@@ -20,7 +20,12 @@ func NewExampleController() *ExampleController {
}
}
// Hello 示例接口
// Hello godoc
// @Summary 返回示例消息
// @Tags example
// @Produce json
// @Success 200 {object} utils.APIResponse{data=HelloResponse}
// @Router /example/hello [get]
func (c *ExampleController) Hello(ctx *gin.Context) {
ctx.JSON(http.StatusOK, utils.Success(c.service.Hello()))
}