未验证 提交 4d89ebd7 编写于 作者: E Eolink 提交者: GitHub

Merge pull request #59 from Dot-Liu/master

修复新增节点分组失败的问题
......@@ -26,7 +26,7 @@ func (d *NodeGroupDao) Create(db *SQL.DB) (interface{}, error) {
//AddNodeGroup 新建节点分组
func (d *NodeGroupDao) AddNodeGroup(groupName string, clusterID int) (bool, interface{}, error) {
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)
if err != nil {
return false, err.Error(), err
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册