初始化代码
This commit is contained in:
17
app/card/model/UserFollow.php
Normal file
17
app/card/model/UserFollow.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
namespace app\card\model;
|
||||
|
||||
use app\BaseModel;
|
||||
|
||||
|
||||
|
||||
class UserFollow extends BaseModel
|
||||
{
|
||||
//定义表名
|
||||
protected $name = 'longbing_card_user_follow';
|
||||
public function getCount($where){
|
||||
$data = $this->where($where)->count();
|
||||
return $data;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user