go_dreamfactory/cmd/robot/notify.go
2022-06-27 20:27:49 +08:00

22 lines
355 B
Go

package robot
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
)
var notify_builders = []*builder{
{
//create
mainType: comm.MainType_Notify,
subType: comm.SubType_ErrorNotify,
rsp: &pb.ErrorNotify{},
enabled: true,
},
}
//声明加入到构建器并发起请求
func (r *Robot) RunNotify() {
r.addBuilders(notify_builders)
}