软路由产品

This commit is contained in:
“wanyongkang”
2022-03-21 17:59:31 +08:00
parent 3c12d66466
commit 506e4db0b0
6 changed files with 179 additions and 0 deletions

View 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);
}
}