[feat] 新增 ErrFuncNotImplemented

This commit is contained in:
2024-04-25 21:09:32 +08:00
parent aa401d6048
commit dd4fb6c049
2 changed files with 12 additions and 6 deletions
+5 -5
View File
@@ -57,20 +57,20 @@ type MqttHandle struct {
Controller
}
func (this MqttHandle) OnSubscribed(g GlobalParams, topic string) error {
return nil
func (this *MqttHandle) OnSubscribed(g GlobalParams, topic string) error {
return ErrFuncNotImplemented
}
func (this MqttHandle) OnUnsubscribed(g GlobalParams, topic string) error {
return nil
return ErrFuncNotImplemented
}
func (this MqttHandle) OnMessage(g GlobalParams, topic string, retain bool, qos byte) error {
return nil
return ErrFuncNotImplemented
}
func (this MqttHandle) OnMessageDropped(g GlobalParams, topic string, retain bool, qos byte) error {
return nil
return ErrFuncNotImplemented
}
func NewMqttController(container *do.Injector) Mqtt {