From fe1ceb433257074a7d950a6dae033d4e5ff41074 Mon Sep 17 00:00:00 2001 From: zhangwenjian Date: Sat, 18 Jul 2020 14:22:14 +0800 Subject: [PATCH] fix:Fix the previous page components '/' --- test/api.go.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/api.go.template b/test/api.go.template index d961899..ffc5285 100644 --- a/test/api.go.template +++ b/test/api.go.template @@ -19,7 +19,7 @@ import ( // @Param pageIndex query int false "页码" // @Success 200 {object} app.Response "{"code": 200, "data": [...]}" // @Router /api/v1/configList [get] -// @Security +// @Security Bearer func Get{{.ClassName}}List(c *gin.Context) { var data models.{{.ClassName}} var err error @@ -63,7 +63,7 @@ func Get{{.ClassName}}List(c *gin.Context) { // @Param configId path int true "配置编码" // @Success 200 {object} app.Response "{"code": 200, "data": [...]}" // @Router /api/v1/config/{configId} [get] -// @Security +// @Security Bearer func Get{{.ClassName}}(c *gin.Context) { var data models.{{.ClassName}} data.{{.PkGoField}}, _ = utils.StringToInt(c.Param("{{.PkJsonField}}"))