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)

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

你的ServeJson函数怎么定义实现的

ServeJSON()