|
...
|
...
|
@@ -55,7 +55,7 @@ class ProductController extends BaseController |
|
|
|
$map[] = ['status', $this->param['status']];
|
|
|
|
}
|
|
|
|
$sort = ['id' => 'desc'];
|
|
|
|
$data = $logic->getList($map, $sort, ['id', 'project_id', 'title', 'thumb', 'product_type' ,'category_id', 'keyword_id', 'status', 'created_uid', 'created_at', 'updated_at']);
|
|
|
|
$data = $logic->getList($map, $sort, ['id', 'project_id', 'title', 'thumb', 'product_type' ,'category_id', 'keyword_id', 'status', 'created_uid', 'created_at', 'updated_at'],$this->row);
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -94,4 +94,16 @@ class ProductController extends BaseController |
|
|
|
$data = $logic->getStatusNumber();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :复制产品
|
|
|
|
* @name :copyProduct
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/7/29 14:59
|
|
|
|
*/
|
|
|
|
public function copyProduct(ProductLogic $logic){
|
|
|
|
$rs = $logic->setCopyProduct();
|
|
|
|
$this->response('success',Code::SUCCESS,$rs);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|