namespace Ds.Module.ResultFilter { public static class DsResultTool { public static Dictionary DescriptionsDictionary = EnumHelper.GetDescriptions(); public static DsJsonResult Success() { return new DsJsonResult(true); } public static DsJsonResult Success(Object data) { return new DsJsonResult(true, data); } public static DsJsonResult Fail() { return new DsJsonResult(false); } public static DsJsonResult Fail(DsResultCode resultCode) { return new DsJsonResult(false, resultCode); } public static DsJsonResult Fail(DsResultCode resultCode, string msg) { return new DsJsonResult(false, resultCode, msg); } public static DsJsonResult Fail(string msg) { return new DsJsonResult(false, msg); } public static DsJsonResult Fail(bool b, DsResultCode resultCode, string message) { return new DsJsonResult(b, resultCode, message); } } }