mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-10 19:23:44 +08:00
优化服务监控定时器,移除notify功能包
This commit is contained in:
@@ -5,9 +5,6 @@
|
||||
package dao
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/errors/gerror"
|
||||
"hotgo/internal/consts"
|
||||
"hotgo/internal/dao/internal"
|
||||
)
|
||||
|
||||
@@ -27,14 +24,4 @@ var (
|
||||
}
|
||||
)
|
||||
|
||||
// GetName 获取分组名称
|
||||
func (dao *sysCronGroupDao) GetName(ctx context.Context, id int64) (name string, err error) {
|
||||
m := dao.Ctx(ctx).Fields("name").Where("id", id)
|
||||
list, err := m.Value()
|
||||
if err != nil {
|
||||
err = gerror.Wrap(err, consts.ErrorORM)
|
||||
return name, err
|
||||
}
|
||||
|
||||
return list.String(), nil
|
||||
}
|
||||
// Fill with you ideas below.
|
||||
|
||||
Reference in New Issue
Block a user