Commit 487fa672 authored by clone's avatar clone

update

parent 6c5c4e1e
......@@ -11,6 +11,7 @@ namespace app\api\controller;
*/
use app\api\extend\Basic;
use app\model\AttentionModel;
use app\model\GLabels;
use app\model\HouseImgs;
use app\model\HouseInfos;
use app\model\Labels;
......@@ -27,7 +28,7 @@ class Shop extends Basic
parent::__construct($request);
$this->db = new HouseInfos();
$this->dbImg = new HouseImgs();
$this->labels = new Labels();
$this->labels = new GLabels();
$this->attentionModel = new AttentionModel();
}
......
......@@ -6,4 +6,23 @@ namespace app\model;
class GLabels extends BaseModel
{
// 设置当前模型对应的完整数据表名称
protected $table = 'g_labels';
protected $db;
/**
* GLabels constructor.
*/
function __construct()
{
$this->db = Db($this->table);
}
public function getLabels()
{
return $data = $this->db
->field("id,name")
->select();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment