EnterpriseProductLogic.php
1.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* @remark :
* @name :EnterpriseProductLogic.php
* @author :lyh
* @method :post
* @time :2025/3/26 10:10
*/
namespace App\Http\Logic\Aside\Project;
use App\Http\Logic\Aside\BaseLogic;
use App\Models\Project\EnterpriseProduct;
/**
* @remark :企业产品库
* @name :EnterpriseProductLogic
* @author :lyh
* @method :post
* @time :2025/3/26 10:13
*/
class EnterpriseProductLogic extends BaseLogic
{
public function __construct()
{
parent::__construct();
$this->model = new EnterpriseProduct();
$this->param = $this->requestAll;
}
/**
* @remark :保存产品企业库
* @name :saveEnterpriseProduct
* @author :lyh
* @method :post
* @time :2025/3/26 10:17
*/
public function saveEnterpriseProduct(){
try {
$this->model->saveEnterpriseProduct($this->param['project_id'],$this->param['data']);
}catch (\Exception $e){
$this->fail('保存失败,请联系管理员');
}
return $this->success();
}
}