Beispiel #1
0
func (this *Article) Succeed(e enum.Result, result interface{}) {
	this.Data["json"] = map[string]interface{}{
		"errcode": e,
		"msg":     e.String(),
		"result":  result,
	}
}
Beispiel #2
0
func (this *Article) Failed(e enum.Result) {
	this.Data["json"] = map[string]interface{}{
		"errcode": e,
		"msg":     e.String(),
	}
}