diff --git a/server/api/v1/sys_initdb.go b/server/api/v1/sys_initdb.go index ea618fdd..35c1260f 100644 --- a/server/api/v1/sys_initdb.go +++ b/server/api/v1/sys_initdb.go @@ -2,7 +2,7 @@ package v1 import ( "gin-vue-admin/global" - "gin-vue-admin/model" + "gin-vue-admin/model/request" "gin-vue-admin/model/response" "gin-vue-admin/service" @@ -23,7 +23,7 @@ func InitDB(c *gin.Context) { response.FailWithMessage("非法访问", c) return } - var dbInfo model.InitDB + var dbInfo request.InitDB if err := c.ShouldBindJSON(&dbInfo); err != nil { global.GVA_LOG.Error("参数校验不通过", zap.Any("err", err)) response.FailWithMessage("参数校验不通过", c)