fix:fix parameter setting
This commit is contained in:
1 parent
ca62b4ef1d
commit
791d07d09b
1 file changed
+4
-2
+4
-2
@@ -55,6 +55,8 @@ func Preview(c *gin.Context) {
|
||||
func GenCode(c *gin.Context) {
|
||||
table := tools.SysTables{}
|
||||
id, err := tools2.StringToInt(c.Param("tableId"))
|
||||
tools2.HasError(err, "", -1)
|
||||
table.TableId = id
|
||||
ischeckrole := true
|
||||
|
||||
rouyerfile := "template/routercheckrole.go.template"
|
||||
@@ -77,8 +79,8 @@ func GenCode(c *gin.Context) {
|
||||
rouyerfile = "template/routernocheckrole.go.template"
|
||||
}
|
||||
|
||||
tools2.HasError(err, "", -1)
|
||||
table.TableId = id
|
||||
|
||||
|
||||
|
||||
t1, err := template.ParseFiles("template/model.go.template")
|
||||
tools2.HasError(err, "", -1)
|
||||
|
||||
Reference in new issue
Block a user