软路由产品
This commit is contained in:
16
app/ros/controller/Index.php
Normal file
16
app/ros/controller/Index.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace app\ros\controller;
|
||||
|
||||
use app\ros\model\Product as ProductModel;
|
||||
|
||||
class Index
|
||||
{
|
||||
//获取产品列表
|
||||
public function getList() {
|
||||
$product_model = new ProductModel();
|
||||
|
||||
$list = $product_model->getList([],'*','id asc');
|
||||
echo json_encode($list);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user