-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModel.php
38 lines (33 loc) · 969 Bytes
/
Model.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
class Model extends Sql {
//直接执行SQL
public function queryAll($sql)
{
return parent::query($sql); // TODO: Change the autogenerated stub
}
//增加数据 可以传进来数组
public function insert($arr)
{
return parent::insert($arr); // TODO: Change the autogenerated stub
}
//删除数据 可以传进来数组
public function delete($arrWhere)
{
return parent::delete($arrWhere); // TODO: Change the autogenerated stub
}
//修改数据 可以传进来数组
public function update($arrValue, $arrWhere)
{
return parent::update($arrValue, $arrWhere); // TODO: Change the autogenerated stub
}
//查询数据
public function getAll()
{
return parent::getAll(); // TODO: Change the autogenerated stub
}
//查询一条数据
public function getOne($where)
{
return parent::getOne($where); // TODO: Change the autogenerated stub
}
}