作者 lyh

gx

  1 +<?php
  2 +/**
  3 + * @remark :
  4 + * @name :CustomModuleCategoryController.php
  5 + * @author :lyh
  6 + * @method :post
  7 + * @time :2023/12/4 15:54
  8 + */
  9 +
  10 +namespace App\Http\Controllers\Bside\CustomModule;
  11 +
  12 +use App\Http\Controllers\Bside\BaseController;
  13 +use App\Http\Logic\Bside\CustomModule\CustomModuleCategoryLogic;
  14 +use App\Models\CustomModule\CustomModuleCategory;
  15 +
  16 +class CustomModuleCategoryController extends BaseController
  17 +{
  18 + /**
  19 + * @remark :获取自定义模块列表
  20 + * @name :ModuleList
  21 + * @author :lyh
  22 + * @method :post
  23 + * @time :2023/12/4 15:43
  24 + */
  25 + public function list(CustomModuleCategory $customModuleCategory){
  26 + $this->map['project_id'] = $this->user['project_id'];
  27 + $lists = $customModuleCategory->lists($this->map,$this->page,$this->row,$this->order);
  28 + $this->response('success',Code::SUCCESS,$lists);
  29 + }
  30 +
  31 + /**
  32 + * @remark :获取当前数据详情
  33 + * @name :info
  34 + * @author :lyh
  35 + * @method :post
  36 + * @time :2023/12/4 16:09
  37 + */
  38 + public function info(CustomModuleCategoryLogic $logic){
  39 + $this->request->validate([
  40 + 'id'=>['required'],
  41 + ],[
  42 + 'id.required' => 'ID不能为空',
  43 + ]);
  44 + $info = $logic->getCustomModuleCategoryInfo();
  45 + $this->response('success',Code::SUCCESS,$info);
  46 + }
  47 +
  48 + /**
  49 + * @remark :保存数据
  50 + * @name :save
  51 + * @author :lyh
  52 + * @method :post
  53 + * @time :2023/12/4 15:45
  54 + */
  55 + public function save(CustomModuleCategoryLogic $logic){
  56 + $logic->customModuleCategorySave();
  57 + $this->response('success');
  58 + }
  59 +
  60 + /**
  61 + * @remark :删除数据
  62 + * @name :del
  63 + * @author :lyh
  64 + * @method :post
  65 + * @time :2023/12/4 16:14
  66 + */
  67 + public function del(CustomModuleCategoryLogic $logic){
  68 + $this->request->validate([
  69 + 'id'=>['required'],
  70 + ],[
  71 + 'id.required' => 'ID不能为空',
  72 + ]);
  73 + $logic->customModuleCategoryDel();
  74 + $this->response('success');
  75 + }
  76 +}
  1 +<?php
  2 +/**
  3 + * @remark :
  4 + * @name :CustomModuleContentController.php
  5 + * @author :lyh
  6 + * @method :post
  7 + * @time :2023/12/4 15:55
  8 + */
  9 +
  10 +namespace App\Http\Controllers\Bside\CustomModule;
  11 +
  12 +use App\Http\Controllers\Bside\BaseController;
  13 +use App\Http\Logic\Bside\CustomModule\CustomModuleContentLogic;
  14 +use App\Models\CustomModule\CustomModuleContent;
  15 +
  16 +class CustomModuleContentController extends BaseController
  17 +{
  18 + /**
  19 + * @remark :获取自定义模块列表
  20 + * @name :ModuleList
  21 + * @author :lyh
  22 + * @method :post
  23 + * @time :2023/12/4 15:43
  24 + */
  25 + public function list(CustomModuleContent $customModuleContent){
  26 + $this->map['project_id'] = $this->user['project_id'];
  27 + $lists = $customModuleContent->lists($this->map,$this->page,$this->row,$this->order);
  28 + $this->response('success',Code::SUCCESS,$lists);
  29 + }
  30 +
  31 + /**
  32 + * @remark :获取当前数据详情
  33 + * @name :info
  34 + * @author :lyh
  35 + * @method :post
  36 + * @time :2023/12/4 16:09
  37 + */
  38 + public function info(CustomModuleContentLogic $logic){
  39 + $this->request->validate([
  40 + 'id'=>['required'],
  41 + ],[
  42 + 'id.required' => 'ID不能为空',
  43 + ]);
  44 + $info = $logic->getCustomModuleContentInfo();
  45 + $this->response('success',Code::SUCCESS,$info);
  46 + }
  47 +
  48 + /**
  49 + * @remark :保存数据
  50 + * @name :save
  51 + * @author :lyh
  52 + * @method :post
  53 + * @time :2023/12/4 15:45
  54 + */
  55 + public function save(CustomModuleContentLogic $logic){
  56 + $logic->customModuleContentSave();
  57 + $this->response('success');
  58 + }
  59 +
  60 + /**
  61 + * @remark :删除数据
  62 + * @name :del
  63 + * @author :lyh
  64 + * @method :post
  65 + * @time :2023/12/4 16:14
  66 + */
  67 + public function del(CustomModuleContentLogic $logic){
  68 + $this->request->validate([
  69 + 'id'=>['required'],
  70 + ],[
  71 + 'id.required' => 'ID不能为空',
  72 + ]);
  73 + $logic->customModuleContentDel();
  74 + $this->response('success');
  75 + }
  76 +}
  1 +<?php
  2 +/**
  3 + * @remark :
  4 + * @name :CustomModuleController.php
  5 + * @author :lyh
  6 + * @method :post
  7 + * @time :2023/12/4 15:42
  8 + */
  9 +
  10 +namespace App\Http\Controllers\Bside\CustomModule;
  11 +
  12 +use App\Enums\Common\Code;
  13 +use App\Http\Controllers\Bside\BaseController;
  14 +use App\Http\Logic\Bside\CustomModule\CustomModuleLogic;
  15 +use App\Models\CustomModule\CustomModule;
  16 +
  17 +/**
  18 + * @remark :自定义模块
  19 + * @name :CustomModuleController
  20 + * @author :lyh
  21 + * @method :post
  22 + * @time :2023/12/4 15:42
  23 + */
  24 +class CustomModuleController extends BaseController
  25 +{
  26 + /**
  27 + * @remark :获取自定义模块列表
  28 + * @name :ModuleList
  29 + * @author :lyh
  30 + * @method :post
  31 + * @time :2023/12/4 15:43
  32 + */
  33 + public function list(CustomModule $customModule){
  34 + $this->map['project_id'] = $this->user['project_id'];
  35 + $lists = $customModule->lists($this->map,$this->page,$this->row,$this->order);
  36 + $this->response('success',Code::SUCCESS,$lists);
  37 + }
  38 +
  39 + /**
  40 + * @remark :获取当前数据详情
  41 + * @name :info
  42 + * @author :lyh
  43 + * @method :post
  44 + * @time :2023/12/4 16:09
  45 + */
  46 + public function info(CustomModuleLogic $logic){
  47 + $this->request->validate([
  48 + 'id'=>['required'],
  49 + ],[
  50 + 'id.required' => 'ID不能为空',
  51 + ]);
  52 + $info = $logic->getCustomModuleInfo();
  53 + $this->response('success',Code::SUCCESS,$info);
  54 + }
  55 +
  56 + /**
  57 + * @remark :保存数据
  58 + * @name :save
  59 + * @author :lyh
  60 + * @method :post
  61 + * @time :2023/12/4 15:45
  62 + */
  63 + public function save(CustomModuleLogic $logic){
  64 + $logic->customModuleSave();
  65 + $this->response('success');
  66 + }
  67 +
  68 + public function del(CustomModuleLogic $logic){
  69 + $this->request->validate([
  70 + 'id'=>['required'],
  71 + ],[
  72 + 'id.required' => 'ID不能为空',
  73 + ]);
  74 + $logic->customModuleDel();
  75 + $this->response('success');
  76 + }
  77 +}
  1 +<?php
  2 +/**
  3 + * @remark :
  4 + * @name :CustomModuleExtentController.php
  5 + * @author :lyh
  6 + * @method :post
  7 + * @time :2023/12/4 15:58
  8 + */
  9 +
  10 +namespace App\Http\Controllers\Bside\CustomModule;
  11 +
  12 +use App\Http\Controllers\Bside\BaseController;
  13 +use App\Http\Logic\Bside\CustomModule\CustomModuleExtendLogic;
  14 +use App\Models\CustomModule\CustomModuleExtend;
  15 +
  16 +class CustomModuleExtentController extends BaseController
  17 +{
  18 + /**
  19 + * @remark :获取自定义模块列表
  20 + * @name :ModuleList
  21 + * @author :lyh
  22 + * @method :post
  23 + * @time :2023/12/4 15:43
  24 + */
  25 + public function list(CustomModuleExtend $customModuleExtend){
  26 + $this->map['project_id'] = $this->user['project_id'];
  27 + $lists = $customModuleExtend->lists($this->map,$this->page,$this->row,$this->order);
  28 + $this->response('success',Code::SUCCESS,$lists);
  29 + }
  30 +
  31 + /**
  32 + * @remark :获取当前数据详情
  33 + * @name :info
  34 + * @author :lyh
  35 + * @method :post
  36 + * @time :2023/12/4 16:09
  37 + */
  38 + public function info(CustomModuleExtendLogic $logic){
  39 + $this->request->validate([
  40 + 'id'=>['required'],
  41 + ],[
  42 + 'id.required' => 'ID不能为空',
  43 + ]);
  44 + $info = $logic->getCustomModuleExtendInfo();
  45 + $this->response('success',Code::SUCCESS,$info);
  46 + }
  47 +
  48 + /**
  49 + * @remark :保存数据
  50 + * @name :save
  51 + * @author :lyh
  52 + * @method :post
  53 + * @time :2023/12/4 15:45
  54 + */
  55 + public function save(CustomModuleExtendLogic $logic){
  56 + $logic->customModuleExtendSave();
  57 + $this->response('success');
  58 + }
  59 +
  60 + /**
  61 + * @remark :删除数据
  62 + * @name :del
  63 + * @author :lyh
  64 + * @method :post
  65 + * @time :2023/12/4 16:14
  66 + */
  67 + public function del(CustomModuleExtendLogic $logic){
  68 + $this->request->validate([
  69 + 'id'=>['required'],
  70 + ],[
  71 + 'id.required' => 'ID不能为空',
  72 + ]);
  73 + $logic->customModuleExtendDel();
  74 + $this->response('success');
  75 + }
  76 +}
@@ -90,7 +90,7 @@ class OnlineCheckLogic extends BaseLogic @@ -90,7 +90,7 @@ class OnlineCheckLogic extends BaseLogic
90 } 90 }
91 $projectModel = new Project(); 91 $projectModel = new Project();
92 //提交审核修改状态为审核中 92 //提交审核修改状态为审核中
93 - $projectModel->edit(['status'=>1],['id'=>$info['project_id']]); 93 + $projectModel->edit(['status'=>1],['id'=>$this->param['id']]);
94 return $this->success(); 94 return $this->success();
95 } 95 }
96 } 96 }
  1 +<?php
  2 +/**
  3 + * @remark :
  4 + * @name :CustomModuleCategoryLogic.php
  5 + * @author :lyh
  6 + * @method :post
  7 + * @time :2023/12/4 16:07
  8 + */
  9 +
  10 +namespace App\Http\Logic\Bside\CustomModule;
  11 +
  12 +use App\Http\Logic\Bside\BaseLogic;
  13 +use App\Models\CustomModule\CustomModuleCategory;
  14 +
  15 +class CustomModuleCategoryLogic extends BaseLogic
  16 +{
  17 + public function __construct()
  18 + {
  19 + parent::__construct();
  20 + $this->param = $this->requestAll;
  21 + $this->model = new CustomModuleCategory();
  22 + }
  23 +
  24 + /**
  25 + * @remark :获取当前数据详情
  26 + * @name :getCustomModuleInfo
  27 + * @author :lyh
  28 + * @method :post
  29 + * @time :2023/12/4 16:10
  30 + */
  31 + public function getCustomModuleCategoryInfo(){
  32 +
  33 + }
  34 +
  35 + /**
  36 + * @remark :保存数据
  37 + * @name :ModuleSave
  38 + * @author :lyh
  39 + * @method :post
  40 + * @time :2023/12/4 15:47
  41 + */
  42 + public function customModuleCategorySave(){
  43 +
  44 + }
  45 +
  46 + /**
  47 + * @remark :删除数据
  48 + * @name :ModuleDel
  49 + * @author :lyh
  50 + * @method :post
  51 + * @time :2023/12/4 15:47
  52 + */
  53 + public function customModuleCategoryDel(){
  54 +
  55 + }
  56 +}
  1 +<?php
  2 +/**
  3 + * @remark :
  4 + * @name :CustomModuleContentLogic.php
  5 + * @author :lyh
  6 + * @method :post
  7 + * @time :2023/12/4 16:06
  8 + */
  9 +
  10 +namespace App\Http\Logic\Bside\CustomModule;
  11 +
  12 +use App\Http\Logic\Bside\BaseLogic;
  13 +use App\Models\CustomModule\CustomModuleContent;
  14 +
  15 +class CustomModuleContentLogic extends BaseLogic
  16 +{
  17 + public function __construct()
  18 + {
  19 + parent::__construct();
  20 + $this->param = $this->requestAll;
  21 + $this->model = new CustomModuleContent();
  22 + }
  23 +
  24 + /**
  25 + * @remark :获取当前数据详情
  26 + * @name :getCustomModuleInfo
  27 + * @author :lyh
  28 + * @method :post
  29 + * @time :2023/12/4 16:10
  30 + */
  31 + public function getCustomModuleContentInfo(){
  32 +
  33 + }
  34 +
  35 + /**
  36 + * @remark :保存数据
  37 + * @name :ModuleSave
  38 + * @author :lyh
  39 + * @method :post
  40 + * @time :2023/12/4 15:47
  41 + */
  42 + public function customModuleContentSave(){
  43 +
  44 + }
  45 +
  46 + /**
  47 + * @remark :删除数据
  48 + * @name :ModuleDel
  49 + * @author :lyh
  50 + * @method :post
  51 + * @time :2023/12/4 15:47
  52 + */
  53 + public function customModuleContentDel(){
  54 +
  55 + }
  56 +}
  1 +<?php
  2 +/**
  3 + * @remark :
  4 + * @name :CustomModuleExtendLogic.php
  5 + * @author :lyh
  6 + * @method :post
  7 + * @time :2023/12/4 16:07
  8 + */
  9 +
  10 +namespace App\Http\Logic\Bside\CustomModule;
  11 +
  12 +use App\Http\Logic\Bside\BaseLogic;
  13 +use App\Models\CustomModule\CustomModuleExtend;
  14 +
  15 +class CustomModuleExtendLogic extends BaseLogic
  16 +{
  17 + public function __construct()
  18 + {
  19 + parent::__construct();
  20 + $this->param = $this->requestAll;
  21 + $this->model = new CustomModuleExtend();
  22 + }
  23 +
  24 + /**
  25 + * @remark :获取当前数据详情
  26 + * @name :getCustomModuleInfo
  27 + * @author :lyh
  28 + * @method :post
  29 + * @time :2023/12/4 16:10
  30 + */
  31 + public function getCustomModuleExtendInfo(){
  32 +
  33 + }
  34 +
  35 + /**
  36 + * @remark :保存数据
  37 + * @name :ModuleSave
  38 + * @author :lyh
  39 + * @method :post
  40 + * @time :2023/12/4 15:47
  41 + */
  42 + public function customModuleExtendSave(){
  43 +
  44 + }
  45 +
  46 + /**
  47 + * @remark :删除数据
  48 + * @name :ModuleDel
  49 + * @author :lyh
  50 + * @method :post
  51 + * @time :2023/12/4 15:47
  52 + */
  53 + public function customModuleExtendDel(){
  54 +
  55 + }
  56 +}
  1 +<?php
  2 +/**
  3 + * @remark :
  4 + * @name :CustomModuleLogic.php
  5 + * @author :lyh
  6 + * @method :post
  7 + * @time :2023/12/4 15:46
  8 + */
  9 +
  10 +namespace App\Http\Logic\Bside\CustomModule;
  11 +
  12 +use App\Http\Logic\Bside\BaseLogic;
  13 +use App\Models\CustomModule\CustomModule;
  14 +
  15 +class CustomModuleLogic extends BaseLogic
  16 +{
  17 + public function __construct()
  18 + {
  19 + parent::__construct();
  20 + $this->param = $this->requestAll;
  21 + $this->model = new CustomModule();
  22 + }
  23 +
  24 + /**
  25 + * @remark :获取当前数据详情
  26 + * @name :getCustomModuleInfo
  27 + * @author :lyh
  28 + * @method :post
  29 + * @time :2023/12/4 16:10
  30 + */
  31 + public function getCustomModuleInfo(){
  32 +
  33 + }
  34 +
  35 + /**
  36 + * @remark :保存数据
  37 + * @name :ModuleSave
  38 + * @author :lyh
  39 + * @method :post
  40 + * @time :2023/12/4 15:47
  41 + */
  42 + public function customModuleSave(){
  43 +
  44 + }
  45 +
  46 + /**
  47 + * @remark :删除数据
  48 + * @name :ModuleDel
  49 + * @author :lyh
  50 + * @method :post
  51 + * @time :2023/12/4 15:47
  52 + */
  53 + public function customModuleDel(){
  54 +
  55 + }
  56 +}
1 <?php 1 <?php
2 /** 2 /**
3 * @remark : 3 * @remark :
4 - * @name :CustomModuleLabel.php 4 + * @name :CustomModuleExtend.php
5 * @author :lyh 5 * @author :lyh
6 * @method :post 6 * @method :post
7 - * @time :2023/11/6 10:05 7 + * @time :2023/12/4 15:42
8 */ 8 */
9 9
10 namespace App\Models\CustomModule; 10 namespace App\Models\CustomModule;
11 11
12 use App\Models\Base; 12 use App\Models\Base;
13 13
14 -class CustomModuleLabel extends Base 14 +class CustomModuleExtend extends Base
15 { 15 {
16 - protected $table = 'gl_custom_module_label'; 16 + protected $table = 'gl_custom_module_extent';
17 } 17 }