bug
colly_wyx
2018-05-09 f70b63d5f3644f4983c71ef59b7a48c115b72f1d
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
 
/**
 * 模块服务类
 */
class Service_Module{
 
    public function __construct(){
        $this->module_model = new ModuleModel();
    }
 
    public function getModuleListByRoleId($role_id){
        
    }
 
    /**
     * 获取所有栏目
     * @param  array   $query  [description]
     * @param  array   $fields [description]
     * @param  array   $sort   [description]
     * @param  integer $limit  [description]
     * @param  integer $skip   [description]
     * @return [type]          [description]
     */
    public function getModuleList($query=array(),$fields=array(),$sort=array(),$limit=0,$skip=0){
        return $this->module_model->getList($query, $fields, $sort, $limit, $skip);
    }
 
    /**
     * 获取栏目数量
     * @return [type] [description]
     */
    public function getModuleTotal($query=array(),$limit=0,$skip=0){
        return $this->module_model->count($query, $limit, $skip);
    }
 
    /**
     * 获取某个栏目的信息
     * @param  array  $query [description]
     * @param  array  $field [description]
     * @return [type]        [description]
     */
    public function getModuleInfo($query = array(), $field = array()){
        return $this->module_model->get($query, $field);
    }
 
    /**
     * 添加栏目
     * @param [type] $data [description]
     */
    public function add($data){
        return $this->module_model->add($data);
    }
 
    /**
     * 修改栏目
     * @param  [type] $data  [description]
     * @param  [type] $query [description]
     * @return [type]        [description]
     */
    public function update($data, $query){
        return $this->module_model->update($data, $query);
    }
 
 
}