提交 8cc87b33 编写于 作者: Y Your Name

修复新增节点分组失败的问题

上级 d3e54622
...@@ -26,7 +26,7 @@ func (d *NodeGroupDao) Create(db *SQL.DB) (interface{}, error) { ...@@ -26,7 +26,7 @@ func (d *NodeGroupDao) Create(db *SQL.DB) (interface{}, error) {
//AddNodeGroup 新建节点分组 //AddNodeGroup 新建节点分组
func (d *NodeGroupDao) AddNodeGroup(groupName string, clusterID int) (bool, interface{}, error) { func (d *NodeGroupDao) AddNodeGroup(groupName string, clusterID int) (bool, interface{}, error) {
db := d.db db := d.db
sql := "INSERT INTO goku_node_group (`groupName`,`clusterID`) VALUES (?,?);" sql := "INSERT INTO goku_node_group (`groupName`,`clusterID`,`groupType`) VALUES (?,?,0);"
stmt, err := db.Prepare(sql) stmt, err := db.Prepare(sql)
if err != nil { if err != nil {
return false, err.Error(), err return false, err.Error(), err
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册