We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddd802f commit 1e271b1Copy full SHA for 1e271b1
server/api/v1/sys_initdb.go
@@ -2,7 +2,7 @@ package v1
2
3
import (
4
"gin-vue-admin/global"
5
- "gin-vue-admin/model"
+ "gin-vue-admin/model/request"
6
"gin-vue-admin/model/response"
7
"gin-vue-admin/service"
8
@@ -23,7 +23,7 @@ func InitDB(c *gin.Context) {
23
response.FailWithMessage("非法访问", c)
24
return
25
}
26
- var dbInfo model.InitDB
+ var dbInfo request.InitDB
27
if err := c.ShouldBindJSON(&dbInfo); err != nil {
28
global.GVA_LOG.Error("参数校验不通过", zap.Any("err", err))
29
response.FailWithMessage("参数校验不通过", c)
0 commit comments