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