Lkyzlwj
2016-01-21 11:56mongodb数据库~执行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)
- 点赞
- 回答
- 收藏
- 复制链接分享
3条回答
为你推荐
- 使用mongodb的Golang数据库连接池
- mongodb
- 1个回答
- 需要帮助使用golang在我的mongodb数据库中存储类型接口的映射
- dictionary
- mongodb
- struct
- 1个回答
- Go中的MongoDB shardCollection命令
- mongodb
- 1个回答
- 转到:创建io.Writer接口以登录到mongodb数据库
- mongodb
- logging
- 1个回答
- 在MongoDB中使用整数作为ID的缺点
- types
- mongodb
- uniqueidentifier
- php
- mysql
- 1个回答
换一换