You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
429 B

package http
import (
"go-common/app/interface/main/web/model"
"go-common/library/ecode"
bm "go-common/library/net/http/blademaster"
)
func nav(c *bm.Context) {
var (
rawMid interface{}
ok bool
)
if rawMid, ok = c.Get("mid"); !ok {
// NOTE NoLogin here only for web
c.JSON(model.FailedNavResp{}, ecode.NoLogin)
return
}
mid := rawMid.(int64)
c.JSON(webSvc.Nav(c, mid, c.Request.Header.Get("Cookie")))
}