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