Browse Source

修复Bug:api执行 OpenForward时ID自增的错误

TavenLi 3 years ago
parent
commit
397c735eff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      forward-core/Models/PortForward.go

+ 1 - 1
forward-core/Models/PortForward.go

@@ -7,7 +7,7 @@ import (
 )
 
 type PortForward struct {
-	Id   int    `orm:"column(id);pk"`
+	Id   int    `orm:"column(id);pk;auto"`
 	Name string `orm:"column(name);size(256);null"`
 	// 0:禁用,1:启用
 	Status int    `orm:"column(status);null"`

粤ICP备19079148号