code: function (name, params, success, error) {
                      params = params || {};
                      //加入固定查询参数
                      angular.extend(params, self.params);
  
                      $http.post(self.backendUrl, {
                          "y9action": {
                              name: name,
                              params: params
                          }
                      }).success(function (data) {
                          //记录原始数据
                          self.originData = data;
                          if (data.code === "100") {
                              //记录cache
                              if (data.cache) {
                                  for (var key in data.cache) {
                                      var oldCache = self.cache[key] || {};
                                      self.cache[key] = angular.extend(oldCache, data.cache[key]);
                                  }
                              }
  
                              //回调成功
                              if (success) {
                                  success(data.data);
                              }
                          } else {
                              if (error) {
                                  error(data);
                              }
                          }
                      }).error(function (data) {
                          self.originData = data;
                          if (error) {
                              error(data);
                          }
                      });
                  }
docs: 调用资源