12345678910111213141516171819202122232425262728293031323334353637 |
- package http
- import (
- "go-common/app/job/main/figure/conf"
- "go-common/app/job/main/figure/service"
- "go-common/library/log"
- bm "go-common/library/net/http/blademaster"
- )
- var (
- svc *service.Service
- )
- func Init(s *service.Service) {
- svc = s
- e := bm.DefaultServer(conf.Conf.BM)
- innerRouter(e)
- if err := e.Start(); err != nil {
- log.Error("%+v", err)
- panic(err)
- }
- }
- func innerRouter(e *bm.Engine) {
- e.Ping(ping)
- }
- func ping(c *bm.Context) {
-
-
-
-
- }
|