You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: group.go
    path of file: ./repos/bzppx-codepub/app/controllers
    
    the code of the file until where you have to start completion: package controllers

import (
	"strings"
	"bzppx-codepub/app/models"
	"time"
	"bzppx-codepub/app/utils"
)

type GroupController struct {
	BaseController
}

// 添加项目组
func (this *GroupController) Add() {
	this.viewLayoutTitle("添加项目组", "group/form", "page")
}

// 保存项目组
func (this *GroupController) Save() {

	name := strings.Trim(this.GetString("name", ""), "")
	comment := strings.Trim(this.GetString("co
    
func (this *GroupController) Save() {

	name := strings.Trim(this.GetString("name", ""), "")
	comment := strings.Trim(this.GetString("comment", ""), "")

	if name == "" {
		this.jsonError("项目组名称不能为空！")
	}

	group, err := models.GroupModel.HasGroupName(name)
	if err != nil {
		this.ErrorLog("查找项目组 "+name+" 失败："+err.Error())
		this.jsonError("添加项目组失败！")
	}
	if group {
		this.jsonError("项目组名称已存在！")
	}

	groupValue := map[string]interface{}{
		"name": name,
		"comment": comment,
		"create_time": time.Now().Unix(),
		"update_time": time.Now().Unix(),
	}

	groupId, err := models.GroupModel.Insert(groupValue)
	if err != nil {
		this.ErrorLog("添加项目组失败: "+err.Error())
		this.jsonError("添加项目组失败！")
	}else {
		this.InfoLog("添加项目组 "+utils.NewConvert().IntToString(groupId, 10)+" 成功")
		this.jsonSuccess("添加项目组成功", nil, "/group/list")
	}
}