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) }