public static string GetDown() { string msg; string jsonData = StoreManage.QueryAll(out msg, ref totalPage, ref currentPage); return(jsonData != null?JsonConvert.SerializeObject(new Packet(200, jsonData, $"{totalPage + 1}+{currentPage + 1}")) : JsonConvert.SerializeObject(new Packet(201, msg))); }
public static string GetUp() { if (currentPage == -1 || currentPage == 0) { return(JsonConvert.SerializeObject(new Packet(201, "没有记录"))); } currentPage -= 2; string msg; string jsonData = StoreManage.QueryAll(out msg, ref totalPage, ref currentPage); return(jsonData != null?JsonConvert.SerializeObject(new Packet(200, jsonData, $"{totalPage + 1}+{currentPage + 1}")) : JsonConvert.SerializeObject(new Packet(201, msg))); }