public BasicResponse <List <StationUpdateItem> > GetAllStationItems(GetAllStationItemsRequest getAllStationItemsRequest)
        {
            var result      = StationUpdateCache.GetAllStationItems();
            var stationItem = new BasicResponse <List <StationUpdateItem> >();

            stationItem.Data = result;
            return(stationItem);
        }
        public BasicResponse <StationUpdateItem> GetStationItem(GetStationItemRequest getStationItemRequest)
        {
            var result      = StationUpdateCache.GetStationItem(getStationItemRequest.fzh);
            var stationItem = new BasicResponse <StationUpdateItem>();

            stationItem.Data = result;
            return(stationItem);
        }
        public BasicResponse UpdateStationItemForUser(UpdateOrderForUserRequest updateOrderRequest)
        {
            BasicResponse response = new BasicResponse();
            string        errorMsg = "";

            StationUpdateCache.UpdateStationItemForUser(updateOrderRequest.order, updateOrderRequest.fzh, ref errorMsg);
            response.Message = errorMsg;
            return(response);
        }
        public BasicResponse LoadUpdateBuffer(LoadUpdateBufferRequest loadUpdateBufferRequest)
        {
            BasicResponse Result = new BasicResponse();

            try
            {
                StationUpdateCache.LoadUpdateBuffer(loadUpdateBufferRequest.updateBufferItems
                                                    , loadUpdateBufferRequest.updatetTypeid
                                                    , loadUpdateBufferRequest.updateHardVersion
                                                    , loadUpdateBufferRequest.updateFileVersion
                                                    , loadUpdateBufferRequest.updateMaxVersion
                                                    , loadUpdateBufferRequest.updateMinVersion
                                                    , loadUpdateBufferRequest.updateCount
                                                    , loadUpdateBufferRequest.crcValue);
            }
            catch (Exception ex)
            {
                Result.Code    = 1;
                Result.Message = ex.Message;
            }
            return(Result);
        }