1、新增服务器资源添加 (新增数据表pp_task_server)
2、新增远程服务器任务执行
3、删除邮件通知功能(pp_task删除两个有关字段)
This commit is contained in:
郝大全
2017-08-17 11:49:53 +08:00
parent 2f15d46d83
commit 3c87908dde
25 changed files with 939 additions and 276 deletions

View File

@@ -13,6 +13,7 @@ import (
"github.com/george518/PPGo_Job/models"
"strconv"
"strings"
"time"
)
type GroupController struct {
@@ -39,6 +40,7 @@ func (this *GroupController) Add() {
group.GroupName = strings.TrimSpace(this.GetString("group_name"))
group.UserId = this.userId
group.Description = strings.TrimSpace(this.GetString("description"))
group.CreateTime = time.Now().Unix()
_, err := models.TaskGroupAdd(group)
if err != nil {