text: //服务层
  app.service('goodsDescService', function ($http) {
  
      //读取列表数据绑定到表单中
      this.findAll = function () {
          return $http.get('../goodsDesc/findAll.do');
      };
  
      //分页
      this.findPage = function (page, rows) {
          return $http.get('../goodsDesc/findPage.do?page=' + page + '&rows=' + rows);
      };
  
      //查询实体
      this.findOne = function (id) {
          return $http.get('../goodsDesc/findOne.do?id=' + id);
      };
  
      //增加
      this.add = function (entity) {
          return $http.post('../goodsDesc/add.do', entity);
      };
  
      //修改
      this.update = function (entity) {
          return $http.post('../goodsDesc/update.do', entity);
      };
  
  
      //删除
      this.dele = function (ids) {
          return $http.get('../goodsDesc/delete.do?ids=' + ids);
      };
  
      //搜索
      this.search = function (page, rows, searchEntity) {
          return $http.post('../goodsDesc/search.do?page=' + page + "&rows=" + rows, searchEntity);
      }
  });
  