Example #1
0
        public static string ResponeMsg(int code, string msg, Object result = null)
        {
            baseReturnModel model = new baseReturnModel();

            model.code   = code;
            model.msg    = msg;
            model.result = result;
            return(Json.JsonHelper.ConvertModelToString(model));
        }
Example #2
0
        public static baseReturnModel ResponeMsgModel(int code, string msg = "", Object result = null)
        {
            baseReturnModel model = new baseReturnModel();

            model.code   = code;
            model.msg    = msg;
            model.result = result;
            model.time   = DateTime.Now;
            return(model);
        }
Example #3
0
 public static string ResponeMsg(baseReturnModel model)
 {
     return(Json.JsonHelper.ConvertModelToString(model));
 }