code: function queryRepository(options) {
                      var repository = options.repository;
                      var repositoryParams = options.repositoryParams || {};
                      var valueProp = options.valueProp;
                      var value = options.value;
                      var asKey = options.as;
  
                      if (!repository) {
                          return;
                      }
  
                      if (valueProp) {
                          repositoryParams[valueProp] = value;
                      }
                      repository.post(repositoryParams).then(function(resp) {
                          var data = resp.data;
                          data = angular.isArray(data)?data[0]:data;
                          setupResult(data,asKey);
                      });
                  }
docs: 从服务中查询