fix:Fix the previous page components '/'

This commit is contained in:
zhangwenjian committed 2020-07-18 14:22:14 +08:00
1 parent a49cb327fd
commit fe1ceb4332
1 file changed
+2 -2
+2 -2
View File
@@ -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}}"))