开发者社区 问答 正文

mongodb数据库执行bee命令报错

func (this *AuthController) Get() {
  req, err := base64.URLEncoding.DecodeString(this.GetString("req"))
  var reqStr string
  if err != nil {
    reqStr = ""
  } else {
    reqStr = string(req)
  }
  this.Data["json"] = errors.Issue("You need login first",
    errors.E_TYPE_SERVICE + errors.E_MODULE_ANY + errors.E_DETAIL_NEED_LOGIN,
    reqStr)
  this.ServeJson()
}

controllers
controllers/auth.go:37: this.ServeJson undefined (type *AuthController has no field or method ServeJson)

展开
收起
落地花开啦 2016-02-29 11:14:47 2372 分享 版权
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    看提示,ServeJson没有定义,AuthController里有这个方法么?是不是拼错了。

    2019-07-17 18:50:09
    赞同 展开评论