wangmengling / ComRouter

ComRouter is a componentized intermediate router

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ComRouter

platform: Ios Swift4.2

ComRouter is a componentized intermediate router, ComRouter is a component of the middle of the router, call the external interface between the various components

usage

function params() Maximum support for 5 parameters

URL call

ComRouter.shareInstance.call(name: "ComRouteCompenontTest.ComRouteInterface.comRouteForParams").params("one", "two", paramNames: ["test","string"]) { (result,error) in
    print(error as Any)
}

Direct call

ComRouter.shareInstance.call("ComRouteCompenontTest", "ComRouteInterface", "comRouteForParams").params("one", "two", paramNames: ["test","string"]) { (result,error) in
        print(error as Any)
}

Chain call

ComRouter.shareInstance.moduleName("ComRouteCompenontTest").className("ComRouteInterface").funcName("comRouteForParams").params("one", "two") { (result,error) in
        print(error as Any)
}

About

ComRouter is a componentized intermediate router

License:MIT License


Languages

Language:Swift 94.2%Language:Ruby 3.4%Language:Objective-C 2.4%