chengkun
2025-05-26 4462855c0033970c39ac8d0da704b7dc41eabbfe
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
39
40
41
42
43
44
45
46
47
48
49
50
<?php
 
class seo_model extends model{
    
    /**
     * 获取seo列表
     * $whereData     查询条件
     * $data        自定义
     */
    public function getSeoList($whereData=array(),$data=array()){
        $field    =   $data['field'] ? $data['field'] : '*';
        $list      =      $this -> select_all('seo',$whereData,$field);
        return    $list;
    }
    /**
     * 获取seo详细信息
     * $whereData     查询条件
     * $data        自定义查询字段 field:查询字段,默认为*
     */
    public function getSeoInfo($whereData=array(),$data=array('field'=>'*')){
        $info  =  $this -> select_once('seo',$whereData,$data['field']);
        return    $info;
    }
    /**
     * 添加seo
     * $data        自定义
     */
    public function addSeo($addData=array(),$data=array()){
        $return  =  $this -> insert_into('seo',$addData);
        return    $return;
    }
    /**
     * 更新seo
     * $whereData     查询条件
     * $data        自定义
     */
    public function upSeo($whereData=array(),$addData=array()){
        $return  =  $this -> update_once('seo',$addData,$whereData);
        return    $return;
    }
    /**
     * 删除seo
     * 删除条件
     */
    public function delSeo($whereData=array(),$data=array()){
        $result    =  $this -> delete_all('seo',$whereData,'');        
        return    $result;
    }
}
?>