BTemplateModuleProjectLogic.php 1015 字节
<?php
/**
 * @remark :
 * @name   :BTemplateModuleProjectLogic.php
 * @author :lyh
 * @method :post
 * @time   :2023/11/14 14:41
 */

namespace App\Http\Logic\Bside\BTemplate;

use App\Http\Logic\Bside\BaseLogic;
use App\Models\Template\BModuleProject;

class BTemplateModuleProjectLogic extends BaseLogic
{
    public function __construct()
    {
        parent::__construct();
        $this->model = new BModuleProject();
        $this->param = $this->requestAll;
    }

    /**
     * @remark :保存私有化左侧模块
     * @name   :moduleProjectSave
     * @author :lyh
     * @method :post
     * @time   :2023/11/14 14:46
     */
    public function moduleProjectSave(){
        try {
            $this->param['operator_id'] = $this->user['id'];
            $this->param['project_id'] = $this->user['project_id'];
            $this->model->add($this->param);
        }catch (\Exception $e){
            $this->fail('系统错误,请联系管理员');
        }
        return $this->success();
    }
}