优化模块功能

This commit is contained in:
boyce
2019-02-12 12:03:20 +08:00
parent 9b7fcf0e27
commit ba4b084085
4 changed files with 48 additions and 43 deletions

View File

@@ -51,10 +51,10 @@ func (slf *HttpServerService) initRouterHandler() http.Handler {
return cors.Handler(r)
}
func (slf *HttpServerService) OnRun() error {
func (slf *HttpServerService) OnRun() bool {
slf.httpserver.Start()
return nil
return false
}
func NewHttpServerService(port uint16) *HttpServerService {