Lkyzlwj
Lkyzlwj
2016-01-21 11:56

mongodb数据库~执行bee命令~报错

  • mongodb
  • beego
 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)

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

3条回答