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