From 40417edce32320cc8f6f558adf9b8ee8b4ff23c2 Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Thu, 26 Apr 2018 16:44:14 +0800
Subject: [PATCH] 调整上传接口

---
 Yfs/Model/Base.php |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/Yfs/Model/Base.php b/Yfs/Model/Base.php
index 58de6e3..5758efe 100644
--- a/Yfs/Model/Base.php
+++ b/Yfs/Model/Base.php
@@ -46,8 +46,18 @@
         return $this->db->insert($this->table, $data);
     }
 
-    public function update($data, $query){
+    /**
+     * [add description]
+     */
+    public function save($data){
+        return $this->db->insert($this->table, $data);
+    }
+
+    public function update($data, $query = null){
         return $this->db->update($this->table, $data, $query);
     }
 
+    public function aggregate($params){
+        return $this->db->aggregate($this->table, $params);
+    }
 }

--
Gitblit v1.8.0