public HttpResponseMessage queryUser() { Result <USER> ru = new Result <USER>(); List <USER> luser = new List <USER>(); try { luser = DB_User.getUser(); if (luser.Count > 0) { ru.code = "2020"; ru.success = "true"; ru.message = "获取成功!"; } else { ru.code = "2021"; ru.success = "false"; ru.message = "无数据"; } } catch (Exception e) { ru.code = "2022"; ru.success = "false"; ru.message = e.Message; } ru.systemTime = Conn.GetTimeStamp(); ru.data = luser; return(Conn.toJson(ru)); }