pikapika/go/mobile/mobile.go

23 lines
427 B
Go
Raw Permalink Normal View History

2021-09-29 23:57:09 +00:00
package mobile
import (
2021-10-22 02:24:39 +00:00
"pikapi/main/config"
"pikapi/main/controller"
2021-09-29 23:57:09 +00:00
)
func InitApplication(application string) {
config.InitApplication(application)
}
func FlatInvoke(method string, params string) (string, error) {
return controller.FlatInvoke(method, params)
}
func EventNotify(notify EventNotifyHandler) {
controller.EventNotify = notify.OnNotify
}
type EventNotifyHandler interface {
OnNotify(message string)
}