中秋节快乐

This commit is contained in:
Alone
2024-09-14 17:00:49 +08:00
parent 610dee88cd
commit dff1b038b1
4286 changed files with 807503 additions and 6 deletions
+47
View File
@@ -0,0 +1,47 @@
<?php
namespace app\api\controller;
use app\api\QfShop;
use app\model\Source as SourceModel;
use app\model\SourceCategory as SourceCategoryModel;
class Search extends QfShop
{
public function index()
{
$SourceModel = new SourceModel();
$data = $SourceModel->getList(input(''));
return jok('获取成功',$data);
}
public function getDetail()
{
$SourceModel = new SourceModel();
$data = $SourceModel->getDetail(input(''));
return jok('获取成功',$data);
}
public function getNew()
{
$SourceModel = new SourceModel();
$data = input('');
$data['page_size'] = $data['page_size']??20;
$data = $SourceModel->getNew($data);
return jok('获取成功',$data);
}
public function getHot()
{
$SourceModel = new SourceModel();
$data = $SourceModel->getHot(input(''));
return jok('获取成功',$data);
}
public function getCategory()
{
$SourceCategoryModel = new SourceCategoryModel();
$data = $SourceCategoryModel->getList(input(''));
return jok('获取成功',$data);
}
}