lip 3 mesi fa
parent
commit
b8f749fbd9
100 ha cambiato i file con 0 aggiunte e 10324 eliminazioni
  1. 0 42
      .travis.yml
  2. 0 7
      404.html
  3. 0 32
      LICENSE.txt
  4. 0 376
      Untitled-1
  5. 0 28
      app/adminapi/config/route.php
  6. 0 42
      app/adminapi/controller/BaseAdminController.php
  7. 0 73
      app/adminapi/controller/ConfigController.php
  8. 0 50
      app/adminapi/controller/DownloadController.php
  9. 0 137
      app/adminapi/controller/FileController.php
  10. 0 59
      app/adminapi/controller/LoginController.php
  11. 0 80
      app/adminapi/controller/UploadController.php
  12. 0 38
      app/adminapi/controller/WorkbenchController.php
  13. 0 134
      app/adminapi/controller/article/ArticleCateController.php
  14. 0 114
      app/adminapi/controller/article/ArticleController.php
  15. 0 138
      app/adminapi/controller/auth/AdminController.php
  16. 0 142
      app/adminapi/controller/auth/MenuController.php
  17. 0 124
      app/adminapi/controller/auth/RoleController.php
  18. 0 53
      app/adminapi/controller/channel/AppSettingController.php
  19. 0 71
      app/adminapi/controller/channel/MnpSettingsController.php
  20. 0 74
      app/adminapi/controller/channel/OfficialAccountMenuController.php
  21. 0 148
      app/adminapi/controller/channel/OfficialAccountReplyController.php
  22. 0 52
      app/adminapi/controller/channel/OfficialAccountSettingController.php
  23. 0 54
      app/adminapi/controller/channel/OpenSettingController.php
  24. 0 54
      app/adminapi/controller/channel/WebPageSettingController.php
  25. 0 108
      app/adminapi/controller/coupon/CouponRulesController.php
  26. 0 108
      app/adminapi/controller/coupon/UserCouponController.php
  27. 0 135
      app/adminapi/controller/crontab/CrontabController.php
  28. 0 32
      app/adminapi/controller/data_analysis/DataAnalysisController.php
  29. 0 55
      app/adminapi/controller/decorate/DataController.php
  30. 0 61
      app/adminapi/controller/decorate/PageController.php
  31. 0 58
      app/adminapi/controller/decorate/TabbarController.php
  32. 0 134
      app/adminapi/controller/dept/DeptController.php
  33. 0 118
      app/adminapi/controller/dept/JobsController.php
  34. 0 108
      app/adminapi/controller/effective/EffectiveRulesController.php
  35. 0 111
      app/adminapi/controller/effective/OrderEffectiveLogController.php
  36. 0 108
      app/adminapi/controller/equity/EquityConfigController.php
  37. 0 117
      app/adminapi/controller/equity/EquityOrderController.php
  38. 0 132
      app/adminapi/controller/equity/UserEquityController.php
  39. 0 132
      app/adminapi/controller/export/ExportController.php
  40. 0 117
      app/adminapi/controller/external/DouyinOrderController.php
  41. 0 134
      app/adminapi/controller/external/ExternalConsultationController.php
  42. 0 108
      app/adminapi/controller/external/ExternalPlatformController.php
  43. 0 117
      app/adminapi/controller/external/ExternalPlatformGoodsController.php
  44. 0 108
      app/adminapi/controller/external/ExternalPlatformOrdersController.php
  45. 0 108
      app/adminapi/controller/fault_code/FaultCodeController.php
  46. 0 130
      app/adminapi/controller/fault_type/FaultTypeController.php
  47. 0 109
      app/adminapi/controller/feedback/FeedbackController.php
  48. 0 39
      app/adminapi/controller/finance/AccountLogController.php
  49. 0 108
      app/adminapi/controller/finance/MasterWorkerCaseOutLogController.php
  50. 0 72
      app/adminapi/controller/finance/RefundController.php
  51. 0 37
      app/adminapi/controller/finance/RetentionMoneyLogController.php
  52. 0 39
      app/adminapi/controller/finance/WorkerAccountLogController.php
  53. 0 111
      app/adminapi/controller/financial/FinancialPaymentRecordsController.php
  54. 0 108
      app/adminapi/controller/firm/FirmRegisterController.php
  55. 0 116
      app/adminapi/controller/goods/GoodsController.php
  56. 0 112
      app/adminapi/controller/goods_category/GoodsCategoryController.php
  57. 0 108
      app/adminapi/controller/goods_fee_standards/GoodsFeeStandardsController.php
  58. 0 108
      app/adminapi/controller/goods_time/GoodsTimeController.php
  59. 0 152
      app/adminapi/controller/group_activity/GroupActivityCategoryController.php
  60. 0 107
      app/adminapi/controller/group_activity/GroupEquityController.php
  61. 0 80
      app/adminapi/controller/group_activity/GroupOrderController.php
  62. 0 77
      app/adminapi/controller/group_activity/GroupUserOrderController.php
  63. 0 108
      app/adminapi/controller/home_service/HomeServiceController.php
  64. 0 108
      app/adminapi/controller/home_service/HomeSpecialController.php
  65. 0 114
      app/adminapi/controller/jobs_rules/JobsRulesController.php
  66. 0 113
      app/adminapi/controller/labels/LabelsController.php
  67. 0 133
      app/adminapi/controller/master_commission/MasterWorkerCommissionConfigController.php
  68. 0 119
      app/adminapi/controller/master_worker/BankAccountController.php
  69. 0 129
      app/adminapi/controller/master_worker/EngineerBillController.php
  70. 0 124
      app/adminapi/controller/master_worker/EngineerSettlementController.php
  71. 0 109
      app/adminapi/controller/master_worker/EngineerSettlementPermanentlyController.php
  72. 0 120
      app/adminapi/controller/master_worker/MasterWorkerAgreeController.php
  73. 0 239
      app/adminapi/controller/master_worker/MasterWorkerController.php
  74. 0 110
      app/adminapi/controller/master_worker/MasterWorkerExamineController.php
  75. 0 116
      app/adminapi/controller/master_worker/MasterWorkerInfoController.php
  76. 0 108
      app/adminapi/controller/master_worker/MasterWorkerRuleController.php
  77. 0 102
      app/adminapi/controller/master_worker/MasterWorkerServiceOrderController.php
  78. 0 108
      app/adminapi/controller/master_worker/MasterWorkerTeamController.php
  79. 0 116
      app/adminapi/controller/master_worker/MasterWorkerTemporaryController.php
  80. 0 37
      app/adminapi/controller/master_worker/RetentionMoneyLogController.php
  81. 0 108
      app/adminapi/controller/master_worker_credential/MasterWorkerCredentialImagesController.php
  82. 0 109
      app/adminapi/controller/master_worker_customer/MasterWorkerCustomerController.php
  83. 0 122
      app/adminapi/controller/master_worker_register/MasterWorkerRegisterController.php
  84. 0 171
      app/adminapi/controller/notice/NoticeController.php
  85. 0 69
      app/adminapi/controller/notice/SmsConfigController.php
  86. 0 108
      app/adminapi/controller/orders/OrderAfterQrcodeController.php
  87. 0 108
      app/adminapi/controller/orders/OrderReportController.php
  88. 0 108
      app/adminapi/controller/orders/RechargeOrderController.php
  89. 0 108
      app/adminapi/controller/performance/PerformanceRulesController.php
  90. 0 60
      app/adminapi/controller/platform_api/MeiTuanApiController.php
  91. 0 108
      app/adminapi/controller/platform_rule/PerformanceWorkerRulesController.php
  92. 0 108
      app/adminapi/controller/platform_rule/PlatformRuleController.php
  93. 0 130
      app/adminapi/controller/property/PropertyActivityController.php
  94. 0 108
      app/adminapi/controller/property/PropertyCommissionController.php
  95. 0 122
      app/adminapi/controller/property/PropertyHeadController.php
  96. 0 161
      app/adminapi/controller/property/PropertyOrderController.php
  97. 0 136
      app/adminapi/controller/property/PropertySurplusLogController.php
  98. 0 108
      app/adminapi/controller/property/PropertyUserController.php
  99. 0 107
      app/adminapi/controller/recharge/RechargeController.php
  100. 0 108
      app/adminapi/controller/reviews/GoodsReviewsController.php

+ 0 - 42
.travis.yml

@@ -1,42 +0,0 @@
-sudo: false
-
-language: php
-
-branches:
-  only:
-    - stable
-
-cache:
-  directories:
-    - $HOME/.composer/cache
-
-before_install:
-  - composer self-update
-
-install:
-  - composer install --no-dev --no-interaction --ignore-platform-reqs
-  - zip -r --exclude='*.git*' --exclude='*.zip' --exclude='*.travis.yml' ThinkPHP_Core.zip .
-  - composer require --update-no-dev --no-interaction "topthink/think-image:^1.0"
-  - composer require --update-no-dev --no-interaction "topthink/think-migration:^1.0"
-  - composer require --update-no-dev --no-interaction "topthink/think-captcha:^1.0"
-  - composer require --update-no-dev --no-interaction "topthink/think-mongo:^1.0"
-  - composer require --update-no-dev --no-interaction "topthink/think-worker:^1.0"
-  - composer require --update-no-dev --no-interaction "topthink/think-helper:^1.0"
-  - composer require --update-no-dev --no-interaction "topthink/think-queue:^1.0"
-  - composer require --update-no-dev --no-interaction "topthink/think-angular:^1.0"
-  - composer require --dev --update-no-dev --no-interaction "topthink/think-testing:^1.0"
-  - zip -r --exclude='*.git*' --exclude='*.zip' --exclude='*.travis.yml' ThinkPHP_Full.zip .
-
-script:
-  - php think unit
-
-deploy:
-  provider: releases
-  api_key:
-    secure: TSF6bnl2JYN72UQOORAJYL+CqIryP2gHVKt6grfveQ7d9rleAEoxlq6PWxbvTI4jZ5nrPpUcBUpWIJHNgVcs+bzLFtyh5THaLqm39uCgBbrW7M8rI26L8sBh/6nsdtGgdeQrO/cLu31QoTzbwuz1WfAVoCdCkOSZeXyT/CclH99qV6RYyQYqaD2wpRjrhA5O4fSsEkiPVuk0GaOogFlrQHx+C+lHnf6pa1KxEoN1A0UxxVfGX6K4y5g4WQDO5zT4bLeubkWOXK0G51XSvACDOZVIyLdjApaOFTwamPcD3S1tfvuxRWWvsCD5ljFvb2kSmx5BIBNwN80MzuBmrGIC27XLGOxyMerwKxB6DskNUO9PflKHDPI61DRq0FTy1fv70SFMSiAtUv9aJRT41NQh9iJJ0vC8dl+xcxrWIjU1GG6+l/ZcRqVx9V1VuGQsLKndGhja7SQ+X1slHl76fRq223sMOql7MFCd0vvvxVQ2V39CcFKao/LB1aPH3VhODDEyxwx6aXoTznvC/QPepgWsHOWQzKj9ftsgDbsNiyFlXL4cu8DWUty6rQy8zT2b4O8b1xjcwSUCsy+auEjBamzQkMJFNlZAIUrukL/NbUhQU37TAbwsFyz7X0E/u/VMle/nBCNAzgkMwAUjiHM6FqrKKBRWFbPrSIixjfjkCnrMEPw=
-  file:
-    - ThinkPHP_Core.zip
-    - ThinkPHP_Full.zip
-  skip_cleanup: true
-  on:
-    tags: true

+ 0 - 7
404.html

@@ -1,7 +0,0 @@
-<html>
-<head><title>404 Not Found</title></head>
-<body>
-<center><h1>404 Not Found</h1></center>
-<hr><center>nginx</center>
-</body>
-</html>

+ 0 - 32
LICENSE.txt

@@ -1,32 +0,0 @@
-
-ThinkPHP遵循Apache2开源协议发布,并提供免费使用。
-版权所有Copyright © 2006-2016 by ThinkPHP (http://thinkphp.cn)
-All rights reserved。
-ThinkPHP® 商标和著作权所有者为上海顶想信息科技有限公司。
-
-Apache Licence是著名的非盈利开源组织Apache采用的协议。
-该协议和BSD类似,鼓励代码共享和尊重原作者的著作权,
-允许代码修改,再作为开源或商业软件发布。需要满足
-的条件: 
-1. 需要给代码的用户一份Apache Licence ;
-2. 如果你修改了代码,需要在被修改的文件中说明;
-3. 在延伸的代码中(修改和有源代码衍生的代码中)需要
-带有原来代码中的协议,商标,专利声明和其他原来作者规
-定需要包含的说明;
-4. 如果再发布的产品中包含一个Notice文件,则在Notice文
-件中需要带有本协议内容。你可以在Notice中增加自己的
-许可,但不可以表现为对Apache Licence构成更改。 
-具体的协议参考:http://www.apache.org/licenses/LICENSE-2.0
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.

+ 0 - 376
Untitled-1

@@ -1,376 +0,0 @@
-
-##燃气灶维修
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES (1, 1, 38, '集成灶维修', 0);
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES (2, 1, 38, '普通燃气灶维修(单灶)', 0);
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES (3, 1, 38, '燃气灶无名', 0);
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES (4, 1, 38, '普通燃气灶维修(双灶)', 0);
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(5, 1, 38, '按键灯不亮', 1),
-(6, 1, 38, '不抽油烟', 1),
-(7, 1, 38, '不通电', 1),
-(8, 1, 38, '抽屉滑轨抽拉不畅', 1),
-(9, 1, 38, '串味', 1),
-(10, 1, 38, '打不着火', 1),
-(11, 1, 38, '火苗不正常', 1),
-(12, 1, 38, '开关扭不动', 1),
-(13, 1, 38, '漏气', 1),
-(14, 1, 38, '炉头组件故障', 1),
-(15, 1, 38, '无臭氧', 1),
-(16, 1, 38, '哚音大', 1),
-(17, 1, 38, '自动熄火', 1);
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(18, 1, 38, '打不着火', 2),
-(19, 1, 38, '火苗不正常', 2),
-(20, 1, 38, '开关扭不动', 2),
-(21, 1, 38, '漏气', 2); 
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(22, 1, 38, '炉头组件故障', 3),
-(23, 1, 38, '自动熄火', 3); 
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(24, 1, 38, '打不着火', 4),
-(25, 1, 38, '火苗不正常', 4),
-(26, 1, 38, '开关扭不动', 4),
-(27, 1, 38, '漏气', 4),
-(28, 1, 38, '炉头组件故障', 4),
-(29, 1, 38, '自动熄火', 4);
-
-##油烟机维修
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(30, 1, 43, '集成灶油烟', 0),
-(31, 1, 43, '欧式油烟机维修(排风量14(m3/min)及以下)', 0),
-(32, 1, 43, '普通油烟机维修', 0),
-(33, 1, 43, '升降式油烟机维修(功率200W及以下 )', 0),
-(34, 1, 43, '升降式油烟机维修(功率200W以上 )', 0),
-(35, 1, 43, '中式油烟机维修(功率200W及以下 )', 0),
-(36, 1, 43, '中式油烟机维修(功率200W以上)', 0); 
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(37, 1, 43, '不抽油烟', 30),
-(38, 1, 43, '不通电', 30),
-(39, 1, 43, '不消毒', 30),
-(40, 1, 43, '抽屉滑轨抽拉不畅', 30),
-(41, 1, 43, '串味', 30),
-(42, 1, 43, '抖动大', 30),
-(43, 1, 43, '开关扭不动', 30),
-(44, 1, 43, '开机后熄火', 30),
-(45, 1, 43, '漏气', 30),
-(46, 1, 43, '漏水', 30),
-(47, 1, 43, '漏油', 30),
-(48, 1, 43, '炉头组件故障', 30),
-(49, 1, 43, '门打不开', 30),
-(50, 1, 43, '清洗检测', 30),
-(51, 1, 43, '闪灯/显示字母报警', 30),
-(52, 1, 43, '通电灯不亮', 30),
-(53, 1, 43, '无臭氧', 30),
-(54, 1, 43, '噪音大', 30); 
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(55, 1, 43, '自动熄火', 31),
-(56, 1, 43, '不抽油烟', 31),
-(57, 1, 43, '不通电', 31),
-(58, 1, 43, '串味', 31),
-(59, 1, 43, '抖动大', 31),
-(60, 1, 43, '开关扭不动', 31),
-(61, 1, 43, '漏水', 31),
-(62, 1, 43, '漏油', 31),
-(63, 1, 43, '门打不开', 31),
-(64, 1, 43, '清洗检测', 31),
-(65, 1, 43, '闪灯/显示字母报警', 31),
-(66, 1, 43, '通电灯不亮', 31),
-(67, 1, 43, '噪音大', 31);    
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(68, 1, 43, '不抽油烟', 32),
-(69, 1, 43, '不通电', 32),
-(70, 1, 43, '串味', 32),
-(71, 1, 43, '抖动大', 32),
-(72, 1, 43, '开关扭不动', 32),
-(73, 1, 43, '漏水', 32),
-(74, 1, 43, '漏油', 32),
-(75, 1, 43, '门打不开', 32),
-(76, 1, 43, '清洗检测', 32),
-(77, 1, 43, '闪灯/显示字母报警', 32),
-(78, 1, 43, '通电灯不亮', 32),
-(79, 1, 43, '噪音大', 32);    
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(80, 1, 43, '不抽油烟', 33),
-(81, 1, 43, '不通电', 33),
-(82, 1, 43, '不抽油烟', 33),
-(83, 1, 43, '不通电', 33),
-(84, 1, 43, '串味', 33),
-(85, 1, 43, '抖动大', 33),
-(86, 1, 43, '开关扭不动', 33),
-(87, 1, 43, '漏水', 33),
-(88, 1, 43, '门打不开', 33),
-(89, 1, 43, '清洗检测', 33),
-(90, 1, 43, '闪灯/显示字母报警', 33),
-(91, 1, 43, '通电灯不亮', 33),
-(92, 1, 43, '噪音大', 33);  
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(93, 1, 43, '不抽油烟', 34),
-(94, 1, 43, '不通电', 34),
-(95, 1, 43, '串味', 34),
-(96, 1, 43, '抖动大', 34),
-(97, 1, 43, '开关扭不动', 34),
-(98, 1, 43, '漏水', 34),
-(99, 1, 43, '漏油', 34),
-(100, 1, 43, '门打不开', 34),
-(101, 1, 43, '清洗检测', 34),
-(102, 1, 43, '闪灯/显示字母报警', 34),
-(103, 1, 43, '通电灯不亮', 34),
-(104, 1, 43, '噪音大', 34);  
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(105, 1, 43, '不抽油烟', 35),
-(106, 1, 43, '不通电', 35),
-(107, 1, 43, '串味', 35),
-(108, 1, 43, '抖动大', 35),
-(109, 1, 43, '开关扭不动', 35),
-(110, 1, 43, '漏水', 35),
-(111, 1, 43, '漏油', 35),
-(112, 1, 43, '门打不开', 35),
-(113, 1, 43, '清洗检测', 35),
-(114, 1, 43, '闪灯/显示字母报警', 35),
-(115, 1, 43, '通电灯不亮', 35),
-(116, 1, 43, '噪音大', 35);    
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(117, 1, 43, '不抽油烟', 36),
-(118, 1, 43, '不通电', 36),
-(119, 1, 43, '串味', 36),
-(120, 1, 43, '抖动大', 36),
-(121, 1, 43, '开关扭不动', 36),
-(122, 1, 43, '漏水', 36),
-(123, 1, 43, '漏油', 36),
-(124, 1, 43, '门打不开', 36),
-(125, 1, 43, '清洗检测', 36),
-(126, 1, 43, '闪灯/显示字母报警', 36),
-(127, 1, 43, '通电灯不亮', 36),
-(128, 1, 43, '噪音大', 36); 
-
-##燃气热水器
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(129, 1, 40, '壁挂炉维修', 0),
-(130, 1, 40, '燃气热水器无名', 0),
-(131, 1, 40, '壁挂炉维修(20L)', 0),
-(132, 1, 40, '燃气热水器无名', 0),
-(133, 1, 40, '壁挂炉维修(25L)', 0),
-(134, 1, 40, '燃气热水器无名', 0),
-(135, 1, 40, '壁挂炉维修(30L)', 0),
-(136, 1, 40, '燃气热水器无名', 0),
-(137, 1, 40, '电热水器维修(>500L)', 0),
-(138, 1, 40, '电热水器维修(100L)', 0),
-(139, 1, 40, '电热水器维修(101-200L)', 0),
-(140, 1, 40, '电热水器维修(201-300L)', 0),
-(141, 1, 40, '电热水器维修(301-500L)', 0),
-(142, 1, 40, '电热水器维修(40-50L)', 0),
-(143, 1, 40, '电热水器维修(60-80L)', 0),
-(144, 1, 40, '即热式热水器维修(≤4000瓦 )', 0),
-(145, 1, 40, '即热式热水器维修(4001-6000瓦 )', 0),
-(146, 1, 40, '即热式热水器维修(6001-8000瓦 )', 0),
-(147, 1, 40, '空气能热水器维修(1-1.5P)', 0);
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(148, 1, 40, '不出热水/不够热', 129),
-(149, 1, 40, '不上水', 129),
-(150, 1, 40, '不通电', 129),
-(151, 1, 40, '出水小', 129),
-(152, 1, 40, '点不着火', 129),
-(153, 1, 40, '开机后熄火', 129),
-(154, 1, 40, '开机跳闸', 129),
-(155, 1, 40, '漏气', 129),
-(156, 1, 40, '漏水', 129),
-(157, 1, 40, '燃气热水器无名', 129),
-(158, 1, 40, '有异响', 129);
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(159, 1, 40, '不出热水/不够热', 130),
-(160, 1, 40, '不上水', 130),
-(161, 1, 40, '不通电', 130);
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(162, 1, 40, '出水小', 131),
-(163, 1, 40, '点不着火', 131),
-(164, 1, 40, '开机后熄火', 131),
-(165, 1, 40, '开机跳闸', 131),
-(166, 1, 40, '漏气', 131),
-(167, 1, 40, '燃气热水器无名', 131),
-(168, 1, 40, '漏水', 131),
-(169, 1, 40, '有异响', 131);
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(170, 1, 40, '不出热水/不够热', 132),
-(171, 1, 40, '不上水', 132);
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(172, 1, 40, '不通电', 133),
-(173, 1, 40, '出水小', 133),
-(174, 1, 40, '点不着火', 133),
-(175, 1, 40, '开机后熄火', 133),
-(176, 1, 40, '开机跳闸', 133),
-(177, 1, 40, '漏气', 133),
-(178, 1, 40, '漏水', 133),
-(179, 1, 40, '有异响', 133);
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(180, 1, 40, '不出热水/不够热', 134);
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES 
-(181, 1, 40, '不上水', 135),
-(182, 1, 40, '不通电', 135),
-(183, 1, 40, '出水小', 135),
-(184, 1, 40, '点不着火', 135),
-(185, 1, 40, '开机后熄火', 135),
-(186, 1, 40, '开机跳闸', 135),
-(187, 1, 40, '漏气', 135),
-(188, 1, 40, '漏水', 135),
-(189, 1, 40, '有异响', 135);
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES
-(190, 1, 40, '不出热水/不够热', 136),
-(191, 1, 40, '不上水', 136),
-(192, 1, 40, '不通电', 136);
-
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES
-(193, 1, 40, '燃气热水器无名', 137),
-(194, 1, 40, '出水小', 137),
-(195, 1, 40, '点不着火', 137),
-(196, 1, 40, '开关扭不动', 137),
-(197, 1, 40, '开机后熄火', 137),
-(198, 1, 40, '开机跳闸', 137),
-(199, 1, 40, '漏气', 137),
-(200, 1, 40, '漏水', 137),
-(201, 1, 40, '有异响', 137);
-    
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES
-(202, 1, 40, '不出热水/不够热', 138),
-(203, 1, 40, '不上水', 138),
-(204, 1, 40, '不通电', 138),
-(205, 1, 40, '出水小', 138),
-(206, 1, 40, '点不着火', 138),
-(207, 1, 40, '开关扭不动', 138),
-(208, 1, 40, '开机后熄火', 138),
-(209, 1, 40, '开机跳闸', 138),
-(210, 1, 40, '漏气', 138),
-(211, 1, 40, '漏水', 138),
-(212, 1, 40, '有异响', 138),
-      
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES
-(213, 1, 40, '不出热水/不够热', 139),
-(214, 1, 40, '不上水', 139),
-(215, 1, 40, '不通电', 139),
-(216, 1, 40, '出水小', 139),
-(217, 1, 40, '点不着火', 139),
-(218, 1, 40, '开关扭不动', 139),
-(219, 1, 40, '开机后熄火', 139),
-(220, 1, 40, '开机跳闸', 139),
-(221, 1, 40, '漏气', 139),
-(222, 1, 40, '漏水', 139),
-(223, 1, 40, '有异响', 139);
-    
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES
-(224, 1, 40, '不出热水/不够热', 140),
-(225, 1, 40, '不上水', 140),
-(226, 1, 40, '不通电', 140),
-(227, 1, 40, '出水小', 140),
-(228, 1, 40, '点不着火', 140),
-(229, 1, 40, '开关扭不动', 140),
-(230, 1, 40, '开机后熄火', 140),
-(231, 1, 40, '开机跳闸', 140),
-(232, 1, 40, '漏气', 140),
-(233, 1, 40, '漏水', 140),
-(234, 1, 40, '有异响', 140);
-    
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES
-(235, 1, 40, '不出热水/不够热', 141),
-(236, 1, 40, '不上水', 141),
-(237, 1, 40, '不通电', 141),
-(238, 1, 40, '出水小', 141),
-(239, 1, 40, '点不着火', 141),
-(240, 1, 40, '开关扭不动', 141),
-(241, 1, 40, '开机后熄火', 141),
-(242, 1, 40, '开机跳闸', 141),
-(243, 1, 40, '漏气', 141),
-(244, 1, 40, '漏水', 141),
-(245, 1, 40, '有异响', 141);
-    
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES
-(246, 1, 40, '不出热水/不够热', 142),
-(247, 1, 40, '不上水', 142),
-(248, 1, 40, '不通电', 142),
-(249, 1, 40, '出水小', 142),
-(250, 1, 40, '点不着火', 142),
-(251, 1, 40, '开关扭不动', 142),
-(252, 1, 40, '开机后熄火', 142),
-(253, 1, 40, '开机跳闸', 142),
-(254, 1, 40, '漏气', 142),
-(255, 1, 40, '漏水', 142),
-(256, 1, 40, '有异响', 142);
-    
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES
-(257, 1, 40, '不出热水/不够热', 143),
-(258, 1, 40, '不上水', 143),
-(259, 1, 40, '不通电', 143),
-(260, 1, 40, '出水小', 143),
-(261, 1, 40, '点不着火', 143),
-(262, 1, 40, '开关扭不动', 143),
-(263, 1, 40, '开机后熄火', 143),
-(264, 1, 40, '开机跳闸', 143),
-(265, 1, 40, '漏气', 143),
-(266, 1, 40, '漏水', 143),
-(267, 1, 40, '有异响', 143);
-    
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES
-(268, 1, 40, '不出热水/不够热', 144),
-(269, 1, 40, '不上水', 144),
-(270, 1, 40, '不通电', 144),
-(271, 1, 40, '出水小', 144),
-(272, 1, 40, '点不着火', 144),
-(273, 1, 40, '开机后熄火', 144),
-(274, 1, 40, '开机跳闸', 144),
-(275, 1, 40, '漏气', 144),
-(276, 1, 40, '漏水', 144);
-    
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES
-(277, 1, 40, '不出热水/不够热', 145),
-(278, 1, 40, '不上水', 145),
-(279, 1, 40, '不通电', 145),
-(280, 1, 40, '出水小', 145),
-(281, 1, 40, '点不着火', 145),
-(282, 1, 40, '开机后熄火', 145),
-(283, 1, 40, '开机跳闸', 145),
-(284, 1, 40, '漏气', 145),
-(285, 1, 40, '漏水', 145);
-    
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES
-(286, 1, 40, '不出热水/不够热', 146),
-(287, 1, 40, '不上水', 146),
-(288, 1, 40, '不通电', 146),
-(289, 1, 40, '出水小', 146),
-(390, 1, 40, '点不着火', 146),
-(291, 1, 40, '开机后熄火', 146),
-(292, 1, 40, '开机跳闸', 146),
-(293, 1, 40, '漏气', 146),
-(294, 1, 40, '漏水', 146);
-    
-INSERT INTO `la_fault_type` (`id`, `category_type`, `goods_category_id`, `name`, `pid`) VALUES
-(295, 1, 40, '不出热水/不够热', 147),
-(296, 1, 40, '不上水', 147),
-(297, 1, 40, '不通电', 147),
-(298, 1, 40, '出水小', 147),
-(299, 1, 40, '点不着火', 147),
-(300, 1, 40, '开机后熄火', 147),
-(301, 1, 40, '开机跳闸', 147),
-(302, 1, 40, '漏气', 147),
-(303, 1, 40, '漏水', 147),
-(304, 1, 40, '不启动', 147),
-(305, 1, 40, '闪灯/显示字母报警', 147),
-(306, 1, 40, '有异响', 147);
-    
-

+ 0 - 28
app/adminapi/config/route.php

@@ -1,28 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-return [
-    'middleware' => [
-        // 初始化
-        app\adminapi\http\middleware\InitMiddleware::class,
-        // 登录验证
-        app\adminapi\http\middleware\LoginMiddleware::class,
-        // 权限认证
-        app\adminapi\http\middleware\AuthMiddleware::class,
-        // 演示模式 - 禁止提交数据
-        app\adminapi\http\middleware\CheckDemoMiddleware::class,
-        // 演示模式 - 不返回敏感数据
-        app\adminapi\http\middleware\EncryDemoDataMiddleware::class,
-    ],
-];

+ 0 - 42
app/adminapi/controller/BaseAdminController.php

@@ -1,42 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-declare (strict_types=1);
-
-namespace app\adminapi\controller;
-
-use app\common\enum\AdminTerminalEnum;
-use think\App;
-use app\common\controller\BaseLikeAdminController;
-
-/**
- * 管理元控制器基类
- * Class BaseAdminController
- * @package app\adminapi\controller
- */
-class BaseAdminController extends BaseLikeAdminController
-{
-    protected int $adminId = 0;
-    protected array $adminInfo = [];
-
-    public function initialize()
-    {
-        $this->request->source = AdminTerminalEnum::PLATFORM;
-        if (isset($this->request->adminInfo) && $this->request->adminInfo) {
-            $this->adminInfo = $this->request->adminInfo;
-            $this->adminId = $this->request->adminInfo['admin_id'];
-        }
-    }
-
-}

+ 0 - 73
app/adminapi/controller/ConfigController.php

@@ -1,73 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller;
-
-use app\adminapi\logic\auth\AuthLogic;
-use app\adminapi\logic\ConfigLogic;
-
-/**
- * 配置控制器
- * Class ConfigController
- * @package app\adminapi\controller
- */
-class ConfigController extends BaseAdminController
-{
-    public array $notNeedLogin = ['getConfig', 'dict'];
-
-
-    /**
-     * @notes 基础配置
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2021/12/31 11:01
-     */
-    public function getConfig()
-    {
-        $data = ConfigLogic::getConfig();
-        return $this->data($data);
-    }
-
-
-    /**
-     * @notes 根据类型获取字典数据
-     * @return \think\response\Json
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author 段誉
-     * @date 2022/9/27 19:10
-     */
-    public function dict()
-    {
-        $type = $this->request->get('type', '');
-        $data = ConfigLogic::getDictByType($type);
-        return $this->data($data);
-    }
-
-    /**
-     * @notes 根据字段类型获取字典配置数据
-     * @return \think\response\Json
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     */
-    public function dictConfig()
-    {
-        $value = $this->request->get('value', '');
-        $data = ConfigLogic::getDictConfig($value);
-        return $this->data($data);
-    }
-
-}

+ 0 - 50
app/adminapi/controller/DownloadController.php

@@ -1,50 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller;
-
-
-use app\common\cache\ExportCache;
-use app\common\service\JsonService;
-
-class DownloadController extends BaseAdminController
-{
-
-    public array $notNeedLogin = ['export'];
-
-    /**
-     * @notes 导出文件
-     * @return \think\response\File|\think\response\Json
-     * @author 段誉
-     * @date 2022/11/24 16:10
-     */
-    public function export()
-    {
-        //获取文件缓存的key
-        $fileKey = request()->get('file');
-
-        //通过文件缓存的key获取文件储存的路径
-        $exportCache = new ExportCache();
-        $fileInfo = $exportCache->getFile($fileKey);
-
-        if (empty($fileInfo)) {
-            return JsonService::fail('下载文件不存在');
-        }
-
-        //下载前删除缓存
-        $exportCache->delete($fileKey);
-
-        return download($fileInfo['src'] . $fileInfo['name'], $fileInfo['name']);
-    }
-}

+ 0 - 137
app/adminapi/controller/FileController.php

@@ -1,137 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller;
-
-
-use app\adminapi\lists\file\FileCateLists;
-use app\adminapi\lists\file\FileLists;
-use app\adminapi\logic\FileLogic;
-use app\adminapi\validate\FileValidate;
-use think\response\Json;
-
-/**文件管理
- * Class FileController
- * @package app\adminapi\controller
- */
-class FileController extends BaseAdminController
-{
-
-    /**
-     * @notes 文件列表
-     * @return Json
-     * @author 段誉
-     * @date 2021/12/29 14:30
-     */
-    public function lists()
-    {
-        return $this->dataLists(new FileLists());
-    }
-
-
-    /**
-     * @notes 文件移动成功
-     * @return Json
-     * @author 段誉
-     * @date 2021/12/29 14:30
-     */
-    public function move()
-    {
-        $params = (new FileValidate())->post()->goCheck('move');
-        FileLogic::move($params);
-        return $this->success('移动成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 重命名文件
-     * @return Json
-     * @author 段誉
-     * @date 2021/12/29 14:31
-     */
-    public function rename()
-    {
-        $params = (new FileValidate())->post()->goCheck('rename');
-        FileLogic::rename($params);
-        return $this->success('重命名成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 删除文件
-     * @return Json
-     * @author 段誉
-     * @date 2021/12/29 14:31
-     */
-    public function delete()
-    {
-        $params = (new FileValidate())->post()->goCheck('delete');
-        FileLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 分类列表
-     * @return Json
-     * @author 段誉
-     * @date 2021/12/29 14:31
-     */
-    public function listCate()
-    {
-        return $this->dataLists(new FileCateLists());
-    }
-
-
-    /**
-     * @notes 添加文件分类
-     * @return Json
-     * @author 段誉
-     * @date 2021/12/29 14:31
-     */
-    public function addCate()
-    {
-        $params = (new FileValidate())->post()->goCheck('addCate');
-        FileLogic::addCate($params);
-        return $this->success('添加成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 编辑文件分类
-     * @return Json
-     * @author 段誉
-     * @date 2021/12/29 14:31
-     */
-    public function editCate()
-    {
-        $params = (new FileValidate())->post()->goCheck('editCate');
-        FileLogic::editCate($params);
-        return $this->success('编辑成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 删除文件分类
-     * @return Json
-     * @author 段誉
-     * @date 2021/12/29 14:32
-     */
-    public function delCate()
-    {
-        $params = (new FileValidate())->post()->goCheck('id');
-        FileLogic::delCate($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-}

+ 0 - 59
app/adminapi/controller/LoginController.php

@@ -1,59 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller;
-
-use app\adminapi\logic\LoginLogic;
-use app\adminapi\validate\LoginValidate;
-
-/**
- * 管理员登录控制器
- * Class LoginController
- * @package app\adminapi\controller
- */
-class LoginController extends BaseAdminController
-{
-    public array $notNeedLogin = ['account'];
-
-    /**
-     * @notes 账号登录
-     * @date 2021/6/30 17:01
-     * @return \think\response\Json
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author 令狐冲
-     */
-    public function account()
-    {
-        $params = (new LoginValidate())->post()->goCheck();
-        return $this->data((new LoginLogic())->login($params));
-    }
-
-    /**
-     * @notes 退出登录
-     * @return \think\response\Json
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author 令狐冲
-     * @date 2021/7/8 00:36
-     */
-    public function logout()
-    {
-        //退出登录情况特殊,只有成功的情况,也不需要token验证
-        (new LoginLogic())->logout($this->adminInfo);
-        return $this->success();
-    }
-}

+ 0 - 80
app/adminapi/controller/UploadController.php

@@ -1,80 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller;
-
-
-use app\common\service\UploadService;
-use Exception;
-use think\response\Json;
-
-/**
- * 上传文件
- * Class UploadController
- * @package app\adminapi\controller
- */
-class UploadController extends BaseAdminController
-{
-    /**
-     * @notes 上传图片
-     * @return Json
-     * @author 段誉
-     * @date 2021/12/29 16:27
-     */
-    public function image()
-    {
-        try {
-            $cid = $this->request->post('cid', 0);
-            $result = UploadService::image($cid);
-            return $this->success('上传成功', $result);
-        } catch (Exception $e) {
-            return $this->fail($e->getMessage());
-        }
-    }
-
-    /**
-     * @notes 上传视频
-     * @return Json
-     * @author 段誉
-     * @date 2021/12/29 16:27
-     */
-    public function video()
-    {
-        try {
-            $cid = $this->request->post('cid', 0);
-            $result = UploadService::video($cid);
-            return $this->success('上传成功', $result);
-        } catch (Exception $e) {
-            return $this->fail($e->getMessage());
-        }
-    }
-
-    /**
-     * @notes 上传文件
-     * @return Json
-     * @author dw
-     * @date 2023/06/26
-     */
-    public function file()
-    {
-        try {
-            $cid = $this->request->post('cid', 0);
-            $result = UploadService::file($cid);
-            return $this->success('上传成功', $result);
-        } catch (Exception $e) {
-            return $this->fail($e->getMessage());
-        }
-    }
-
-}

+ 0 - 38
app/adminapi/controller/WorkbenchController.php

@@ -1,38 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller;
-
-use app\adminapi\logic\WorkbenchLogic;
-
-/**
- * 工作台
- * Class WorkbenchCotroller
- * @package app\adminapi\controller
- */
-class WorkbenchController extends BaseAdminController
-{
-
-    /**
-     * @notes 工作台
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2021/12/29 17:01
-     */
-    public function index()
-    {
-        $result = WorkbenchLogic::index();
-        return $this->data($result);
-    }
-}

+ 0 - 134
app/adminapi/controller/article/ArticleCateController.php

@@ -1,134 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\article;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\article\ArticleCateLists;
-use app\adminapi\logic\article\ArticleCateLogic;
-use app\adminapi\validate\article\ArticleCateValidate;
-
-/**
- * 资讯分类管理控制器
- * Class ArticleCateController
- * @package app\adminapi\controller\article
- */
-class ArticleCateController extends BaseAdminController
-{
-
-    /**
-     * @notes  查看资讯分类列表
-     * @return \think\response\Json
-     * @author heshihu
-     * @date 2022/2/21 17:11
-     */
-    public function lists()
-    {
-        return $this->dataLists(new ArticleCateLists());
-    }
-
-
-    /**
-     * @notes  添加资讯分类
-     * @return \think\response\Json
-     * @author heshihu
-     * @date 2022/2/21 17:31
-     */
-    public function add()
-    {
-        $params = (new ArticleCateValidate())->post()->goCheck('add');
-        ArticleCateLogic::add($params);
-        return $this->success('添加成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes  编辑资讯分类
-     * @return \think\response\Json
-     * @author heshihu
-     * @date 2022/2/21 17:49
-     */
-    public function edit()
-    {
-        $params = (new ArticleCateValidate())->post()->goCheck('edit');
-        $result = ArticleCateLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(ArticleCateLogic::getError());
-    }
-
-
-    /**
-     * @notes  删除资讯分类
-     * @return \think\response\Json
-     * @author heshihu
-     * @date 2022/2/21 17:52
-     */
-    public function delete()
-    {
-        $params = (new ArticleCateValidate())->post()->goCheck('delete');
-        ArticleCateLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes  资讯分类详情
-     * @return \think\response\Json
-     * @author heshihu
-     * @date 2022/2/21 17:54
-     */
-    public function detail()
-    {
-        $params = (new ArticleCateValidate())->goCheck('detail');
-        $result = ArticleCateLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-    /**
-     * @notes  更改资讯分类状态
-     * @return \think\response\Json
-     * @author heshihu
-     * @date 2022/2/21 10:15
-     */
-    public function updateStatus()
-    {
-        $params = (new ArticleCateValidate())->post()->goCheck('status');
-        $result = ArticleCateLogic::updateStatus($params);
-        if (true === $result) {
-            return $this->success('修改成功', [], 1, 1);
-        }
-        return $this->fail(ArticleCateLogic::getError());
-    }
-
-
-    /**
-     * @notes 获取文章分类
-     * @return \think\response\Json
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author 段誉
-     * @date 2022/10/13 10:54
-     */
-    public function all()
-    {
-        $result = ArticleCateLogic::getAllData();
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 114
app/adminapi/controller/article/ArticleController.php

@@ -1,114 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\article;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\article\ArticleLists;
-use app\adminapi\logic\article\ArticleLogic;
-use app\adminapi\validate\article\ArticleValidate;
-
-/**
- * 资讯管理控制器
- * Class ArticleController
- * @package app\adminapi\controller\article
- */
-class ArticleController extends BaseAdminController
-{
-
-    /**
-     * @notes  查看资讯列表
-     * @return \think\response\Json
-     * @author heshihu
-     * @date 2022/2/22 9:47
-     */
-    public function lists()
-    {
-        return $this->dataLists(new ArticleLists());
-    }
-
-    /**
-     * @notes  添加资讯
-     * @return \think\response\Json
-     * @author heshihu
-     * @date 2022/2/22 9:57
-     */
-    public function add()
-    {
-        $params = (new ArticleValidate())->post()->goCheck('add');
-        ArticleLogic::add($params);
-        return $this->success('添加成功', [], 1, 1);
-    }
-
-    /**
-     * @notes  编辑资讯
-     * @return \think\response\Json
-     * @author heshihu
-     * @date 2022/2/22 10:12
-     */
-    public function edit()
-    {
-        $params = (new ArticleValidate())->post()->goCheck('edit');
-        $result = ArticleLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(ArticleLogic::getError());
-    }
-
-    /**
-     * @notes  删除资讯
-     * @return \think\response\Json
-     * @author heshihu
-     * @date 2022/2/22 10:17
-     */
-    public function delete()
-    {
-        $params = (new ArticleValidate())->post()->goCheck('delete');
-        ArticleLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-    /**
-     * @notes  资讯详情
-     * @return \think\response\Json
-     * @author heshihu
-     * @date 2022/2/22 10:15
-     */
-    public function detail()
-    {
-        $params = (new ArticleValidate())->goCheck('detail');
-        $result = ArticleLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-    /**
-     * @notes  更改资讯状态
-     * @return \think\response\Json
-     * @author heshihu
-     * @date 2022/2/22 10:18
-     */
-    public function updateStatus()
-    {
-        $params = (new ArticleValidate())->post()->goCheck('status');
-        $result = ArticleLogic::updateStatus($params);
-        if (true === $result) {
-            return $this->success('修改成功', [], 1, 1);
-        }
-        return $this->fail(ArticleLogic::getError());
-    }
-
-
-}

+ 0 - 138
app/adminapi/controller/auth/AdminController.php

@@ -1,138 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\auth;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\auth\AdminLists;
-use app\adminapi\validate\auth\AdminValidate;
-use app\adminapi\logic\auth\AdminLogic;
-use app\adminapi\validate\auth\editSelfValidate;
-
-/**
- * 管理员控制器
- * Class AdminController
- * @package app\adminapi\controller\auth
- */
-class AdminController extends BaseAdminController
-{
-
-    /**
-     * @notes 查看管理员列表
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2021/12/29 9:55
-     */
-    public function lists()
-    {
-        return $this->dataLists(new AdminLists());
-    }
-
-
-    /**
-     * @notes 添加管理员
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2021/12/29 10:21
-     */
-    public function add()
-    {
-        $params = (new AdminValidate())->post()->goCheck('add');
-        $result = AdminLogic::add($params);
-        if (true === $result) {
-            return $this->success('操作成功', [], 1, 1);
-        }
-        return $this->fail(AdminLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑管理员
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2021/12/29 11:03
-     */
-    public function edit()
-    {
-        $params = (new AdminValidate())->post()->goCheck('edit');
-        $result = AdminLogic::edit($params);
-        if (true === $result) {
-            return $this->success('操作成功', [], 1, 1);
-        }
-        return $this->fail(AdminLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除管理员
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2021/12/29 11:03
-     */
-    public function delete()
-    {
-        $params = (new AdminValidate())->post()->goCheck('delete');
-        $result = AdminLogic::delete($params);
-        if (true === $result) {
-            return $this->success('操作成功', [], 1, 1);
-        }
-        return $this->fail(AdminLogic::getError());
-    }
-
-
-    /**
-     * @notes 查看管理员详情
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2021/12/29 11:07
-     */
-    public function detail()
-    {
-        $params = (new AdminValidate())->goCheck('detail');
-        $result = AdminLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-    /**
-     * @notes 获取当前管理员信息
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2021/12/31 10:53
-     */
-    public function mySelf()
-    {
-        $result = cache('mySelf:'.$this->adminId);
-        if(empty($result) || !env('APP_DEBUG')){
-            $result = AdminLogic::detail(['id' => $this->adminId], 'auth');
-            cache('mySelf:'.$this->adminId,$result);
-        }
-        return $this->data($result);
-    }
-
-
-    /**
-     * @notes 编辑超级管理员信息
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/4/8 17:54
-     */
-    public function editSelf()
-    {
-        $params = (new editSelfValidate())->post()->goCheck('', ['admin_id' => $this->adminId]);
-        $result = AdminLogic::editSelf($params);
-        return $this->success('操作成功', [], 1, 1);
-    }
-
-}

+ 0 - 142
app/adminapi/controller/auth/MenuController.php

@@ -1,142 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\auth;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\auth\MenuLists;
-use app\adminapi\logic\auth\MenuLogic;
-use app\adminapi\validate\auth\MenuValidate;
-
-
-/**
- * 系统菜单权限
- * Class MenuController
- * @package app\adminapi\controller\setting\system
- */
-class MenuController extends BaseAdminController
-{
-
-    /**
-     * @notes 获取菜单路由
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/6/29 17:41
-     */
-    public function route()
-    {
-        $result = MenuLogic::getMenuByAdminId($this->adminId);
-        return $this->data($result);
-    }
-
-
-    /**
-     * @notes 获取菜单列表
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/6/29 17:23
-     */
-    public function lists()
-    {
-        return $this->dataLists(new MenuLists());
-    }
-
-
-    /**
-     * @notes 菜单详情
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/6/30 10:07
-     */
-    public function detail()
-    {
-        $params = (new MenuValidate())->goCheck('detail');
-        return $this->data(MenuLogic::detail($params));
-    }
-
-
-    /**
-     * @notes 添加菜单
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/6/30 10:07
-     */
-    public function add()
-    {
-        $params = (new MenuValidate())->post()->goCheck('add');
-        MenuLogic::add($params);
-        return $this->success('操作成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 编辑菜单
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/6/30 10:07
-     */
-    public function edit()
-    {
-        $params = (new MenuValidate())->post()->goCheck('edit');
-        MenuLogic::edit($params);
-        return $this->success('操作成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 删除菜单
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/6/30 10:07
-     */
-    public function delete()
-    {
-        $params = (new MenuValidate())->post()->goCheck('delete');
-        MenuLogic::delete($params);
-        return $this->success('操作成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 更新状态
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/7/6 17:04
-     */
-    public function updateStatus()
-    {
-        $params = (new MenuValidate())->post()->goCheck('status');
-        MenuLogic::updateStatus($params);
-        return $this->success('操作成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取菜单数据
-     * @return \think\response\Json
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author 段誉
-     * @date 2022/10/13 11:03
-     */
-    public function all()
-    {
-        $result = MenuLogic::getAllData();
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 124
app/adminapi/controller/auth/RoleController.php

@@ -1,124 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\auth;
-
-use app\adminapi\{
-    logic\auth\RoleLogic,
-    lists\auth\RoleLists,
-    validate\auth\RoleValidate,
-    controller\BaseAdminController
-};
-
-/**
- * 角色控制器
- * Class RoleController
- * @package app\adminapi\controller\auth
- */
-class RoleController extends BaseAdminController
-{
-
-    /**
-     * @notes 查看角色列表
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2021/12/29 11:49
-     */
-    public function lists()
-    {
-        return $this->dataLists(new RoleLists());
-    }
-
-
-    /**
-     * @notes 添加权限
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2021/12/29 11:49
-     */
-    public function add()
-    {
-        $params = (new RoleValidate())->post()->goCheck('add');
-        $res = RoleLogic::add($params);
-        if (true === $res) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(RoleLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑角色
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2021/12/29 14:18
-     */
-    public function edit()
-    {
-        $params = (new RoleValidate())->post()->goCheck('edit');
-        $res = RoleLogic::edit($params);
-        if (true === $res) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(RoleLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除角色
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2021/12/29 14:18
-     */
-    public function delete()
-    {
-        $params = (new RoleValidate())->post()->goCheck('del');
-        RoleLogic::delete($params['id']);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 查看角色详情
-     * @return \think\response\Json
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author 段誉
-     * @date 2021/12/29 14:18
-     */
-    public function detail()
-    {
-        $params = (new RoleValidate())->goCheck('detail');
-        $detail = RoleLogic::detail($params['id']);
-        return $this->data($detail);
-    }
-
-
-    /**
-     * @notes 获取角色数据
-     * @return \think\response\Json
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author 段誉
-     * @date 2022/10/13 10:39
-     */
-    public function all()
-    {
-        $result = RoleLogic::getAllData();
-        return $this->data($result);
-    }
-
-}

+ 0 - 53
app/adminapi/controller/channel/AppSettingController.php

@@ -1,53 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\channel;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\logic\channel\AppSettingLogic;
-
-/**
- * APP设置控制器
- * Class AppSettingController
- * @package app\adminapi\controller\setting\app
- */
-class AppSettingController extends BaseAdminController
-{
-
-    /**
-     * @notes 获取App设置
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 10:24
-     */
-    public function getConfig()
-    {
-        $result = AppSettingLogic::getConfig();
-        return $this->data($result);
-    }
-
-
-    /**
-     * @notes App设置
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 10:25
-     */
-    public function setConfig()
-    {
-        $params = $this->request->post();
-        AppSettingLogic::setConfig($params);
-        return $this->success('操作成功', [], 1, 1);
-    }
-}

+ 0 - 71
app/adminapi/controller/channel/MnpSettingsController.php

@@ -1,71 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\channel;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\logic\channel\MnpSettingsLogic;
-use app\adminapi\validate\channel\MnpSettingsValidate;
-
-/**
- * 小程序设置
- * Class MnpSettingsController
- * @package app\adminapi\controller\channel
- */
-class MnpSettingsController extends BaseAdminController
-{
-    //客户端微信小程序
-    /**
-     * @notes 获取小程序配置
-     * @return \think\response\Json
-     */
-    public function getConfig()
-    {
-        $result = (new MnpSettingsLogic())->getConfig();
-        return $this->data($result);
-    }
-
-    /**
-     * @notes 设置小程序配置
-     * @return \think\response\Json
-     */
-    public function setConfig()
-    {
-        $params = (new MnpSettingsValidate())->post()->goCheck();
-        (new MnpSettingsLogic())->setConfig($params);
-        return $this->success('操作成功', [], 1, 1);
-    }
-
-    //工程师端微信小程序
-    /**
-     * @notes 获取小程序配置
-     * @return \think\response\Json
-     */
-    public function getWorkerConfig()
-    {
-        $result = (new MnpSettingsLogic())->getWorkerConfig();
-        return $this->data($result);
-    }
-
-    /**
-     * @notes 设置小程序配置
-     * @return \think\response\Json
-     */
-    public function setWorkerConfig()
-    {
-        $params = (new MnpSettingsValidate())->post()->goCheck();
-        (new MnpSettingsLogic())->setWorkerConfig($params);
-        return $this->success('操作成功', [], 1, 1);
-    }
-}

+ 0 - 74
app/adminapi/controller/channel/OfficialAccountMenuController.php

@@ -1,74 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\channel;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\logic\channel\OfficialAccountMenuLogic;
-
-/**
- * 微信公众号菜单控制器
- * Class OfficialAccountMenuController
- * @package app\adminapi\controller\channel
- */
-class OfficialAccountMenuController extends BaseAdminController
-{
-
-    /**
-     * @notes 保存菜单
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 10:41
-     */
-    public function save()
-    {
-        $params = $this->request->post();
-        $result = OfficialAccountMenuLogic::save($params);
-        if(false === $result) {
-            return $this->fail(OfficialAccountMenuLogic::getError());
-        }
-        return $this->success('保存成功',[],1,1);
-    }
-
-
-    /**
-     * @notes 保存发布菜单
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 10:42
-     */
-    public function saveAndPublish()
-    {
-        $params = $this->request->post();
-        $result = OfficialAccountMenuLogic::saveAndPublish($params);
-        if($result) {
-            return $this->success('保存并发布成功',[],1,1);
-        }
-        return $this->fail(OfficialAccountMenuLogic::getError());
-    }
-
-
-
-    /**
-     * @notes 查看菜单详情
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 10:42
-     */
-    public function detail()
-    {
-        $result = OfficialAccountMenuLogic::detail();
-        return $this->data($result);
-    }
-}

+ 0 - 148
app/adminapi/controller/channel/OfficialAccountReplyController.php

@@ -1,148 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\channel;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\channel\OfficialAccountReplyLists;
-use app\adminapi\logic\channel\OfficialAccountReplyLogic;
-use app\adminapi\validate\channel\OfficialAccountReplyValidate;
-
-/**
- * 微信公众号回复控制器
- * Class OfficialAccountReplyController
- * @package app\adminapi\controller\channel
- */
-class OfficialAccountReplyController extends BaseAdminController
-{
-
-    public array $notNeedLogin = ['index'];
-
-
-    /**
-     * @notes 查看回复列表(关注/关键词/默认)
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 10:58
-     */
-    public function lists()
-    {
-        return $this->dataLists(new OfficialAccountReplyLists());
-    }
-
-
-    /**
-     * @notes 添加回复(关注/关键词/默认)
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 10:58
-     */
-    public function add()
-    {
-        $params = (new OfficialAccountReplyValidate())->post()->goCheck('add');
-        $result = OfficialAccountReplyLogic::add($params);
-        if ($result) {
-            return $this->success('操作成功', [], 1, 1);
-        }
-        return $this->fail(OfficialAccountReplyLogic::getError());
-    }
-
-
-    /**
-     * @notes 查看回复详情
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 10:58
-     */
-    public function detail()
-    {
-        $params = (new OfficialAccountReplyValidate())->goCheck('detail');
-        $result = OfficialAccountReplyLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-    /**
-     * @notes 编辑回复(关注/关键词/默认)
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 10:58
-     */
-    public function edit()
-    {
-        $params = (new OfficialAccountReplyValidate())->post()->goCheck('edit');
-        $result = OfficialAccountReplyLogic::edit($params);
-        if ($result) {
-            return $this->success('操作成功', [], 1, 1);
-        }
-        return $this->fail(OfficialAccountReplyLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除回复(关注/关键词/默认)
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 10:59
-     */
-    public function delete()
-    {
-        $params = (new OfficialAccountReplyValidate())->post()->goCheck('delete');
-        OfficialAccountReplyLogic::delete($params);
-        return $this->success('操作成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 更新排序
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 10:59
-     */
-    public function sort()
-    {
-        $params = (new OfficialAccountReplyValidate())->post()->goCheck('sort');
-        OfficialAccountReplyLogic::sort($params);
-        return $this->success('操作成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 更新状态
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 10:59
-     */
-    public function status()
-    {
-        $params = (new OfficialAccountReplyValidate())->post()->goCheck('status');
-        OfficialAccountReplyLogic::status($params);
-        return $this->success('操作成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 微信公众号回调
-     * @throws \ReflectionException
-     * @author 段誉
-     * @date 2022/3/29 10:59
-     */
-    public function index()
-    {
-        $result = OfficialAccountReplyLogic::index();
-        return response($result->getBody())->header([
-            'Content-Type' => 'text/plain;charset=utf-8'
-        ]);
-    }
-}

+ 0 - 52
app/adminapi/controller/channel/OfficialAccountSettingController.php

@@ -1,52 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\channel;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\logic\channel\OfficialAccountSettingLogic;
-use app\adminapi\validate\channel\OfficialAccountSettingValidate;
-
-/**
- * 公众号设置
- * Class OfficialAccountSettingController
- * @package app\adminapi\controller\channel
- */
-class OfficialAccountSettingController extends BaseAdminController
-{
-    /**
-     * @notes 获取公众号配置
-     * @return \think\response\Json
-     * @author ljj
-     * @date 2022/2/16 10:09 上午
-     */
-    public function getConfig()
-    {
-        $result = (new OfficialAccountSettingLogic())->getConfig();
-        return $this->data($result);
-    }
-
-    /**
-     * @notes 设置公众号配置
-     * @return \think\response\Json
-     * @author ljj
-     * @date 2022/2/16 10:09 上午
-     */
-    public function setConfig()
-    {
-        $params = (new OfficialAccountSettingValidate())->post()->goCheck();
-        (new OfficialAccountSettingLogic())->setConfig($params);
-        return $this->success('操作成功',[],1,1);
-    }
-}

+ 0 - 54
app/adminapi/controller/channel/OpenSettingController.php

@@ -1,54 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\channel;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\logic\channel\OpenSettingLogic;
-use app\adminapi\validate\channel\OpenSettingValidate;
-
-/**
- * 微信开放平台
- * Class AppSettingController
- * @package app\adminapi\controller\setting\app
- */
-class OpenSettingController extends BaseAdminController
-{
-
-    /**
-     * @notes 获取微信开放平台设置
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 11:03
-     */
-    public function getConfig()
-    {
-        $result = OpenSettingLogic::getConfig();
-        return $this->data($result);
-    }
-
-
-    /**
-     * @notes 微信开放平台设置
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 11:03
-     */
-    public function setConfig()
-    {
-        $params = (new OpenSettingValidate())->post()->goCheck();
-        OpenSettingLogic::setConfig($params);
-        return $this->success('操作成功', [], 1, 1);
-    }
-}

+ 0 - 54
app/adminapi/controller/channel/WebPageSettingController.php

@@ -1,54 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\channel;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\logic\channel\WebPageSettingLogic;
-use app\adminapi\validate\channel\WebPageSettingValidate;
-
-/**
- * H5设置控制器
- * Class HFiveSettingController
- * @package app\adminapi\controller\setting\h5
- */
-class WebPageSettingController extends BaseAdminController
-{
-
-    /**
-     * @notes 获取H5设置
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 10:36
-     */
-    public function getConfig()
-    {
-        $result = WebPageSettingLogic::getConfig();
-        return $this->data($result);
-    }
-
-
-    /**
-     * @notes H5设置
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 10:36
-     */
-    public function setConfig()
-    {
-        $params = (new WebPageSettingValidate())->post()->goCheck();
-        WebPageSettingLogic::setConfig($params);
-        return $this->success('操作成功', [], 1, 1);
-    }
-}

+ 0 - 108
app/adminapi/controller/coupon/CouponRulesController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\coupon;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\coupon\CouponRulesLists;
-use app\adminapi\logic\coupon\CouponRulesLogic;
-use app\adminapi\validate\coupon\CouponRulesValidate;
-
-
-/**
- * CouponRules控制器
- * Class CouponRulesController
- * @package app\adminapi\controller\coupon
- */
-class CouponRulesController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/18 10:11
-     */
-    public function lists()
-    {
-        return $this->dataLists(new CouponRulesLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/18 10:11
-     */
-    public function add()
-    {
-        $params = (new CouponRulesValidate())->post()->goCheck('add');
-        $result = CouponRulesLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(CouponRulesLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/18 10:11
-     */
-    public function edit()
-    {
-        $params = (new CouponRulesValidate())->post()->goCheck('edit');
-        $result = CouponRulesLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(CouponRulesLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/18 10:11
-     */
-    public function delete()
-    {
-        $params = (new CouponRulesValidate())->post()->goCheck('delete');
-        CouponRulesLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/18 10:11
-     */
-    public function detail()
-    {
-        $params = (new CouponRulesValidate())->goCheck('detail');
-        $result = CouponRulesLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 108
app/adminapi/controller/coupon/UserCouponController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\coupon;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\coupon\UserCouponLists;
-use app\adminapi\logic\coupon\UserCouponLogic;
-use app\adminapi\validate\coupon\UserCouponValidate;
-
-
-/**
- * UserCoupon控制器
- * Class UserCouponController
- * @package app\adminapi\controller
- */
-class UserCouponController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/05/28 11:42
-     */
-    public function lists()
-    {
-        return $this->dataLists(new UserCouponLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/05/28 11:42
-     */
-    public function add()
-    {
-        $params = (new UserCouponValidate())->post()->goCheck('add');
-        $result = UserCouponLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(UserCouponLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/05/28 11:42
-     */
-    public function edit()
-    {
-        $params = (new UserCouponValidate())->post()->goCheck('edit');
-        $result = UserCouponLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(UserCouponLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/05/28 11:42
-     */
-    public function delete()
-    {
-        $params = (new UserCouponValidate())->post()->goCheck('delete');
-        UserCouponLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/05/28 11:42
-     */
-    public function detail()
-    {
-        $params = (new UserCouponValidate())->goCheck('detail');
-        $result = UserCouponLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 135
app/adminapi/controller/crontab/CrontabController.php

@@ -1,135 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\crontab;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\crontab\CrontabLists;
-use app\adminapi\logic\crontab\CrontabLogic;
-use app\adminapi\validate\crontab\CrontabValidate;
-
-/**
- * 定时任务控制器
- * Class CrontabController
- * @package app\adminapi\controller\crontab
- */
-class CrontabController extends BaseAdminController
-{
-    /**
-     * @notes 定时任务列表
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 14:27
-     */
-    public function lists()
-    {
-        return $this->dataLists(new CrontabLists());
-    }
-
-
-    /**
-     * @notes 添加定时任务
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 14:27
-     */
-    public function add()
-    {
-        $params = (new CrontabValidate())->post()->goCheck('add');
-        $result = CrontabLogic::add($params);
-        if($result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(CrontabLogic::getError());
-    }
-
-
-    /**
-     * @notes 查看定时任务详情
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 14:27
-     */
-    public function detail()
-    {
-        $params = (new CrontabValidate())->goCheck('detail');
-        $result = CrontabLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-    /**
-     * @notes 编辑定时任务
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 14:27
-     */
-    public function edit()
-    {
-        $params = (new CrontabValidate())->post()->goCheck('edit');
-        $result = CrontabLogic::edit($params);
-        if($result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(CrontabLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除定时任务
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 14:27
-     */
-    public function delete()
-    {
-        $params = (new CrontabValidate())->post()->goCheck('delete');
-        $result = CrontabLogic::delete($params);
-        if($result) {
-            return $this->success('删除成功', [], 1, 1);
-        }
-        return $this->fail('删除失败');
-    }
-
-
-    /**
-     * @notes 操作定时任务
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 14:28
-     */
-    public function operate()
-    {
-        $params = (new CrontabValidate())->post()->goCheck('operate');
-        $result = CrontabLogic::operate($params);
-        if($result) {
-            return $this->success('操作成功', [], 1, 1);
-        }
-        return $this->fail(CrontabLogic::getError());
-    }
-
-
-    /**
-     * @notes 获取规则执行时间
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 14:28
-     */
-    public function expression()
-    {
-        $params = (new CrontabValidate())->goCheck('expression');
-        $result = CrontabLogic::expression($params);
-        return $this->data($result);
-    }
-}

+ 0 - 32
app/adminapi/controller/data_analysis/DataAnalysisController.php

@@ -1,32 +0,0 @@
-<?php
-namespace app\adminapi\controller\data_analysis;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\data_analysis\ServiceOrdersNumberLists;
-use app\adminapi\logic\data_analysis\DataAnalysisLogic;
-
-/**
- * DataAnalysis控制器
- * Class DataAnalysisController
- * @package app\adminapi\controller
- */
-class DataAnalysisController extends BaseAdminController
-{
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/15 17:21
-     */
-    public function serviceOrdersNumberLists()
-    {
-        return $this->success('', DataAnalysisLogic::serviceOrdersNumber($this->request->post()), 1, 1);
-    }
-
-    public function serviceOrdersTotalLists()
-    {
-        return $this->success('', ['lists'=>DataAnalysisLogic::serviceOrdersTotal($this->request->post())], 1, 1);
-    }
-
-
-}

+ 0 - 55
app/adminapi/controller/decorate/DataController.php

@@ -1,55 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-namespace app\adminapi\controller\decorate;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\logic\decorate\DecorateDataLogic;
-use think\response\Json;
-
-/**
- * 装修-数据
- * Class DataController
- * @package app\adminapi\controller\decorate
- */
-class DataController extends BaseAdminController
-{
-    /**
-     * @notes 文章列表
-     * @return Json
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author mjf
-     * @date 2024/3/14 18:13
-     */
-    public function article(): Json
-    {
-        $limit = $this->request->get('limit/d', 10);
-        $result = DecorateDataLogic::getArticleLists($limit);
-        return $this->success('获取成功', $result);
-    }
-
-    /**
-     * @notes pc设置
-     * @return Json
-     * @author mjf
-     * @date 2024/3/14 18:13
-     */
-    public function pc(): Json
-    {
-        $result = DecorateDataLogic::pc();
-        return $this->data($result);
-    }
-
-}

+ 0 - 61
app/adminapi/controller/decorate/PageController.php

@@ -1,61 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-namespace app\adminapi\controller\decorate;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\logic\decorate\DecoratePageLogic;
-use app\adminapi\validate\decorate\DecoratePageValidate;
-
-
-/**
- * 装修页面
- * Class DecoratePageController
- * @package app\adminapi\controller\decorate
- */
-class PageController extends BaseAdminController
-{
-
-    /**
-     * @notes 获取装修修页面详情
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/9/14 18:43
-     */
-    public function detail()
-    {
-        $id = $this->request->get('id/d');
-        $result = DecoratePageLogic::getDetail($id);
-        return $this->success('获取成功', $result);
-    }
-
-
-    /**
-     * @notes 保存装修配置
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/9/15 9:57
-     */
-    public function save()
-    {
-        $params = (new DecoratePageValidate())->post()->goCheck();
-        $result = DecoratePageLogic::save($params);
-        if (false === $result) {
-            return $this->fail(DecoratePageLogic::getError());
-        }
-        return $this->success('操作成功', [], 1, 1);
-    }
-
-
-}

+ 0 - 58
app/adminapi/controller/decorate/TabbarController.php

@@ -1,58 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-namespace app\adminapi\controller\decorate;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\logic\decorate\DecorateTabbarLogic;
-
-/**
- * 装修-底部导航
- * Class DecorateTabbarController
- * @package app\adminapi\controller\decorate
- */
-class TabbarController extends BaseAdminController
-{
-
-    /**
-     * @notes 底部导航详情
-     * @return \think\response\Json
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author 段誉
-     * @date 2022/9/7 16:39
-     */
-    public function detail()
-    {
-        $data = DecorateTabbarLogic::detail();
-        return $this->success('', $data);
-    }
-
-
-    /**
-     * @notes 底部导航保存
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/9/6 9:58
-     */
-    public function save()
-    {
-        $params = $this->request->post();
-        DecorateTabbarLogic::save($params);
-        return $this->success('操作成功', [], 1, 1);
-    }
-
-
-}

+ 0 - 134
app/adminapi/controller/dept/DeptController.php

@@ -1,134 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\dept;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\logic\dept\DeptLogic;
-use app\adminapi\validate\dept\DeptValidate;
-
-/**
- * 部门管理控制器
- * Class DeptController
- * @package app\adminapi\controller\dept
- */
-class DeptController extends BaseAdminController
-{
-
-    /**
-     * @notes 部门列表
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/5/25 18:07
-     */
-    public function lists()
-    {
-        $params = $this->request->get();
-        $result = DeptLogic::lists($params);
-        return $this->success('',$result);
-    }
-
-
-    /**
-     * @notes 上级部门
-     * @return \think\response\Json
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author 段誉
-     * @date 2022/5/26 18:36
-     */
-    public function leaderDept()
-    {
-        $result = DeptLogic::leaderDept();
-        return $this->success('',$result);
-    }
-
-
-    /**
-     * @notes 添加部门
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/5/25 18:40
-     */
-    public function add()
-    {
-        $params = (new DeptValidate())->post()->goCheck('add');
-        DeptLogic::add($params);
-        return $this->success('添加成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 编辑部门
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/5/25 18:41
-     */
-    public function edit()
-    {
-        $params = (new DeptValidate())->post()->goCheck('edit');
-        $result = DeptLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(DeptLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除部门
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/5/25 18:41
-     */
-    public function delete()
-    {
-        $params = (new DeptValidate())->post()->goCheck('delete');
-        DeptLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取部门详情
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/5/25 18:41
-     */
-    public function detail()
-    {
-        $params = (new DeptValidate())->goCheck('detail');
-        $result = DeptLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-    /**
-     * @notes 获取部门数据
-     * @return \think\response\Json
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author 段誉
-     * @date 2022/10/13 10:28
-     */
-    public function all()
-    {
-        $result = DeptLogic::getAllData();
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 118
app/adminapi/controller/dept/JobsController.php

@@ -1,118 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\dept;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\dept\JobsLists;
-use app\adminapi\logic\dept\JobsLogic;
-use app\adminapi\validate\dept\JobsValidate;
-
-
-/**
- * 岗位管理控制器
- * Class JobsController
- * @package app\adminapi\controller\dept
- */
-class JobsController extends BaseAdminController
-{
-
-    /**
-     * @notes 岗位列表
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/5/26 10:00
-     */
-    public function lists()
-    {
-        return $this->dataLists(new JobsLists());
-    }
-
-
-    /**
-     * @notes 添加岗位
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/5/25 18:40
-     */
-    public function add()
-    {
-        $params = (new JobsValidate())->post()->goCheck('add');
-        JobsLogic::add($params);
-        return $this->success('添加成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 编辑岗位
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/5/25 18:41
-     */
-    public function edit()
-    {
-        $params = (new JobsValidate())->post()->goCheck('edit');
-        $result = JobsLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(JobsLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除岗位
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/5/25 18:41
-     */
-    public function delete()
-    {
-        $params = (new JobsValidate())->post()->goCheck('delete');
-        JobsLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取岗位详情
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/5/25 18:41
-     */
-    public function detail()
-    {
-        $params = (new JobsValidate())->goCheck('detail');
-        $result = JobsLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-    /**
-     * @notes 获取岗位数据
-     * @return \think\response\Json
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author 段誉
-     * @date 2022/10/13 10:31
-     */
-    public function all()
-    {
-        $result = JobsLogic::getAllData();
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 108
app/adminapi/controller/effective/EffectiveRulesController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\effective;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\effective\EffectiveRulesLists;
-use app\adminapi\logic\effective\EffectiveRulesLogic;
-use app\adminapi\validate\effective\EffectiveRulesValidate;
-
-
-/**
- * EffectiveRules控制器
- * Class EffectiveRulesController
- * @package app\adminapi\controller\effective
- */
-class EffectiveRulesController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/17 11:49
-     */
-    public function lists()
-    {
-        return $this->dataLists(new EffectiveRulesLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/17 11:49
-     */
-    public function add()
-    {
-        $params = (new EffectiveRulesValidate())->post()->goCheck('add');
-        $result = EffectiveRulesLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(EffectiveRulesLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/17 11:49
-     */
-    public function edit()
-    {
-        $params = (new EffectiveRulesValidate())->post()->goCheck('edit');
-        $result = EffectiveRulesLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(EffectiveRulesLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/17 11:49
-     */
-    public function delete()
-    {
-        $params = (new EffectiveRulesValidate())->post()->goCheck('delete');
-        EffectiveRulesLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/17 11:49
-     */
-    public function detail()
-    {
-        $params = (new EffectiveRulesValidate())->goCheck('detail');
-        $result = EffectiveRulesLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 111
app/adminapi/controller/effective/OrderEffectiveLogController.php

@@ -1,111 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\effective;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\effective\OrderEffectiveLogLists;
-use app\adminapi\logic\effective\OrderEffectiveLogLogic;
-use app\adminapi\validate\effective\OrderEffectiveLogValidate;
-
-
-/**
- * OrderEffectiveLog控制器
- * Class OrderEffectiveLogController
- * @package app\adminapi\controller
- */
-class OrderEffectiveLogController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/01/17 11:10
-     */
-    public function lists()
-    {
-        return $this->dataLists(new OrderEffectiveLogLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/01/17 11:10
-     */
-    public function add()
-    {
-        $params = (new OrderEffectiveLogValidate())->post()->goCheck('add');
-        $result = OrderEffectiveLogLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(OrderEffectiveLogLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/01/17 11:10
-     */
-    public function edit()
-    {
-        $params = (new OrderEffectiveLogValidate())->post()->goCheck('detail',[
-            'adminId' => $this->adminId,
-            'adminInfo' => $this->adminInfo
-        ]);
-        $result = OrderEffectiveLogLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(OrderEffectiveLogLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/01/17 11:10
-     */
-    public function delete()
-    {
-        $params = (new OrderEffectiveLogValidate())->post()->goCheck('delete');
-        OrderEffectiveLogLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/01/17 11:10
-     */
-    public function detail()
-    {
-        $params = (new OrderEffectiveLogValidate())->goCheck('detail');
-        $result = OrderEffectiveLogLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 108
app/adminapi/controller/equity/EquityConfigController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\equity;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\equity\EquityConfigLists;
-use app\adminapi\logic\equity\EquityConfigLogic;
-use app\adminapi\validate\equity\EquityConfigValidate;
-
-
-/**
- * EquityConfig控制器
- * Class EquityConfigController
- * @package app\adminapi\controller
- */
-class EquityConfigController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/19 10:45
-     */
-    public function lists()
-    {
-        return $this->dataLists(new EquityConfigLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/19 10:45
-     */
-    public function add()
-    {
-        $params = (new EquityConfigValidate())->post()->goCheck('add');
-        $result = EquityConfigLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(EquityConfigLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/19 10:45
-     */
-    public function edit()
-    {
-        $params = (new EquityConfigValidate())->post()->goCheck('edit');
-        $result = EquityConfigLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(EquityConfigLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/19 10:45
-     */
-    public function delete()
-    {
-        $params = (new EquityConfigValidate())->post()->goCheck('delete');
-        EquityConfigLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/19 10:45
-     */
-    public function detail()
-    {
-        $params = (new EquityConfigValidate())->goCheck('detail');
-        $result = EquityConfigLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 117
app/adminapi/controller/equity/EquityOrderController.php

@@ -1,117 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\equity;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\equity\EquityOrderLists;
-use app\adminapi\logic\equity\EquityOrderLogic;
-use app\adminapi\validate\equity\EquityOrderValidate;
-
-
-/**
- * EquityOrder控制器
- * Class EquityOrderController
- * @package app\adminapi\controller
- */
-class EquityOrderController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/25 13:32
-     */
-    public function lists()
-    {
-        return $this->dataLists(new EquityOrderLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/25 13:32
-     */
-    public function add()
-    {
-        $params = (new EquityOrderValidate())->post()->goCheck('add');
-        $result = EquityOrderLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(EquityOrderLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/25 13:32
-     */
-    public function edit()
-    {
-        $params = (new EquityOrderValidate())->post()->goCheck('edit');
-        $result = EquityOrderLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(EquityOrderLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/25 13:32
-     */
-    public function delete()
-    {
-        $params = (new EquityOrderValidate())->post()->goCheck('delete');
-        EquityOrderLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/25 13:32
-     */
-    public function detail()
-    {
-        $params = (new EquityOrderValidate())->goCheck('detail');
-        $result = EquityOrderLogic::detail($params);
-        return $this->data($result);
-    }
-
-    public function addOrder()
-    {
-        $params = (new EquityOrderValidate())->post()->goCheck('detail');
-        $result = EquityOrderLogic::addOrder($params);
-        if (false === $result) {
-            return $this->fail(EquityOrderLogic::getError());
-        }
-        return $this->success('下单成功', [], 1, 1);
-    }
-
-}

+ 0 - 132
app/adminapi/controller/equity/UserEquityController.php

@@ -1,132 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\equity;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\equity\UserEquityLists;
-use app\adminapi\logic\equity\UserEquityLogic;
-use app\adminapi\logic\export\ExportLogic;
-use app\adminapi\validate\equity\UserEquityValidate;
-use app\common\service\ExcelExportService;
-
-
-/**
- * UserEquity控制器
- * Class UserEquityController
- * @package app\adminapi\controller
- */
-class UserEquityController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/19 11:43
-     */
-    public function lists()
-    {
-        return $this->dataLists(new UserEquityLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/19 11:43
-     */
-    public function add()
-    {
-        $params = (new UserEquityValidate())->post()->goCheck('add');
-        $result = UserEquityLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(UserEquityLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/19 11:43
-     */
-    public function edit()
-    {
-        $params = (new UserEquityValidate())->post()->goCheck('edit');
-        $result = UserEquityLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(UserEquityLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/19 11:43
-     */
-    public function delete()
-    {
-        $params = (new UserEquityValidate())->post()->goCheck('delete');
-        UserEquityLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/19 11:43
-     */
-    public function detail()
-    {
-        $params = (new UserEquityValidate())->goCheck('detail');
-        $result = UserEquityLogic::detail($params);
-        return $this->data($result);
-    }
-
-    public function serviceWorkDetail()
-    {
-        $params = $this->request->param();
-        $result = UserEquityLogic::serviceWorkDetail($params);
-        return $this->data($result);
-    }
-    public function download()
-    {
-        $params = $this->request->post();
-        $filename = "权益卡列表";
-        $result = ExportLogic::add([
-            'download_type' => 3,
-            'params' => $params,
-            'name' => $filename,
-            'admin_id' => $this->adminId,
-        ]);
-        if (false === $result) {
-            return $this->fail(ExportLogic::getError());
-        }
-        // 暂时 - 立即生成导出文件
-        (new ExcelExportService)->download($result);
-        return $this->success('添加成功-'.$result, [], 1, 1);
-    }
-}

+ 0 - 132
app/adminapi/controller/export/ExportController.php

@@ -1,132 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\export;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\export\ExportLists;
-use app\adminapi\logic\export\ExportLogic;
-use app\adminapi\validate\export\ExportValidate;
-use app\common\service\ExcelExportService;
-
-
-/**
- * Export控制器
- * Class ExportController
- * @package app\adminapi\controller
- */
-class ExportController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/18 13:31
-     */
-    public function lists()
-    {
-        return $this->dataLists(new ExportLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/18 13:31
-     */
-    public function add()
-    {
-        $params = (new ExportValidate())->post()->goCheck('add');
-        $result = ExportLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(ExportLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/18 13:31
-     */
-    public function edit()
-    {
-        $params = (new ExportValidate())->post()->goCheck('edit');
-        $result = ExportLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(ExportLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/18 13:31
-     */
-    public function delete()
-    {
-        $params = (new ExportValidate())->post()->goCheck('delete');
-        ExportLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/18 13:31
-     */
-    public function detail()
-    {
-        $params = (new ExportValidate())->goCheck('detail');
-        $result = ExportLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-    /*
-     * @notes 通用下载
-     */
-    public function generalDownload()
-    {
-        $params = $this->request->get();
-        if(empty($params['download_type'])) return $this->fail('参数错误');
-        $params['admin_id'] = $this->adminId??0;
-        $result = ExportLogic::add([
-            'download_type' => $params['download_type']??0,
-            'params' => $params,
-            'name' => $params['download_name']??'',
-            'admin_id' => $this->adminId,
-        ]);
-        if (false === $result) {
-            return $this->fail(ExportLogic::getError());
-        }
-        // 暂时 - 立即生成导出文件
-        if(!isset($params['cmd'])) (new ExcelExportService)->download($result);
-        return $this->success('添加成功-'.$result, [], 1, 1);
-    }
-
-
-}

+ 0 - 117
app/adminapi/controller/external/DouyinOrderController.php

@@ -1,117 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\external;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\external\DouyinOrderLists;
-use app\adminapi\logic\external\DouyinOrderLogic;
-use app\adminapi\validate\external\DouyinOrderValidate;
-use app\api\service\DouYinService;
-
-
-/**
- * DouyinOrder控制器
- * Class DouyinOrderController
- * @package app\adminapi\controller
- */
-class DouyinOrderController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/05/23 13:40
-     */
-    public function lists()
-    {
-        return $this->dataLists(new DouyinOrderLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/05/23 13:40
-     */
-    public function add()
-    {
-        $params = (new DouyinOrderValidate())->post()->goCheck('add');
-        $result = DouyinOrderLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(DouyinOrderLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/05/23 13:40
-     */
-    public function edit()
-    {
-        $params = (new DouyinOrderValidate())->post()->goCheck('edit');
-        $result = DouyinOrderLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(DouyinOrderLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/05/23 13:40
-     */
-    public function delete()
-    {
-        $params = (new DouyinOrderValidate())->post()->goCheck('delete');
-        DouyinOrderLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/05/23 13:40
-     */
-    public function detail()
-    {
-        $params = (new DouyinOrderValidate())->goCheck('detail');
-        $result = DouyinOrderLogic::detail($params);
-        return $this->data($result);
-    }
-    public function refundExamine()
-    {
-        $params = $this->request->post();
-        $result = DouyinOrderLogic::refundExamine($params);
-        if($result == false){
-            return $this->fail(DouyinOrderLogic::getError());
-        }
-        return $this->success('操作成功', [], 1, 1);
-    }
-
-}

+ 0 - 134
app/adminapi/controller/external/ExternalConsultationController.php

@@ -1,134 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\external;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\external\ExternalConsultationLists;
-use app\adminapi\logic\external\ExternalConsultationLogic;
-use app\adminapi\validate\external\ExternalConsultationValidate;
-
-
-/**
- * ExternalConsultation控制器
- * Class ExternalConsultationController
- * @package app\adminapi\controller
- */
-class ExternalConsultationController extends BaseAdminController
-{
-    public array $notNeedLogin = ['order'];
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/04/23 17:10
-     */
-    public function lists()
-    {
-        return $this->dataLists(new ExternalConsultationLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/04/23 17:10
-     */
-    public function add()
-    {
-        $params = (new ExternalConsultationValidate())->post()->goCheck('add');
-        $result = ExternalConsultationLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(ExternalConsultationLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/04/23 17:10
-     */
-    public function edit()
-    {
-        $params = (new ExternalConsultationValidate())->post()->goCheck('edit');
-        $result = ExternalConsultationLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(ExternalConsultationLogic::getError());
-    }
-
-    public function order()
-    {
-        $params = (new ExternalConsultationValidate())->post()->goCheck('edit');
-        $result = ExternalConsultationLogic::order($params);
-        if (false === $result) {
-            return $this->fail(ExternalConsultationLogic::getError());
-
-        }
-        return $this->success('下单成功', [], 1, 1);
-    }
-
-
-    public function followLog()
-    {
-        $params = (new ExternalConsultationValidate())->post()->goCheck('edit');
-        $result = ExternalConsultationLogic::followLog($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(ExternalConsultationLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/04/23 17:10
-     */
-    public function delete()
-    {
-        $params = (new ExternalConsultationValidate())->post()->goCheck('delete');
-        ExternalConsultationLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/04/23 17:10
-     */
-    public function detail()
-    {
-        $params = (new ExternalConsultationValidate())->goCheck('detail');
-        $result = ExternalConsultationLogic::detail($params);
-        return $this->data($result);
-    }
-
-    public function selectConsultationNotific()
-    {
-        $notific_count = ExternalConsultationLogic::selectCache();
-        return $this->success('', ['type'=>'consultation','unique_code'=> md5($notific_count),'to_router'=>'/consumer/external_consultation','notific_count' => $notific_count], 1, 1);
-    }
-
-}

+ 0 - 108
app/adminapi/controller/external/ExternalPlatformController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\external;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\external\ExternalPlatformLists;
-use app\adminapi\logic\external\ExternalPlatformLogic;
-use app\adminapi\validate\external\ExternalPlatformValidate;
-
-
-/**
- * ExternalPlatform控制器
- * Class ExternalPlatformController
- * @package app\adminapi\controller
- */
-class ExternalPlatformController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/23 14:27
-     */
-    public function lists()
-    {
-        return $this->dataLists(new ExternalPlatformLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/23 14:27
-     */
-    public function add()
-    {
-        $params = (new ExternalPlatformValidate())->post()->goCheck('add');
-        $result = ExternalPlatformLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(ExternalPlatformLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/23 14:27
-     */
-    public function edit()
-    {
-        $params = (new ExternalPlatformValidate())->post()->goCheck('edit');
-        $result = ExternalPlatformLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(ExternalPlatformLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/23 14:27
-     */
-    public function delete()
-    {
-        $params = (new ExternalPlatformValidate())->post()->goCheck('delete');
-        ExternalPlatformLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/23 14:27
-     */
-    public function detail()
-    {
-        $params = (new ExternalPlatformValidate())->goCheck('detail');
-        $result = ExternalPlatformLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 117
app/adminapi/controller/external/ExternalPlatformGoodsController.php

@@ -1,117 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\external;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\external\ExternalPlatformGoodsLists;
-use app\adminapi\logic\external\ExternalPlatformGoodsLogic;
-use app\adminapi\validate\external\ExternalPlatformGoodsValidate;
-
-
-/**
- * ExternalPlatformGoods控制器
- * Class ExternalPlatformGoodsController
- * @package app\adminapi\controller
- */
-class ExternalPlatformGoodsController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/21 19:09
-     */
-    public function lists()
-    {
-        return $this->dataLists(new ExternalPlatformGoodsLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/21 19:09
-     */
-    public function add()
-    {
-        $params = (new ExternalPlatformGoodsValidate())->post()->goCheck('add');
-        $result = ExternalPlatformGoodsLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(ExternalPlatformGoodsLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/21 19:09
-     */
-    public function edit()
-    {
-        $params = (new ExternalPlatformGoodsValidate())->post()->goCheck('edit');
-        $result = ExternalPlatformGoodsLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(ExternalPlatformGoodsLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/21 19:09
-     */
-    public function delete()
-    {
-        $params = (new ExternalPlatformGoodsValidate())->post()->goCheck('delete');
-        ExternalPlatformGoodsLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/21 19:09
-     */
-    public function detail()
-    {
-        $params = (new ExternalPlatformGoodsValidate())->goCheck('detail');
-        $result = ExternalPlatformGoodsLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-    public function goodsImport()
-    {
-        $params = $this->request->post();
-        $result = ExternalPlatformGoodsLogic::goodsImport($params);
-        if (true === $result) {
-            return $this->success('导入成功', [], 1, 1);
-        }
-        return $this->fail(ExternalPlatformGoodsLogic::getError());
-    }
-}

+ 0 - 108
app/adminapi/controller/external/ExternalPlatformOrdersController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\external;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\external\ExternalPlatformOrdersLists;
-use app\adminapi\logic\external\ExternalPlatformOrdersLogic;
-use app\adminapi\validate\external\ExternalPlatformOrdersValidate;
-
-
-/**
- * ExternalPlatformOrders控制器
- * Class ExternalPlatformOrdersController
- * @package app\adminapi\controller
- */
-class ExternalPlatformOrdersController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/23 13:58
-     */
-    public function lists()
-    {
-        return $this->dataLists(new ExternalPlatformOrdersLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/23 13:58
-     */
-    public function add()
-    {
-        $params = (new ExternalPlatformOrdersValidate())->post()->goCheck('add');
-        $result = ExternalPlatformOrdersLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(ExternalPlatformOrdersLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/23 13:58
-     */
-    public function edit()
-    {
-        $params = (new ExternalPlatformOrdersValidate())->post()->goCheck('edit');
-        $result = ExternalPlatformOrdersLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(ExternalPlatformOrdersLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/23 13:58
-     */
-    public function delete()
-    {
-        $params = (new ExternalPlatformOrdersValidate())->post()->goCheck('delete');
-        ExternalPlatformOrdersLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/23 13:58
-     */
-    public function detail()
-    {
-        $params = (new ExternalPlatformOrdersValidate())->goCheck('detail');
-        $result = ExternalPlatformOrdersLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 108
app/adminapi/controller/fault_code/FaultCodeController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\fault_code;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\fault_code\FaultCodeLists;
-use app\adminapi\logic\fault_code\FaultCodeLogic;
-use app\adminapi\validate\fault_code\FaultCodeValidate;
-
-
-/**
- * FaultCode控制器
- * Class FaultCodeController
- * @package app\adminapi\controller
- */
-class FaultCodeController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/18 09:58
-     */
-    public function lists()
-    {
-        return $this->dataLists(new FaultCodeLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/18 09:58
-     */
-    public function add()
-    {
-        $params = (new FaultCodeValidate())->post()->goCheck('add');
-        $result = FaultCodeLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(FaultCodeLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/18 09:58
-     */
-    public function edit()
-    {
-        $params = (new FaultCodeValidate())->post()->goCheck('edit');
-        $result = FaultCodeLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(FaultCodeLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/18 09:58
-     */
-    public function delete()
-    {
-        $params = (new FaultCodeValidate())->post()->goCheck('delete');
-        FaultCodeLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/18 09:58
-     */
-    public function detail()
-    {
-        $params = (new FaultCodeValidate())->goCheck('detail');
-        $result = FaultCodeLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 130
app/adminapi/controller/fault_type/FaultTypeController.php

@@ -1,130 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\fault_type;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\fault_type\FaultTypeLists;
-use app\adminapi\logic\fault_type\FaultTypeLogic;
-use app\adminapi\validate\fault_type\FaultTypeValidate;
-
-
-/**
- * FaultType控制器
- * Class FaultTypeController
- * @package app\adminapi\controller
- */
-class FaultTypeController extends BaseAdminController
-{
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/18 15:09
-     */
-    public function listsByPid()
-    {
-        $pid = $this->request->get('pid',0);
-        $result = FaultTypeLogic::listsByPid($pid);
-        return $this->success('',$result);
-    }
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/18 15:09
-     */
-    public function lists()
-    {
-        return $this->dataLists(new FaultTypeLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/18 15:09
-     */
-    public function add()
-    {
-        $params = (new FaultTypeValidate())->post()->goCheck('add');
-        $result = FaultTypeLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(FaultTypeLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/18 15:09
-     */
-    public function edit()
-    {
-        $params = (new FaultTypeValidate())->post()->goCheck('edit');
-        $result = FaultTypeLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(FaultTypeLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/18 15:09
-     */
-    public function delete()
-    {
-        $params = (new FaultTypeValidate())->post()->goCheck('delete');
-        FaultTypeLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/18 15:09
-     */
-    public function detail()
-    {
-        $params = (new FaultTypeValidate())->goCheck('detail');
-        $result = FaultTypeLogic::detail($params);
-        return $this->data($result);
-    }
-
-    public function all()
-    {
-        $result = FaultTypeLogic::getAllData();
-        return $this->data($result);
-    }
-
-    public function goodsCategory()
-    {
-        $result = FaultTypeLogic::getGoodsCategoryData();
-        return $this->data($result);
-    }
-}

+ 0 - 109
app/adminapi/controller/feedback/FeedbackController.php

@@ -1,109 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\feedback;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\feedback\FeedbackLists;
-use app\adminapi\logic\feedback\FeedbackLogic;
-use app\adminapi\validate\feedback\FeedbackValidate;
-
-
-/**
- * Feedback控制器
- * Class FeedbackController
- * @package app\adminapi\controller\feedback
- */
-class FeedbackController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/11 14:47
-     */
-    public function lists()
-    {
-        return $this->dataLists(new FeedbackLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/11 14:47
-     */
-    public function add()
-    {
-        $params = (new FeedbackValidate())->post()->goCheck('add');
-        $result = FeedbackLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(FeedbackLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/11 14:47
-     */
-    public function edit()
-    {
-        $params = (new FeedbackValidate())->post()->goCheck('edit');
-        $params['deal_user_id'] = $this->adminId;
-        $result = FeedbackLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(FeedbackLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/11 14:47
-     */
-    public function delete()
-    {
-        $params = (new FeedbackValidate())->post()->goCheck('delete');
-        FeedbackLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/11 14:47
-     */
-    public function detail()
-    {
-        $params = (new FeedbackValidate())->goCheck('detail');
-        $result = FeedbackLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 39
app/adminapi/controller/finance/AccountLogController.php

@@ -1,39 +0,0 @@
-<?php
-namespace app\adminapi\controller\finance;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\finance\AccountLogLists;
-use app\common\enum\user\AccountLogEnum;
-
-/***
- * 账户流水控制器
- * Class AccountLogController
- * @package app\adminapi\controller
- */
-class AccountLogController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 账户流水明细
-     * @return \think\response\Json
-     * @date 2023/2/24 15:25
-     */
-    public function lists()
-    {
-        return $this->dataLists(new AccountLogLists());
-    }
-
-
-    /**
-     * @notes 用户余额变动类型
-     * @return \think\response\Json
-     * @date 2023/2/24 15:25
-     */
-    public function getUmChangeType()
-    {
-        return $this->data(AccountLogEnum::getUserMoneyChangeTypeDesc());
-    }
-
-
-}

+ 0 - 108
app/adminapi/controller/finance/MasterWorkerCaseOutLogController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\finance;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\finance\MasterWorkerCaseOutLogLists;
-use app\adminapi\logic\finance\MasterWorkerCaseOutLogLogic;
-use app\adminapi\validate\finance\MasterWorkerCaseOutLogValidate;
-
-
-/**
- * MasterWorkerCaseOutLog控制器
- * Class MasterWorkerCaseOutLogController
- * @package app\adminapi\controller\finance
- */
-class MasterWorkerCaseOutLogController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/23 09:30
-     */
-    public function lists()
-    {
-        return $this->dataLists(new MasterWorkerCaseOutLogLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/23 09:30
-     */
-    public function add()
-    {
-        $params = (new MasterWorkerCaseOutLogValidate())->post()->goCheck('add');
-        $result = MasterWorkerCaseOutLogLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerCaseOutLogLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/23 09:30
-     */
-    public function edit()
-    {
-        $params = (new MasterWorkerCaseOutLogValidate())->post()->goCheck('edit',['admin_id'=>$this->adminId]);
-        $result = MasterWorkerCaseOutLogLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerCaseOutLogLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/23 09:30
-     */
-    public function delete()
-    {
-        $params = (new MasterWorkerCaseOutLogValidate())->post()->goCheck('delete');
-        MasterWorkerCaseOutLogLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/23 09:30
-     */
-    public function detail()
-    {
-        $params = (new MasterWorkerCaseOutLogValidate())->goCheck('detail');
-        $result = MasterWorkerCaseOutLogLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 72
app/adminapi/controller/finance/RefundController.php

@@ -1,72 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\finance;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\finance\RefundLogLists;
-use app\adminapi\lists\finance\RefundRecordLists;
-use app\adminapi\logic\finance\RefundLogic;
-
-/**
- * 退款控制器
- * Class RefundController
- * @package app\adminapi\controller\finance
- */
-class RefundController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 退还统计
-     * @return \think\response\Json
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author 段誉
-     * @date 2023/3/3 12:10
-     */
-    public function stat()
-    {
-        $result = RefundLogic::stat();
-        return $this->success('', $result);
-    }
-
-
-    /**
-     * @notes 退款记录
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2023/3/1 9:47
-     */
-    public function record()
-    {
-        return $this->dataLists(new RefundRecordLists());
-    }
-
-
-    /**
-     * @notes 退款日志
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2023/3/1 9:47
-     */
-    public function log()
-    {
-        $recordId = $this->request->get('record_id', 0);
-        $result = RefundLogic::refundLog($recordId);
-        return $this->success('', $result);
-    }
-
-}

+ 0 - 37
app/adminapi/controller/finance/RetentionMoneyLogController.php

@@ -1,37 +0,0 @@
-<?php
-namespace app\adminapi\controller\finance;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\finance\RetentionMoneyLogLists;
-use app\adminapi\logic\master_worker\MasterWorkerLogic;
-use app\adminapi\validate\master_worker\MasterWorkerValidate;
-
-/***
- * 工程师质保金流水控制器
- * Class RetentionMoneyLogController
- * @package app\adminapi\controller
- */
-class RetentionMoneyLogController extends BaseAdminController
-{
-
-    /**
-     * @notes 质保金流水明细
-     */
-    public function lists()
-    {
-        return $this->dataLists(new RetentionMoneyLogLists());
-    }
-
-    /**
-     * @notes 质保金退费审核
-     */
-    public function audit()
-    {
-        $params = (new MasterWorkerValidate())->post()->goCheck('audit',['admin_id'=>$this->adminId]);
-        $result = MasterWorkerLogic::retentionMoneyAudit($params);
-        if (true === $result) {
-            return $this->success('操作成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerLogic::getError());
-    }
-}

+ 0 - 39
app/adminapi/controller/finance/WorkerAccountLogController.php

@@ -1,39 +0,0 @@
-<?php
-namespace app\adminapi\controller\finance;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\finance\WorkerAccountLogLists;
-use app\common\enum\worker\WorkerAccountLogEnum;
-
-/***
- * 账户流水控制器
- * Class AccountLogController
- * @package app\adminapi\controller
- */
-class WorkerAccountLogController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 账户流水明细
-     * @return \think\response\Json
-     * @date 2023/2/24 15:25
-     */
-    public function lists()
-    {
-        return $this->dataLists(new WorkerAccountLogLists());
-    }
-
-
-    /**
-     * @notes 用户余额变动类型
-     * @return \think\response\Json
-     * @date 2023/2/24 15:25
-     */
-    public function getUmChangeType()
-    {
-        return $this->data(WorkerAccountLogEnum::getUserMoneyChangeTypeDesc());
-    }
-
-
-}

+ 0 - 111
app/adminapi/controller/financial/FinancialPaymentRecordsController.php

@@ -1,111 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\financial;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\financial\FinancialPaymentRecordsLists;
-use app\adminapi\logic\financial\FinancialPaymentRecordsLogic;
-use app\adminapi\validate\financial\FinancialPaymentRecordsValidate;
-
-
-/**
- * FinancialPaymentRecords控制器
- * Class FinancialPaymentRecordsController
- * @package app\adminapi\controller
- */
-class FinancialPaymentRecordsController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/02 11:55
-     */
-    public function lists()
-    {
-        return $this->dataLists(new FinancialPaymentRecordsLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/02 11:55
-     */
-    public function add()
-    {
-        $params = (new FinancialPaymentRecordsValidate())->post()->goCheck('add');
-        $result = FinancialPaymentRecordsLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(FinancialPaymentRecordsLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/02 11:55
-     */
-    public function edit()
-    {
-        $params = (new FinancialPaymentRecordsValidate())->post()->goCheck('edit');
-        $result = FinancialPaymentRecordsLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(FinancialPaymentRecordsLogic::getError());
-    }
-
-
-    /**
-     * @notes 取消
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/02 11:55
-     */
-    public function delete()
-    {
-        $params = (new FinancialPaymentRecordsValidate())->post()->goCheck('delete');
-        $result = FinancialPaymentRecordsLogic::delete($params);
-        if (true === $result) {
-            return $this->success('取消成功', [], 1, 1);
-        }
-        return $this->fail(FinancialPaymentRecordsLogic::getError());
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/02 11:55
-     */
-    public function detail()
-    {
-        $params = (new FinancialPaymentRecordsValidate())->goCheck('detail');
-        $result = FinancialPaymentRecordsLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 108
app/adminapi/controller/firm/FirmRegisterController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\firm;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\firm\FirmRegisterLists;
-use app\adminapi\logic\firm\FirmRegisterLogic;
-use app\adminapi\validate\firm\FirmRegisterValidate;
-
-
-/**
- * FirmRegister控制器
- * Class FirmRegisterController
- * @package app\adminapi\controller\firm
- */
-class FirmRegisterController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/12 14:50
-     */
-    public function lists()
-    {
-        return $this->dataLists(new FirmRegisterLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/12 14:50
-     */
-    public function add()
-    {
-        $params = (new FirmRegisterValidate())->post()->goCheck('add');
-        $result = FirmRegisterLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(FirmRegisterLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/12 14:50
-     */
-    public function edit()
-    {
-        $params = (new FirmRegisterValidate())->post()->goCheck('edit');
-        $result = FirmRegisterLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(FirmRegisterLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/12 14:50
-     */
-    public function delete()
-    {
-        $params = (new FirmRegisterValidate())->post()->goCheck('delete');
-        FirmRegisterLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/12 14:50
-     */
-    public function detail()
-    {
-        $params = (new FirmRegisterValidate())->goCheck('detail');
-        $result = FirmRegisterLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 116
app/adminapi/controller/goods/GoodsController.php

@@ -1,116 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\goods;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\goods\GoodsLists;
-use app\adminapi\logic\goods\GoodsLogic;
-use app\adminapi\validate\goods\GoodsValidate;
-
-
-/**
- * Goods控制器
- * Class GoodsController
- * @package app\adminapi\controller\goods
- */
-class GoodsController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/07 18:37
-     */
-    public function lists()
-    {
-        return $this->dataLists(new GoodsLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/07 18:37
-     */
-    public function add()
-    {
-        $params = (new GoodsValidate())->post()->goCheck('add');
-        $result = GoodsLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(GoodsLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/07 18:37
-     */
-    public function edit()
-    {
-        $params = (new GoodsValidate())->post()->goCheck('edit');
-        $result = GoodsLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(GoodsLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/07 18:37
-     */
-    public function delete()
-    {
-        $params = (new GoodsValidate())->post()->goCheck('delete');
-        GoodsLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/07 18:37
-     */
-    public function detail()
-    {
-        $params = (new GoodsValidate())->goCheck('detail');
-        $result = GoodsLogic::detail($params);
-        return $this->data($result);
-    }
-
-    public function rulesBatch()
-    {
-        $params = (new GoodsValidate())->post()->goCheck('rules');
-        $result = GoodsLogic::rulesBatch($params);
-        if (true === $result) {
-            return $this->success('批量配置成功', [], 1, 1);
-        }
-        return $this->fail(GoodsLogic::getError());
-    }
-}

+ 0 - 112
app/adminapi/controller/goods_category/GoodsCategoryController.php

@@ -1,112 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\goods_category;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\goods_category\GoodsCategoryLists;
-use app\adminapi\logic\goods_category\GoodsCategoryLogic;
-use app\adminapi\validate\goods_category\GoodsCategoryValidate;
-
-
-/**
- * GoodsCategory控制器
- * Class GoodsCategoryController
- * @package app\adminapi\controller\goods_category
- */
-class GoodsCategoryController extends BaseAdminController
-{
-
-    public array $notNeedLogin = ['treeData'];
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/07 18:23
-     */
-    public function lists()
-    {
-        return $this->dataLists(new GoodsCategoryLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/07 18:23
-     */
-    public function add()
-    {
-        $params = (new GoodsCategoryValidate())->post()->goCheck('add');
-        $result = GoodsCategoryLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(GoodsCategoryLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/07 18:23
-     */
-    public function edit()
-    {
-        $params = (new GoodsCategoryValidate())->post()->goCheck('edit');
-        $result = GoodsCategoryLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(GoodsCategoryLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/07 18:23
-     */
-    public function delete()
-    {
-        $params = (new GoodsCategoryValidate())->post()->goCheck('delete');
-        GoodsCategoryLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/07 18:23
-     */
-    public function detail()
-    {
-        $params = (new GoodsCategoryValidate())->goCheck('detail');
-        $result = GoodsCategoryLogic::detail($params);
-        return $this->data($result);
-    }
-
-   public function treeData()
-   {
-       $result = GoodsCategoryLogic::getTreeData();
-       return $this->data($result);
-   }
-}

+ 0 - 108
app/adminapi/controller/goods_fee_standards/GoodsFeeStandardsController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\goods_fee_standards;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\goods_fee_standards\GoodsFeeStandardsLists;
-use app\adminapi\logic\goods_fee_standards\GoodsFeeStandardsLogic;
-use app\adminapi\validate\goods_fee_standards\GoodsFeeStandardsValidate;
-
-
-/**
- * GoodsFeeStandards控制器
- * Class GoodsFeeStandardsController
- * @package app\adminapi\controller
- */
-class GoodsFeeStandardsController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/14 15:59
-     */
-    public function lists()
-    {
-        return $this->dataLists(new GoodsFeeStandardsLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/14 15:59
-     */
-    public function add()
-    {
-        $params = (new GoodsFeeStandardsValidate())->post()->goCheck('add');
-        $result = GoodsFeeStandardsLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(GoodsFeeStandardsLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/14 15:59
-     */
-    public function edit()
-    {
-        $params = (new GoodsFeeStandardsValidate())->post()->goCheck('edit');
-        $result = GoodsFeeStandardsLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(GoodsFeeStandardsLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/14 15:59
-     */
-    public function delete()
-    {
-        $params = (new GoodsFeeStandardsValidate())->post()->goCheck('delete');
-        GoodsFeeStandardsLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/14 15:59
-     */
-    public function detail()
-    {
-        $params = (new GoodsFeeStandardsValidate())->goCheck('detail');
-        $result = GoodsFeeStandardsLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 108
app/adminapi/controller/goods_time/GoodsTimeController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\goods_time;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\goods_time\GoodsTimeLists;
-use app\adminapi\logic\goods_time\GoodsTimeLogic;
-use app\adminapi\validate\goods_time\GoodsTimeValidate;
-
-
-/**
- * GoodsTime控制器
- * Class GoodsTimeController
- * @package app\adminapi\controller\goods_time
- */
-class GoodsTimeController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/02/23 11:02
-     */
-    public function lists()
-    {
-        return $this->dataLists(new GoodsTimeLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/02/23 11:02
-     */
-    public function add()
-    {
-        $params = (new GoodsTimeValidate())->post()->goCheck('add');
-        $result = GoodsTimeLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(GoodsTimeLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/02/23 11:02
-     */
-    public function edit()
-    {
-        $params = (new GoodsTimeValidate())->post()->goCheck('edit');
-        $result = GoodsTimeLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(GoodsTimeLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/02/23 11:02
-     */
-    public function delete()
-    {
-        $params = (new GoodsTimeValidate())->post()->goCheck('delete');
-        GoodsTimeLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/02/23 11:02
-     */
-    public function detail()
-    {
-        $params = (new GoodsTimeValidate())->goCheck('detail');
-        $result = GoodsTimeLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 152
app/adminapi/controller/group_activity/GroupActivityCategoryController.php

@@ -1,152 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\group_activity;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\group_activity\GroupActivityCategoryLists;
-use app\adminapi\logic\group_activity\GroupActivityCategoryLogic;
-use app\adminapi\validate\group_activity\GroupActivityCategoryValidate;
-
-
-/**
- * 拼团活动分类控制器
- * Class GroupActivityCategoryController
- * @package app\adminapi\controller\group_activity
- */
-class GroupActivityCategoryController extends BaseAdminController
-{
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/13 10:31
-     */
-    public function lists()
-    {
-        return $this->dataLists(new GroupActivityCategoryLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/13 10:31
-     */
-    public function add()
-    {
-        $params = (new GroupActivityCategoryValidate())->post()->goCheck('add');
-        $result = GroupActivityCategoryLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(GroupActivityCategoryLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/13 10:31
-     */
-    public function edit()
-    {
-        $params = (new GroupActivityCategoryValidate())->post()->goCheck('edit');
-        $result = GroupActivityCategoryLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(GroupActivityCategoryLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/13 10:31
-     */
-    public function delete()
-    {
-        $params = (new GroupActivityCategoryValidate())->post()->goCheck('delete');
-        GroupActivityCategoryLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/13 10:31
-     */
-    public function detail()
-    {
-        $params = (new GroupActivityCategoryValidate())->goCheck('detail');
-        $result = GroupActivityCategoryLogic::detail($params);
-        return $this->data($result);
-    }
-    /**
-     * 获取活动分类二维码
-     */
-    public function getQRCode()
-    {
-        $params = (new GroupActivityCategoryValidate())->post()->goCheck('detail');
-        return $this->success('',['qrcode'=>GroupActivityCategoryLogic::getQRCode($params, $this->request->domain())], 1, 1);
-    }
-
-    /**
-     * 分类活动统计
-     */
-    public function total() 
-    {
-        $id = (int)$this->request->param('id');
-        $result = GroupActivityCategoryLogic::total($id);
-        return $this->data($result);
-    }
-
-    /**
-     * @notes 复制活动分类
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/13 10:31
-     */
-    public function copy()
-    {
-        $params = (new GroupActivityCategoryValidate())->goCheck('detail');
-        $result = GroupActivityCategoryLogic::copy($params);
-        if (true === $result) {
-            return $this->success('复制成功', [], 1, 1);
-        } 
-        return $this->fail(GroupActivityCategoryLogic::getError());
-    }
-
-    /**
-     * 分类活动结算
-     */
-    public function settle() 
-    {
-        $params = (new GroupActivityCategoryValidate())->post()->goCheck('settle');
-        $result = GroupActivityCategoryLogic::settle($params);
-        if (true === $result) {
-            return $this->success('提交成功', [], 1, 1);
-        } 
-        return $this->fail(GroupActivityCategoryLogic::getError());
-    }
-}

+ 0 - 107
app/adminapi/controller/group_activity/GroupEquityController.php

@@ -1,107 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\group_activity;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\group_activity\GroupEquityLists;
-use app\adminapi\logic\group_activity\GroupEquityLogic;
-use app\adminapi\validate\group_activity\GroupEquityValidate;
-
-
-/**
- * 拼团活动控制器
- * Class GroupEquityController
- * @package app\adminapi\controller\group_activity
- */
-class GroupEquityController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取拼团活动列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/13 10:31
-     */
-    public function lists()
-    {
-        return $this->dataLists(new GroupEquityLists());
-    }
-
-
-    /**
-     * @notes 添加拼团活动
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/13 10:31
-     */
-    public function add()
-    {
-        $params = (new GroupEquityValidate())->post()->goCheck('add');
-        $result = GroupEquityLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(GroupEquityLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑拼团活动
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/13 10:31
-     */
-    public function edit()
-    {
-        $params = (new GroupEquityValidate())->post()->goCheck('edit');
-        $result = GroupEquityLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(GroupEquityLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除拼团活动
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/13 10:31
-     */
-    public function delete()
-    {
-        $params = (new GroupEquityValidate())->post()->goCheck('delete');
-        GroupEquityLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取拼团活动详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/13 10:31
-     */
-    public function detail()
-    {
-        $params = (new GroupEquityValidate())->goCheck('detail');
-        $result = GroupEquityLogic::detail($params);
-        return $this->data($result);
-    }
-
-}

+ 0 - 80
app/adminapi/controller/group_activity/GroupOrderController.php

@@ -1,80 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\group_activity;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\group_activity\GroupOrderLists;
-use app\adminapi\logic\group_activity\GroupOrderLogic;
-use app\adminapi\validate\group_activity\GroupOrderValidate;
-
-
-/**
- * 拼团订单控制器
- * Class GroupOrderController
- * @package app\adminapi\controller\group_activity
- */
-class GroupOrderController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取拼团订单列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/13 10:31
-     */
-    public function lists()
-    {
-        return $this->dataLists(new GroupOrderLists());
-    }
-
-    /**
-     * @notes 获取拼团活动详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/13 10:31
-     */
-    public function detail()
-    {
-        $params = (new GroupOrderValidate())->goCheck('detail');
-        $result = GroupOrderLogic::detail($params);
-        return $this->data($result);
-    }
-
-    /**
-     * @notes 批量生成服务工单
-     */
-    public function changeWorkStatus() 
-    {
-        $params = (new GroupOrderValidate())->post()->goCheck('detail');
-        $result = GroupOrderLogic::changeWorkStatus($params);
-        return $this->data($result);
-    }
-
-    /**
-     * @notes 编辑拼团订单
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/13 10:31
-     */
-    public function edit()
-    {
-        $params = (new GroupOrderValidate())->post()->goCheck('edit');
-        $result = GroupOrderLogic::edit($params);
-        return $this->data($result);
-    }
-}

+ 0 - 77
app/adminapi/controller/group_activity/GroupUserOrderController.php

@@ -1,77 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\group_activity;
-
-
-use app\adminapi\logic\export\ExportLogic;
-use app\common\service\ExcelExportService;
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\group_activity\GroupUserOrderLists;
-use app\adminapi\logic\group_activity\GroupUserOrderLogic;
-
-
-/**
- * 用户拼团订单控制器
- * Class GroupOrderController
- * @package app\adminapi\controller\group_activity
- */
-class GroupUserOrderController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取拼团订单列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/03/13 10:31
-     */
-    public function lists()
-    {
-        return $this->dataLists(new GroupUserOrderLists());
-    }
-    /**
-     * @notes 用户订单退款
-     */
-    public function refundOrder() 
-    {
-        $params = $this->request->request('id');
-        $result = GroupUserOrderLogic::refundOrder($params);
-        if (true === $result) {
-            return $this->success('退款成功', [], 1, 1);
-        }
-        return $this->fail(GroupUserOrderLogic::getError());
-    }
-
-    
-    public function download()
-    {
-        $params = $this->request->post();
-        $filename = "用户拼团订单列表";
-        $result = ExportLogic::add([
-            'download_type' => 11,
-            'params' => $params,
-            'name' => $filename,
-            'admin_id' => $this->adminId,
-        ]);
-        if (false === $result) {
-            return $this->fail(ExportLogic::getError());
-        }
-        
-        (new ExcelExportService)->download($result);
-        return $this->success('添加成功-'.$result, [], 1, 1);
-    }
-
-}

+ 0 - 108
app/adminapi/controller/home_service/HomeServiceController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\home_service;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\home_service\HomeServiceLists;
-use app\adminapi\logic\home_service\HomeServiceLogic;
-use app\adminapi\validate\home_service\HomeServiceValidate;
-
-
-/**
- * HomeService控制器
- * Class HomeServiceController
- * @package app\adminapi\controller\home_service
- */
-class HomeServiceController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/07 16:44
-     */
-    public function lists()
-    {
-        return $this->dataLists(new HomeServiceLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/07 16:44
-     */
-    public function add()
-    {
-        $params = (new HomeServiceValidate())->post()->goCheck('add');
-        $result = HomeServiceLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(HomeServiceLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/07 16:44
-     */
-    public function edit()
-    {
-        $params = (new HomeServiceValidate())->post()->goCheck('edit');
-        $result = HomeServiceLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(HomeServiceLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/07 16:44
-     */
-    public function delete()
-    {
-        $params = (new HomeServiceValidate())->post()->goCheck('delete');
-        HomeServiceLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/07 16:44
-     */
-    public function detail()
-    {
-        $params = (new HomeServiceValidate())->goCheck('detail');
-        $result = HomeServiceLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 108
app/adminapi/controller/home_service/HomeSpecialController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\home_service;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\home_service\HomeSpecialLists;
-use app\adminapi\logic\home_service\HomeSpecialLogic;
-use app\adminapi\validate\home_service\HomeSpecialValidate;
-
-
-/**
- * HomeSpecial控制器
- * Class HomeSpecialController
- * @package app\adminapi\controller\home_service
- */
-class HomeSpecialController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/18 10:05
-     */
-    public function lists()
-    {
-        return $this->dataLists(new HomeSpecialLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/18 10:05
-     */
-    public function add()
-    {
-        $params = (new HomeSpecialValidate())->post()->goCheck('add');
-        $result = HomeSpecialLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(HomeSpecialLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/18 10:05
-     */
-    public function edit()
-    {
-        $params = (new HomeSpecialValidate())->post()->goCheck('edit');
-        $result = HomeSpecialLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(HomeSpecialLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/18 10:05
-     */
-    public function delete()
-    {
-        $params = (new HomeSpecialValidate())->post()->goCheck('delete');
-        HomeSpecialLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/18 10:05
-     */
-    public function detail()
-    {
-        $params = (new HomeSpecialValidate())->goCheck('detail');
-        $result = HomeSpecialLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 114
app/adminapi/controller/jobs_rules/JobsRulesController.php

@@ -1,114 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\jobs_rules;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\jobs_rules\JobsRulesLists;
-use app\adminapi\logic\jobs_rules\JobsRulesLogic;
-use app\adminapi\validate\jobs_rules\JobsRulesValidate;
-use app\common\logic\TableDataLogic;
-
-
-/**
- * JobsRules控制器
- * Class JobsRulesController
- * @package app\adminapi\controller
- */
-class JobsRulesController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/31 13:50
-     */
-    public function lists()
-    {
-        return $this->dataLists(new JobsRulesLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/31 13:50
-     */
-    public function add()
-    {
-        $params = (new JobsRulesValidate())->post()->goCheck('add');
-        $result = JobsRulesLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(JobsRulesLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/31 13:50
-     */
-    public function edit()
-    {
-        $params = (new JobsRulesValidate())->post()->goCheck('edit');
-        $result = JobsRulesLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(JobsRulesLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/31 13:50
-     */
-    public function delete()
-    {
-        $params = (new JobsRulesValidate())->post()->goCheck('delete');
-        JobsRulesLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/31 13:50
-     */
-    public function detail()
-    {
-        $params = (new JobsRulesValidate())->goCheck('detail');
-        $result = JobsRulesLogic::detail($params);
-        return $this->data($result);
-    }
-
-    public function ruleData()
-    {
-        $params = request()->post();
-        //provinces citys saleGroup admins propertyHead sale
-        return $this->data(JobsRulesLogic::ruleData($params));
-    }
-}

+ 0 - 113
app/adminapi/controller/labels/LabelsController.php

@@ -1,113 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\labels;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\labels\LabelsLists;
-use app\adminapi\logic\labels\LabelsLogic;
-use app\adminapi\validate\labels\LabelsValidate;
-
-
-/**
- * Labels控制器
- * Class LabelsController
- * @package app\adminapi\controller
- */
-class LabelsController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/12 17:15
-     */
-    public function lists()
-    {
-        return $this->dataLists(new LabelsLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/12 17:15
-     */
-    public function add()
-    {
-        $params = (new LabelsValidate())->post()->goCheck('add');
-        $result = LabelsLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(LabelsLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/12 17:15
-     */
-    public function edit()
-    {
-        $params = (new LabelsValidate())->post()->goCheck('edit');
-        $result = LabelsLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(LabelsLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/12 17:15
-     */
-    public function delete()
-    {
-        $params = (new LabelsValidate())->post()->goCheck('delete');
-        LabelsLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/12 17:15
-     */
-    public function detail()
-    {
-        $params = (new LabelsValidate())->goCheck('detail');
-        $result = LabelsLogic::detail($params);
-        return $this->data($result);
-    }
-
-    public function treeLists()
-    {
-        $res = $this->dataLists(new LabelsLists())->getData();
-        $res['data']['lists'] = linear_to_tree($res['data']['lists'], 'children');
-        return json($res);
-    }
-}

+ 0 - 133
app/adminapi/controller/master_commission/MasterWorkerCommissionConfigController.php

@@ -1,133 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\master_commission;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\master_commission\MasterWorkerCommissionConfigLists;
-use app\adminapi\logic\master_commission\MasterWorkerCommissionConfigLogic;
-use app\adminapi\validate\master_commission\MasterWorkerCommissionConfigValidate;
-
-
-/**
- * MasterWorkerCommissionConfig控制器
- * Class MasterWorkerCommissionConfigController
- * @package app\adminapi\controller
- */
-class MasterWorkerCommissionConfigController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/06 10:42
-     */
-    public function lists()
-    {
-        return $this->dataLists(new MasterWorkerCommissionConfigLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/06 10:42
-     */
-    public function add()
-    {
-        $params = (new MasterWorkerCommissionConfigValidate())->post()->goCheck('add',[
-            'adminId' => $this->adminId
-        ]);
-        $result = MasterWorkerCommissionConfigLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerCommissionConfigLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/06 10:42
-     */
-    public function edit()
-    {
-        $params = (new MasterWorkerCommissionConfigValidate())->post()->goCheck('edit',[
-            'adminId' => $this->adminId
-        ]);
-        $result = MasterWorkerCommissionConfigLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerCommissionConfigLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/06 10:42
-     */
-    public function delete()
-    {
-        $params = (new MasterWorkerCommissionConfigValidate())->post()->goCheck('delete');
-        MasterWorkerCommissionConfigLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/06 10:42
-     */
-    public function detail()
-    {
-        $params = (new MasterWorkerCommissionConfigValidate())->goCheck('detail');
-        $result = MasterWorkerCommissionConfigLogic::detail($params);
-        return $this->data($result);
-    }
-
-    public function examine()
-    {
-        $params = (new MasterWorkerCommissionConfigValidate())->post()->goCheck('delete',[
-            'adminId' => $this->adminId
-        ]);
-        $result = MasterWorkerCommissionConfigLogic::examine($params);
-        if (true === $result) {
-            return $this->success('启动成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerCommissionConfigLogic::getError());
-    }
-    public function offCommission()
-    {
-        $params = (new MasterWorkerCommissionConfigValidate())->post()->goCheck('delete',[
-            'adminId' => $this->adminId
-        ]);
-        $result = MasterWorkerCommissionConfigLogic::offCommission($params);
-        if (true === $result) {
-            return $this->success('关闭成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerCommissionConfigLogic::getError());
-    }
-}

+ 0 - 119
app/adminapi/controller/master_worker/BankAccountController.php

@@ -1,119 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\master_worker;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\master_worker\BankAccountLists;
-use app\adminapi\logic\master_worker\BankAccountLogic;
-use app\adminapi\validate\master_worker\BankAccountValidate;
-use app\common\logic\MasterWorkerExamineLogic;
-
-
-/**
- * BankAccount控制器
- * Class BankAccountController
- * @package app\adminapi\controller\master_worker
- */
-class BankAccountController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/08 09:41
-     */
-    public function lists()
-    {
-        return $this->dataLists(new BankAccountLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/08 09:41
-     */
-    public function add()
-    {
-        $params = (new BankAccountValidate())->post()->goCheck('add');
-        $result = BankAccountLogic::add($params);
-        if (true === $result) {
-            MasterWorkerExamineLogic::updateEngineerInformation($params['worker_id']);
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(BankAccountLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/08 09:41
-     */
-    public function edit()
-    {
-        $params = (new BankAccountValidate())->post()->goCheck('edit');
-        $result = BankAccountLogic::edit($params);
-        if (true === $result) {
-            MasterWorkerExamineLogic::updateEngineerInformation($params['worker_id']);
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(BankAccountLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/08 09:41
-     */
-    public function delete()
-    {
-        $params = (new BankAccountValidate())->post()->goCheck('delete');
-        try {
-            $worker_ids = BankAccountLogic::getWorkerIds($params);
-            BankAccountLogic::delete($params);
-            foreach ($worker_ids as $worker_id) {
-                MasterWorkerExamineLogic::updateEngineerInformation($worker_id);
-            }
-            return $this->success('删除成功', [], 1, 1);
-        } catch (\Exception $e) {
-            return $this->fail('删除失败-'.$e->getMessage());
-        }
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/08 09:41
-     */
-    public function detail()
-    {
-        $params = (new BankAccountValidate())->goCheck('detail');
-        $result = BankAccountLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 129
app/adminapi/controller/master_worker/EngineerBillController.php

@@ -1,129 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\master_worker;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\master_worker\EngineerBillLists;
-use app\adminapi\logic\export\ExportLogic;
-use app\adminapi\logic\financial\MasterSettlementDetailsLogic;
-use app\adminapi\logic\master_worker\EngineerBillLogic;
-use app\adminapi\logic\master_worker\EngineerSettlementLogic;
-use app\common\service\ExcelExportService;
-use excel\ExcelWriter;
-use phpseclib3\Common\Functions\Strings;
-use think\facade\Db;
-use think\facade\Log;
-
-/**
- * EngineerSettlement控制器
- * Class EngineerSettlementController
- * @package app\adminapi\controller
- */
-class EngineerBillController extends BaseAdminController
-{
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/15 17:21
-     */
-    public function lists()
-    {
-        // 导入数据
-        $res = EngineerSettlementLogic::insertSettlementDetails();
-        if($res === false){
-            return $this->fail('导入失败');
-        }
-        return $this->dataLists(new EngineerBillLists());
-    }
-
-    public function download()
-    {
-        /*$firstDay = date('Y-m-01 00:00:00', strtotime('first day of last month'));
-        $lastDay = date('Y-m-t 23:59:59', strtotime('last day of last month'));
-        $filename = date('Y-m-d',strtotime($firstDay))."-至-".date('Y-m-d',strtotime($lastDay))."最后结算余额";
-        $result = ExportLogic::add([
-            'download_type' => 1,
-            'params' => ['firstDay'=>$firstDay,'lastDay'=>$lastDay],
-            'name' => $filename,
-            'admin_id' => $this->adminId,
-        ]);
-        if (false === $result) {
-            return $this->fail(ExportLogic::getError());
-        }*/
-
-        $params = $this->request->get();
-        $deadline_time = strtotime($params['deadline_time'])+86400;
-        $settlement_type = $params['settlement_type'];
-
-        $allData = $this->dataLists(new EngineerBillLists())->getData()['data']['lists'];
-        if(empty($allData)) return $this->fail('无数据');
-
-        $type = [
-            1=>'周(7天)',
-            2=>'半月',
-            3=>'整月'
-        ];
-        $filename = "截止到".$params['deadline_time'].$type[$settlement_type].'型结算单';
-        $result = ExportLogic::add([
-            'download_type' => 1,
-            'params' => ['settlement_type'=>$settlement_type,'deadline_time'=>$deadline_time],
-            'name' => $filename,
-            'admin_id' => $this->adminId,
-        ]);
-        if (false === $result) {
-            return $this->fail(ExportLogic::getError());
-        }
-        Log::info('导出参数:'.json_encode([$params,$result]));
-        // 暂时 - 立即生成导出文件
-        (new ExcelExportService)->download($result);
-        return $this->success('添加成功-'.$result, [], 1, 1);
-    }
-    public function submitForm()
-    {
-        $params = $this->request->post();
-        $params['adminId'] = $this->adminId;
-        $result = EngineerBillLogic::submitForm($params);
-        if ($result === false){
-            return $this->fail(EngineerBillLogic::getError());
-        }
-        return $this->success('打款成功', [], 1, 1);
-    }
-
-
-    /*
-     * 列表导出 - 不涉及任何后续批量编号逻辑
-     */
-    public function listsDownload()
-    {
-        $params = $this->request->get();
-        $filename = "财务结算工程师";
-        $result = ExportLogic::add([
-            'download_type' => 5,
-            'params' => $params,
-            'name' => $filename,
-            'admin_id' => $this->adminId,
-        ]);
-        if (false === $result) {
-            return $this->fail(ExportLogic::getError());
-        }
-        // 暂时 - 立即生成导出文件
-        (new ExcelExportService)->download($result);
-        return $this->success('添加成功-'.$result, [], 1, 1);
-    }
-
-}

+ 0 - 124
app/adminapi/controller/master_worker/EngineerSettlementController.php

@@ -1,124 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\master_worker;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\master_worker\EngineerSettlementLists;
-use app\adminapi\logic\master_worker\EngineerSettlementLogic;
-use app\adminapi\validate\master_worker\EngineerSettlementValidate;
-use excel\ExcelWriter;
-use PhpOffice\PhpSpreadsheet\Spreadsheet;
-use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
-
-
-/**
- * EngineerSettlement控制器
- * Class EngineerSettlementController
- * @package app\adminapi\controller
- */
-class EngineerSettlementController extends BaseAdminController
-{
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/15 17:21
-     */
-    public function lists()
-    {
-        return $this->dataLists(new EngineerSettlementLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/15 17:21
-     */
-    public function add()
-    {
-        //$params = (new EngineerSettlementValidate())->post();//->goCheck('add');
-        try {
-            $params = $this->request->post();
-            $params = EngineerSettlementLogic::engineerSettlementValidate($params);
-            $result = EngineerSettlementLogic::add($params,$this->adminId);
-            if (true === $result) {
-                return $this->success('添加成功', [], 1, 1);
-            }
-            return $this->fail(EngineerSettlementLogic::getError());
-        } catch (\Exception $e) {
-            return $this->fail($e->getMessage()?:EngineerSettlementLogic::getError());
-        }
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/15 17:21
-     */
-    public function edit()
-    {
-        $params = (new EngineerSettlementValidate())->post()->goCheck('edit');
-        $result = EngineerSettlementLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(EngineerSettlementLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/15 17:21
-     */
-    public function delete()
-    {
-        $params = (new EngineerSettlementValidate())->post()->goCheck('delete');
-        EngineerSettlementLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/15 17:21
-     */
-    public function detail()
-    {
-        $params = (new EngineerSettlementValidate())->goCheck('detail');
-        $result = EngineerSettlementLogic::detail($params);
-        return $this->data($result);
-    }
-
-    public function download()
-    {
-        $lists = EngineerSettlementLogic::downloadLists();
-        (new ExcelWriter())->generateExcelFile([
-            '工程师ID', '工程师编号', '工程师姓名', '工程师原始余额', '工程师总结算金额', '工程师扣款金额', '工程师最终结算金额', '结算时间', '结算明细备注'
-        ], $lists,'template', ['master_worker_id','worker_number','engineer_name','original_balance','total_settlement_amount','deduction_amount',
-            'final_settlement_amount','settlement_time','settlement_details_remarks']);
-    }
-
-}

+ 0 - 109
app/adminapi/controller/master_worker/EngineerSettlementPermanentlyController.php

@@ -1,109 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\master_worker;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\master_worker\EngineerSettlementPermanentlyLists;
-use app\adminapi\logic\master_worker\EngineerSettlementPermanentlyLogic;
-use app\adminapi\validate\master_worker\EngineerSettlementPermanentlyValidate;
-
-
-/**
- * EngineerSettlementPermanently控制器
- * Class EngineerSettlementPermanentlyController
- * @package app\adminapi\controller
- */
-class EngineerSettlementPermanentlyController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/06/09 10:33
-     */
-    public function lists()
-    {
-        return $this->dataLists(new EngineerSettlementPermanentlyLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/06/09 10:33
-     */
-    public function add()
-    {
-        $params = (new EngineerSettlementPermanentlyValidate())->post()->goCheck('add');
-        $result = EngineerSettlementPermanentlyLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(EngineerSettlementPermanentlyLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/06/09 10:33
-     */
-    public function edit()
-    {
-        $params = (new EngineerSettlementPermanentlyValidate())->post()->goCheck('edit');
-        $params['admin_id'] = $this->adminId;
-        $result = EngineerSettlementPermanentlyLogic::edit($params);
-        if (true === $result) {
-            return $this->success('结算成功', [], 1, 1);
-        }
-        return $this->fail(EngineerSettlementPermanentlyLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/06/09 10:33
-     */
-    public function delete()
-    {
-        $params = (new EngineerSettlementPermanentlyValidate())->post()->goCheck('delete');
-        EngineerSettlementPermanentlyLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/06/09 10:33
-     */
-    public function detail()
-    {
-        $params = (new EngineerSettlementPermanentlyValidate())->goCheck('detail');
-        $result = EngineerSettlementPermanentlyLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 120
app/adminapi/controller/master_worker/MasterWorkerAgreeController.php

@@ -1,120 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\master_worker;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\master_worker\MasterWorkerAgreeLists;
-use app\adminapi\logic\master_worker\MasterWorkerAgreeLogic;
-use app\adminapi\validate\master_worker\MasterWorkerAgreeValidate;
-use app\common\logic\MasterWorkerExamineLogic;
-
-
-/**
- * MasterWorkerAgree控制器
- * Class MasterWorkerAgreeController
- * @package app\adminapi\controller\master_worker
- */
-class MasterWorkerAgreeController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/17 15:20
-     */
-    public function lists()
-    {
-        return $this->dataLists(new MasterWorkerAgreeLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/17 15:20
-     */
-    public function add()
-    {
-        $params = (new MasterWorkerAgreeValidate())->post()->goCheck('add');
-        $result = MasterWorkerAgreeLogic::add($params);
-        if (true === $result) {
-            MasterWorkerExamineLogic::updateEngineerInformation($params['worker_id']);
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerAgreeLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/17 15:20
-     */
-    public function edit()
-    {
-        $params = (new MasterWorkerAgreeValidate())->post()->goCheck('edit');
-        $result = MasterWorkerAgreeLogic::edit($params);
-        if (true === $result) {
-            $info = MasterWorkerAgreeLogic::detail(['id'=>$params['id']]);
-            MasterWorkerExamineLogic::updateEngineerInformation($info['worker_id']);
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerAgreeLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/17 15:20
-     */
-    public function delete()
-    {
-        $params = (new MasterWorkerAgreeValidate())->post()->goCheck('delete');
-        try {
-            $worker_ids = MasterWorkerAgreeLogic::getWorkerIds($params);
-            MasterWorkerAgreeLogic::delete($params);
-            foreach ($worker_ids as $worker_id) {
-                MasterWorkerExamineLogic::updateEngineerInformation($worker_id);
-            }
-            return $this->success('删除成功', [], 1, 1);
-        } catch (\Exception $e) {
-            return $this->fail('删除失败-'.$e->getMessage());
-        }
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/17 15:20
-     */
-    public function detail()
-    {
-        $params = (new MasterWorkerAgreeValidate())->goCheck('detail');
-        $result = MasterWorkerAgreeLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 239
app/adminapi/controller/master_worker/MasterWorkerController.php

@@ -1,239 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\master_worker;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\master_worker\MasterWorkerLists;
-use app\adminapi\lists\master_worker\MoneyAnalysis;
-use app\adminapi\lists\master_worker\MasterWorkerOnlineLists;
-use app\adminapi\lists\master_worker\MasterWorkerStopLists;
-use app\adminapi\logic\master_worker\MasterWorkerLogic;
-use app\adminapi\validate\master_worker\MasterWorkerValidate;
-use app\adminapi\lists\master_worker\MasterWorkerScheduleLists;
-
-
-/**
- * MasterWorker控制器
- * Class MasterWorkerController
- * @package app\adminapi\controller\master_worker
- */
-class MasterWorkerController extends BaseAdminController
-{
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 18:17
-     */
-    public function lists()
-    {
-        return $this->dataLists(new MasterWorkerLists());
-    }
-
-    /**
-     * @notes 在线工程师列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 18:17
-     */
-    public function onlineLists()
-    {
-        return $this->dataLists(new MasterWorkerOnlineLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 18:17
-     */
-    public function add()
-    {
-        $params = (new MasterWorkerValidate())->post()->goCheck('add');
-        $result = MasterWorkerLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 18:17
-     */
-    public function edit()
-    {
-        $params = (new MasterWorkerValidate())->post()->goCheck('edit');
-        $result = MasterWorkerLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 18:17
-     */
-    public function delete()
-    {
-        $params = (new MasterWorkerValidate())->post()->goCheck('delete');
-        MasterWorkerLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 18:17
-     */
-    public function detail()
-    {
-        $params = (new MasterWorkerValidate())->goCheck('detail');
-        $result = MasterWorkerLogic::detail($params);
-        return $this->data($result);
-    }
-
-    /**
-     * 获取加盐密码
-     * @return \think\response\Json
-     */
-    public function saltToPassword()
-    {
-        $params = (new MasterWorkerValidate())->get()->goCheck('saltToPassword');
-        $result = MasterWorkerLogic::saltToPassword($params);
-        if (false === $result) {
-            return $this->fail(MasterWorkerLogic::getError());
-        }
-        return $this->data($result);
-    }
-    /**
-     * @notes 工程师余额数据分析
-     * @return \think\response\Json
-     */
-    public function moneyAnalysis()
-    {
-        return $this->dataLists(new MoneyAnalysis());
-    }
-
-    public function getAllWorkers()
-    {
-        $params = (new MasterWorkerValidate())->get();
-        return $this->data(MasterWorkerLogic::getAllWorkers($params));
-    }
-
-    /**
-     * @notes 长期合作工程师停单
-     * @return \think\response\Json
-     */
-    public function stop()
-    {
-        $params = (new MasterWorkerValidate())->post()->goCheck('stop');
-        $result = MasterWorkerLogic::stop($params,$this->adminInfo);
-        if (true === $result) {
-            return $this->success('停单成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerLogic::getError());
-    }
-
-    /**
-     * @notes 长期合作工程师停单记录列表
-     * @return \think\response\Json
-     */
-    public function stopLists()
-    {
-        return $this->dataLists(new MasterWorkerStopLists());
-    }
-
-    /**
-     * @notes 长期合作工程师排班列表
-     * @return \think\response\Json
-     */
-    public function scheduleLists()
-    {
-        return $this->dataLists(new MasterWorkerScheduleLists());
-    }
-    /** 
-     * @notes 设置备注
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 18:17
-     */
-    public function setRemark()
-    {
-        $params = (new MasterWorkerValidate())->post()->goCheck('remark');
-        $result = MasterWorkerLogic::setRemark($params);
-        if (true === $result) {
-            return $this->success('设置成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerLogic::getError());
-    }
-
-    /** 
-     * @notes 设置特殊技能
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 18:17
-     */
-    public function setSkill()
-    {
-        $params = (new MasterWorkerValidate())->post()->goCheck('skill');
-        $result = MasterWorkerLogic::setSkill($params);
-        if (true === $result) {
-            return $this->success('设置成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerLogic::getError());
-    }
-
-    /**
-     * @notes 工程师质保金缴费二维码
-     * @return \think\response\Json
-     */
-    public function retentionMoneyOrder()
-    {
-        $params = request()->post();
-        $result = MasterWorkerLogic::retentionMoneyOrder($params);
-        if (false === $result) {
-            return $this->fail(MasterWorkerLogic::getError());
-        }
-        return $this->success('', $result, 1, 1);
-        
-    }
-    /**
-     * @notes 工程师质保金退费申请
-     * @return \think\response\Json
-     */
-    public function retentionMoneyRefund()
-    {
-        $params = request()->post();
-        $result = MasterWorkerLogic::retentionMoneyRefund($params);
-        if (false === $result) {
-            return $this->fail(MasterWorkerLogic::getError());
-        }
-        return $this->success('', $result, 1, 1);
-        
-    }
-}

+ 0 - 110
app/adminapi/controller/master_worker/MasterWorkerExamineController.php

@@ -1,110 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\master_worker;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\master_worker\MasterWorkerAgreeLists;
-use app\adminapi\lists\master_worker\MasterWorkerExamineLists;
-use app\adminapi\logic\master_worker\MasterWorkerAgreeLogic;
-use app\adminapi\logic\master_worker\MasterWorkerExamineLogic;
-use app\adminapi\validate\master_worker\MasterWorkerAgreeValidate;
-
-
-/**
- * MasterWorkerExamine控制器
- * Class MasterWorkerExamineController
- * @package app\adminapi\controller\master_worker
- */
-class MasterWorkerExamineController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/17 15:20
-     */
-    public function lists()
-    {
-        return $this->dataLists(new MasterWorkerExamineLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/17 15:20
-     */
-    public function add()
-    {
-        return $this->fail('');
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/17 15:20
-     */
-    public function edit()
-    {
-        $params = $this->request->post();
-        $result = MasterWorkerExamineLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerExamineLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/17 15:20
-     */
-    public function delete()
-    {
-        $params = (new MasterWorkerAgreeValidate())->post()->goCheck('delete');
-        MasterWorkerAgreeLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/17 15:20
-     */
-    public function detail()
-    {
-        $params = (new MasterWorkerAgreeValidate())->goCheck('detail');
-        $result = MasterWorkerAgreeLogic::detail($params);
-        return $this->data($result);
-    }
-
-    public function getStatus()
-    {
-        $data_rules = $this->adminInfo['data_rules']??[];
-        $result = MasterWorkerAgreeLogic::getStatus($data_rules);
-        return $this->data(['count'=>$result]);
-    }
-}

+ 0 - 116
app/adminapi/controller/master_worker/MasterWorkerInfoController.php

@@ -1,116 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\master_worker;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\master_worker\MasterWorkerInfoLists;
-use app\adminapi\logic\master_worker\MasterWorkerInfoLogic;
-use app\adminapi\validate\master_worker\MasterWorkerInfoValidate;
-use app\common\logic\MasterWorkerExamineLogic;
-
-
-/**
- * MasterWorkerInfo控制器
- * Class MasterWorkerInfoController
- * @package app\adminapi\controller\master_worker
- */
-class MasterWorkerInfoController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/07 18:58
-     */
-    public function lists()
-    {
-        return $this->dataLists(new MasterWorkerInfoLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/07 18:58
-     */
-    public function add()
-    {
-        $params = (new MasterWorkerInfoValidate())->post()->goCheck('add');
-        $result = MasterWorkerInfoLogic::add($params);
-        if (true === $result) {
-            MasterWorkerExamineLogic::updateEngineerInformation($params['worker_id']);
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerInfoLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/07 18:58
-     */
-    public function edit()
-    {
-        $params = (new MasterWorkerInfoValidate())->post()->goCheck('edit');
-        $result = MasterWorkerInfoLogic::edit($params);
-        if (true === $result) {
-            $info = MasterWorkerInfoLogic::detail(['id'=>$params['id']]);
-            MasterWorkerExamineLogic::updateEngineerInformation($info['worker_id']);
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerInfoLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/07 18:58
-     */
-    public function delete()
-    {
-        $params = (new MasterWorkerInfoValidate())->post()->goCheck('delete');
-        $worker_ids = MasterWorkerInfoLogic::getWorkerIds($params);
-        MasterWorkerInfoLogic::delete($params);
-        foreach ($worker_ids as $worker_id) {
-            MasterWorkerExamineLogic::updateEngineerInformation($worker_id);
-        }
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/07 18:58
-     */
-    public function detail()
-    {
-        $params = (new MasterWorkerInfoValidate())->goCheck('detail');
-        $result = MasterWorkerInfoLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 108
app/adminapi/controller/master_worker/MasterWorkerRuleController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\master_worker;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\master_worker\MasterWorkerRuleLists;
-use app\adminapi\logic\master_worker\MasterWorkerRuleLogic;
-use app\adminapi\validate\master_worker\MasterWorkerRuleValidate;
-
-
-/**
- * MasterWorkerRule控制器
- * Class MasterWorkerRuleController
- * @package app\adminapi\controller
- */
-class MasterWorkerRuleController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/28 15:31
-     */
-    public function lists()
-    {
-        return $this->dataLists(new MasterWorkerRuleLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/28 15:31
-     */
-    public function add()
-    {
-        $params = (new MasterWorkerRuleValidate())->post()->goCheck('add');
-        $result = MasterWorkerRuleLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerRuleLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/28 15:31
-     */
-    public function edit()
-    {
-        $params = (new MasterWorkerRuleValidate())->post()->goCheck('edit');
-        $result = MasterWorkerRuleLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerRuleLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/28 15:31
-     */
-    public function delete()
-    {
-        $params = (new MasterWorkerRuleValidate())->post()->goCheck('delete');
-        MasterWorkerRuleLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/28 15:31
-     */
-    public function detail()
-    {
-        $params = (new MasterWorkerRuleValidate())->goCheck('detail');
-        $result = MasterWorkerRuleLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 102
app/adminapi/controller/master_worker/MasterWorkerServiceOrderController.php

@@ -1,102 +0,0 @@
-<?php
-namespace app\adminapi\controller\master_worker;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\master_commission\MasterWorkerCommissionNoticeLists;
-use app\adminapi\lists\master_worker\MasterWorkerServiceOrderLists;
-use app\adminapi\logic\export\ExportLogic;
-use app\adminapi\logic\master_worker\MasterWorkerServiceOrderLogic;
-use app\common\service\ExcelExportService;
-
-/**
- * MasterWorkerServiceOrder控制器
- * Class MasterWorkerServiceOrderController
- * @package app\adminapi\controller
- */
-class MasterWorkerServiceOrderController extends BaseAdminController
-{
-    /**
-     * @notes 获取列表
-     */
-    public function lists()
-    {
-        return $this->dataLists(new MasterWorkerServiceOrderLists());
-    }
-    public function download()
-    {
-        $params = $this->request->get();
-        $tmp_filename = '';
-        if($params['start_time'] && $params['end_time']) $tmp_filename = date('Y-m-d',strtotime($params['start_time']))."-至-".date('Y-m-d',strtotime($params['end_time']));
-        $filename = $tmp_filename."工单统计";
-        $result = ExportLogic::add([
-            'download_type' => 2,
-            'params' => $params,
-            'name' => $filename,
-            'admin_id' => $this->adminId,
-        ]);
-        if (false === $result) {
-            return $this->fail(ExportLogic::getError());
-        }
-        // 暂时 - 立即生成导出文件
-        (new ExcelExportService)->download($result);
-        return $this->success('添加成功-'.$result, [], 1, 1);
-    }
-
-    public function freeNotice()
-    {
-        return $this->dataLists(new MasterWorkerCommissionNoticeLists());
-    }
-
-    public function freeDownload()
-    {
-        $params = $this->request->get();
-        $filename = "免费班工程师统计";
-        $result = ExportLogic::add([
-            'download_type' => 4,
-            'params' => $params,
-            'name' => $filename,
-            'admin_id' => $this->adminId,
-        ]);
-        if (false === $result) {
-            return $this->fail(ExportLogic::getError());
-        }
-        // 暂时 - 立即生成导出文件
-        (new ExcelExportService)->download($result);
-        return $this->success('添加成功-'.$result, [], 1, 1);
-    }
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/28 15:31
-     */
-    public function behalfVerified()
-    {
-        $params = request()->post();
-        $result = MasterWorkerServiceOrderLogic::add($params);
-        if (true === $result) {
-            return $this->success('已核成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerServiceOrderLogic::getError());
-    }
-
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/28 15:31
-     */
-    public function behalfVerifiedelete()
-    {
-        $params = request()->post();
-        MasterWorkerServiceOrderLogic::behalfVerifiedelete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-
-
-}

+ 0 - 108
app/adminapi/controller/master_worker/MasterWorkerTeamController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\master_worker;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\master_worker\MasterWorkerTeamLists;
-use app\adminapi\logic\master_worker\MasterWorkerTeamLogic;
-use app\adminapi\validate\master_worker\MasterWorkerTeamValidate;
-
-
-/**
- * MasterWorkerTeam控制器
- * Class MasterWorkerTeamController
- * @package app\adminapi\controller
- */
-class MasterWorkerTeamController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/20 17:42
-     */
-    public function lists()
-    {
-        return $this->dataLists(new MasterWorkerTeamLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/20 17:42
-     */
-    public function add()
-    {
-        $params = (new MasterWorkerTeamValidate())->post()->goCheck('add');
-        $result = MasterWorkerTeamLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerTeamLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/20 17:42
-     */
-    public function edit()
-    {
-        $params = (new MasterWorkerTeamValidate())->post()->goCheck('edit');
-        $result = MasterWorkerTeamLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerTeamLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/20 17:42
-     */
-    public function delete()
-    {
-        $params = (new MasterWorkerTeamValidate())->post()->goCheck('delete');
-        MasterWorkerTeamLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/20 17:42
-     */
-    public function detail()
-    {
-        $params = (new MasterWorkerTeamValidate())->goCheck('detail');
-        $result = MasterWorkerTeamLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 116
app/adminapi/controller/master_worker/MasterWorkerTemporaryController.php

@@ -1,116 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\master_worker;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\master_worker\MasterWorkerTemporaryLists;
-use app\adminapi\logic\master_worker\MasterWorkerTemporaryLogic;
-use app\adminapi\validate\master_worker\MasterWorkerTemporaryValidate;
-
-
-/**
- * MasterWorkerTemporary控制器
- * Class MasterWorkerTemporaryController
- * @package app\adminapi\controller\master_worker
- */
-class MasterWorkerTemporaryController extends BaseAdminController
-{
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 18:17
-     */
-    public function lists()
-    {
-        return $this->dataLists(new MasterWorkerTemporaryLists());
-    }
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 18:17
-     */
-    public function add()
-    {
-        $params = (new MasterWorkerTemporaryValidate())->post()->goCheck('add');
-        $result = MasterWorkerTemporaryLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerTemporaryLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 18:17
-     */
-    public function edit()
-    {
-        $params = (new MasterWorkerTemporaryValidate())->post()->goCheck('edit');
-        $result = MasterWorkerTemporaryLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerTemporaryLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 18:17
-     */
-    public function delete()
-    {
-        $params = (new MasterWorkerTemporaryValidate())->post()->goCheck('delete');
-        MasterWorkerTemporaryLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 18:17
-     */
-    public function detail()
-    {
-        $params = (new MasterWorkerTemporaryValidate())->goCheck('detail');
-        $result = MasterWorkerTemporaryLogic::detail($params);
-        return $this->data($result);
-    }
-
-    /**
-     * 导入excel
-     */
-    public function import()
-    {
-        $file = request()->file('file');
-        $result = MasterWorkerTemporaryLogic::import($file);
-        if (true === $result) {
-            return $this->success('导入成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerTemporaryLogic::getError());
-    }
-}

+ 0 - 37
app/adminapi/controller/master_worker/RetentionMoneyLogController.php

@@ -1,37 +0,0 @@
-<?php
-
-namespace app\adminapi\controller\master_worker;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\validate\master_worker\MasterWorkerRetentionMoneyLogValidate;
-use app\common\logic\RetentionMoneyLogic;
-use app\workerapi\lists\MasterWorkerRetentionMoneyLogLists;
-
-class RetentionMoneyLogController extends BaseAdminController
-{
-    public array $notNeedLogin = ['totalAmount'];
-    public function lists()
-    {
-        return $this->dataLists(new MasterWorkerRetentionMoneyLogLists());
-    }
-
-    public function totalAmount()
-    {
-        $params = (new MasterWorkerRetentionMoneyLogValidate())->get()->goCheck('totalAmount');
-        $result = RetentionMoneyLogic::totalAmount($params);
-        if (false === $result) {
-            return $this->fail(RetentionMoneyLogic::getError());
-        }
-        return $this->success('操作成功',$result, 1, 0);
-    }
-
-    public function add()
-    {
-        $params = (new MasterWorkerRetentionMoneyLogValidate())->post()->goCheck('add');
-        $result = RetentionMoneyLogic::addDeduct($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(RetentionMoneyLogic::getError());
-    }
-}

+ 0 - 108
app/adminapi/controller/master_worker_credential/MasterWorkerCredentialImagesController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\master_worker_credential;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\master_worker_credential\MasterWorkerCredentialImagesLists;
-use app\adminapi\logic\master_worker_credential\MasterWorkerCredentialImagesLogic;
-use app\adminapi\validate\master_worker_credential\MasterWorkerCredentialImagesValidate;
-
-
-/**
- * MasterWorkerCredentialImages控制器
- * Class MasterWorkerCredentialImagesController
- * @package app\adminapi\controller
- */
-class MasterWorkerCredentialImagesController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/16 16:31
-     */
-    public function lists()
-    {
-        return $this->dataLists(new MasterWorkerCredentialImagesLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/16 16:31
-     */
-    public function add()
-    {
-        $params = (new MasterWorkerCredentialImagesValidate())->post()->goCheck('add');
-        $result = MasterWorkerCredentialImagesLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerCredentialImagesLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/16 16:31
-     */
-    public function edit()
-    {
-        $params = (new MasterWorkerCredentialImagesValidate())->post()->goCheck('edit');
-        $result = MasterWorkerCredentialImagesLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerCredentialImagesLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/16 16:31
-     */
-    public function delete()
-    {
-        $params = (new MasterWorkerCredentialImagesValidate())->post()->goCheck('delete');
-        MasterWorkerCredentialImagesLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/10/16 16:31
-     */
-    public function detail()
-    {
-        $params = (new MasterWorkerCredentialImagesValidate())->goCheck('detail');
-        $result = MasterWorkerCredentialImagesLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 109
app/adminapi/controller/master_worker_customer/MasterWorkerCustomerController.php

@@ -1,109 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\master_worker_customer;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\master_worker_customer\MasterWorkerCustomerLists;
-use app\adminapi\logic\master_worker_customer\MasterWorkerCustomerLogic;
-use app\adminapi\validate\master_worker_customer\MasterWorkerCustomerValidate;
-
-
-/**
- * MasterWorkerCustomer控制器
- * Class MasterWorkerCustomerController
- * @package app\adminapi\controller\master_worker_customer
- */
-class MasterWorkerCustomerController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 17:34
-     */
-    public function lists()
-    {
-        return $this->dataLists(new MasterWorkerCustomerLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 17:34
-     */
-    public function add()
-    {
-        $params = (new MasterWorkerCustomerValidate())->post()->goCheck('add');
-        $result = MasterWorkerCustomerLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerCustomerLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 17:34
-     */
-    public function edit()
-    {
-        $params = (new MasterWorkerCustomerValidate())->post()->goCheck('edit');
-        $params['admin_id'] = $this->adminId;
-        $result = MasterWorkerCustomerLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerCustomerLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 17:34
-     */
-    public function delete()
-    {
-        $params = (new MasterWorkerCustomerValidate())->post()->goCheck('delete');
-        MasterWorkerCustomerLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 17:34
-     */
-    public function detail()
-    {
-        $params = (new MasterWorkerCustomerValidate())->goCheck('detail');
-        $result = MasterWorkerCustomerLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 122
app/adminapi/controller/master_worker_register/MasterWorkerRegisterController.php

@@ -1,122 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\master_worker_register;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\master_worker_register\MasterWorkerRegisterLists;
-use app\adminapi\logic\master_worker_register\MasterWorkerRegisterLogic;
-use app\adminapi\validate\master_worker_register\MasterWorkerRegisterValidate;
-
-
-/**
- * MasterWorkerRegister控制器
- * Class MasterWorkerRegisterController
- * @package app\adminapi\controller\master_worker_register
- */
-class MasterWorkerRegisterController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/09 19:45
-     */
-    public function lists()
-    {
-        return $this->dataLists(new MasterWorkerRegisterLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/09 19:45
-     */
-    public function add()
-    {
-        $params = (new MasterWorkerRegisterValidate())->post()->goCheck('add');
-        $result = MasterWorkerRegisterLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerRegisterLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/09 19:45
-     */
-    public function edit()
-    {
-        $params = (new MasterWorkerRegisterValidate())->post()->goCheck('edit');
-        $result = MasterWorkerRegisterLogic::edit($params);
-        if (true === $result) {
-            //审批通过 - 后续事件处理
-            if($params['status'] == 1){
-                // 通知发送 账号密码/线下面授
-                MasterWorkerRegisterLogic::eventNotice($params);
-            }else{
-                // 工程师入驻失败通知:【给工程师的通知】
-                event('Notice',  [
-                    'scene_id' => 111,
-                    'params' => [
-                        'user_id' => 0,
-                        'mobile' => $params['mobile'],
-                    ]
-                ]);
-            }
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(MasterWorkerRegisterLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/09 19:45
-     */
-    public function delete()
-    {
-        $params = (new MasterWorkerRegisterValidate())->post()->goCheck('delete');
-        MasterWorkerRegisterLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/09 19:45
-     */
-    public function detail()
-    {
-        $params = (new MasterWorkerRegisterValidate())->goCheck('detail');
-        $result = MasterWorkerRegisterLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 171
app/adminapi/controller/notice/NoticeController.php

@@ -1,171 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\notice;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\notice\NoticeSettingLists;
-use app\adminapi\logic\notice\NoticeLogic;
-use app\adminapi\validate\notice\NoticeValidate;
-use app\common\enum\notice\NoticeEnum;
-use app\common\model\notice\NoticeSetting;
-use app\common\service\OnlineCustomerService;
-use app\common\service\wechat\WeChatOaService;
-
-/**
- * 通知控制器
- * Class NoticeController
- * @package app\adminapi\controller\notice
- */
-class NoticeController extends BaseAdminController
-{
-    public array $notNeedLogin = ['testNotice','assignBusinessToCustomer'];
-    /**
-     * @notes 查看通知设置列表
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 11:18
-     */
-    public function settingLists()
-    {
-        return $this->dataLists(new NoticeSettingLists());
-    }
-
-
-    /**
-     * @notes 查看通知设置详情
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 11:18
-     */
-    public function detail()
-    {
-        $params = (new NoticeValidate())->goCheck('detail');
-        $result = NoticeLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-    /**
-     * @notes 通知设置
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 11:18
-     */
-    public function set()
-    {
-        $params = $this->request->post();
-        $result = NoticeLogic::set($params);
-        if ($result) {
-            return $this->success('设置成功');
-        }
-        return $this->fail(NoticeLogic::getError());
-    }
-
-    /**
-     * @notes 获取通知弹框信息
-     */
-    public function getInformation()
-    {
-        $params = $this->request->post();
-        $params['data_rules'] = $this->adminInfo['data_rules']??[];
-        if(isset($params['business_codes']) && !empty($params['business_codes'])){
-            $result = NoticeLogic::getInformationBatch($params);
-        }else{
-            $result = NoticeLogic::getInformation($params);
-        }
-        if ($result) {
-            return $this->success('获取成功', $result);
-        }
-        return $this->fail(NoticeLogic::getError());
-    }
-    public function isOnline()
-    {
-        $params = $this->request->post();
-        $params['admin_id'] = $this->adminId??0;
-        return $this->success('', ['is_online' => OnlineCustomerService::isOnline($params['admin_id'])?1:0]);
-    }
-    public function serviceOnline()
-    {
-        $params = $this->request->post();
-        $params['admin_id'] = $this->adminId??0;
-        $result = OnlineCustomerService::addOnlineCustomerService($params['admin_id']);
-        return $this->success('', $result?:[]);
-    }
-    public function serviceOffline()
-    {
-        $params = $this->request->post();
-        $params['admin_id'] = $this->adminId??0;
-        $result = OnlineCustomerService::subOnlineCustomerService($params['admin_id']);
-        return $this->success('', $result?:[]);
-    }
-
-    // /notice.notice/assignBusinessToCustomer
-    public function assignBusinessToCustomer(){
-        $prams = $this->request->param();
-        return $this->success('', ['admin_id'=>OnlineCustomerService::assignBusinessToCustomer($prams['business_type'],$prams['business_id'])??0], 0, 1);
-    }
-
-    public function getUnifiedNotific()
-    {
-        $params = $this->request->post();
-        $params['admin_id'] = $this->adminId??0;
-        $business_codes = [];
-        isset($params['business_codes']) && $params['business_codes'] && $business_codes = explode(',',$params['business_codes']);
-        $result = OnlineCustomerService::getAllNotificList($params['admin_id'],$business_codes,$params['prefix']??'',$params['is_test']??0);
-        return $this->success('', $result?:[]);
-    }
-    /**
-     * @notes 后台测试通知
-     * http://api.weixiuloc.com:5175/adminapi/notice.notice/testNotice?scene_id=1&params={}
-     */
-    public function testNotice()
-    {
-        try {
-            $params = $this->request->get();
-            if(!isset($params['scene_id'])){
-                throw new \Exception('scene_id不存在');
-            }
-            $noticeSetting = NoticeSetting::where('scene_id', $params['scene_id'])->findOrEmpty()->toArray();
-            if(isset($noticeSetting['sms_notice']['status'])){
-                $res = event('Notice',  [
-                    'scene_id' => $params['scene_id'],
-                    'params' => json_decode($params['params'],true)
-                    /*[
-                        'user_id' => $params['user_id'],
-                    ]*/
-                ]);
-            }
-            if(isset($noticeSetting['oa_notice']['status'])){
-                $res = event('Notice',  [
-                    'scene_id' => $params['scene_id'],
-                    'params' => json_decode($params['params'],true)
-                    /*[
-                        'user_id' => $params['user_id'],
-                        'order_id' => $params['order_id']?:'',
-                        'thing9' => '测试项目名称'.time(),
-                        'time7' => date("Y-m-d H:i:s", time()),
-                        'thing8' => '预约地址'.time(),
-                        'phone_number6' => 18162757399,
-                    ]*/
-                ]);
-            }
-            dd($params,json_decode($params['params'],true),$noticeSetting,$res??[]);
-        } catch (\Exception  $e) {
-            dd($e->getMessage());
-        }
-    }
-
-
-}

+ 0 - 69
app/adminapi/controller/notice/SmsConfigController.php

@@ -1,69 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\notice;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\logic\notice\SmsConfigLogic;
-use app\adminapi\validate\notice\SmsConfigValidate;
-
-/**
- * 短信配置控制器
- * Class SmsConfigController
- * @package app\adminapi\controller\notice
- */
-class SmsConfigController extends BaseAdminController
-{
-
-    /**
-     * @notes 获取短信配置
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 11:36
-     */
-    public function getConfig()
-    {
-        $result = SmsConfigLogic::getConfig();
-        return $this->data($result);
-    }
-
-
-    /**
-     * @notes 短信配置
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 11:36
-     */
-    public function setConfig()
-    {
-        $params = (new SmsConfigValidate())->post()->goCheck('setConfig');
-        SmsConfigLogic::setConfig($params);
-        return $this->success('操作成功',[],1,1);
-    }
-
-
-    /**
-     * @notes 查看短信配置详情
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2022/3/29 11:36
-     */
-    public function detail()
-    {
-        $params = (new SmsConfigValidate())->goCheck('detail');
-        $result = SmsConfigLogic::detail($params);
-        return $this->data($result);
-    }
-
-}

+ 0 - 108
app/adminapi/controller/orders/OrderAfterQrcodeController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\orders;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\orders\OrderAfterQrcodeLists;
-use app\adminapi\logic\orders\OrderAfterQrcodeLogic;
-use app\adminapi\validate\orders\OrderAfterQrcodeValidate;
-
-
-/**
- * OrderAfterQrcode控制器
- * Class OrderAfterQrcodeController
- * @package app\adminapi\controller\orders
- */
-class OrderAfterQrcodeController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/10 13:53
-     */
-    public function lists()
-    {
-        return $this->dataLists(new OrderAfterQrcodeLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/10 13:53
-     */
-    public function add()
-    {
-        $params = (new OrderAfterQrcodeValidate())->post()->goCheck('add');
-        $result = OrderAfterQrcodeLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(OrderAfterQrcodeLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/10 13:53
-     */
-    public function edit()
-    {
-        $params = (new OrderAfterQrcodeValidate())->post()->goCheck('edit');
-        $result = OrderAfterQrcodeLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(OrderAfterQrcodeLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/10 13:53
-     */
-    public function delete()
-    {
-        $params = (new OrderAfterQrcodeValidate())->post()->goCheck('delete');
-        OrderAfterQrcodeLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/10 13:53
-     */
-    public function detail()
-    {
-        $params = (new OrderAfterQrcodeValidate())->goCheck('detail');
-        $result = OrderAfterQrcodeLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 108
app/adminapi/controller/orders/OrderReportController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\orders;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\orders\OrderReportLists;
-use app\adminapi\logic\orders\OrderReportLogic;
-use app\adminapi\validate\orders\OrderReportValidate;
-
-
-/**
- * OrderReport控制器
- * Class OrderReportController
- * @package app\adminapi\controller\orders
- */
-class OrderReportController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/01/17 13:50
-     */
-    public function lists()
-    {
-        return $this->dataLists(new OrderReportLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/01/17 13:50
-     */
-    public function add()
-    {
-        $params = (new OrderReportValidate())->post()->goCheck('add');
-        $result = OrderReportLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(OrderReportLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/01/17 13:50
-     */
-    public function edit()
-    {
-        $params = (new OrderReportValidate())->post()->goCheck('edit');
-        $result = OrderReportLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(OrderReportLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/01/17 13:50
-     */
-    public function delete()
-    {
-        $params = (new OrderReportValidate())->post()->goCheck('delete');
-        OrderReportLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/01/17 13:50
-     */
-    public function detail()
-    {
-        $params = (new OrderReportValidate())->goCheck('detail');
-        $result = OrderReportLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 108
app/adminapi/controller/orders/RechargeOrderController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\orders;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\orders\RechargeOrderLists;
-use app\adminapi\logic\orders\RechargeOrderLogic;
-use app\adminapi\validate\orders\RechargeOrderValidate;
-
-
-/**
- * RechargeOrder控制器
- * Class RechargeOrderController
- * @package app\adminapi\controller\orders
- */
-class RechargeOrderController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 14:53
-     */
-    public function lists()
-    {
-        return $this->dataLists(new RechargeOrderLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 14:53
-     */
-    public function add()
-    {
-        $params = (new RechargeOrderValidate())->post()->goCheck('add');
-        $result = RechargeOrderLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(RechargeOrderLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 14:53
-     */
-    public function edit()
-    {
-        $params = (new RechargeOrderValidate())->post()->goCheck('edit');
-        $result = RechargeOrderLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(RechargeOrderLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 14:53
-     */
-    public function delete()
-    {
-        $params = (new RechargeOrderValidate())->post()->goCheck('delete');
-        RechargeOrderLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/10 14:53
-     */
-    public function detail()
-    {
-        $params = (new RechargeOrderValidate())->goCheck('detail');
-        $result = RechargeOrderLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 108
app/adminapi/controller/performance/PerformanceRulesController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\performance;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\performance\PerformanceRulesLists;
-use app\adminapi\logic\performance\PerformanceRulesLogic;
-use app\adminapi\validate\performance\PerformanceRulesValidate;
-
-
-/**
- * PerformanceRules控制器
- * Class PerformanceRulesController
- * @package app\adminapi\controller\performance
- */
-class PerformanceRulesController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/15 17:52
-     */
-    public function lists()
-    {
-        return $this->dataLists(new PerformanceRulesLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/15 17:52
-     */
-    public function add()
-    {
-        $params = (new PerformanceRulesValidate())->post()->goCheck('add');
-        $result = PerformanceRulesLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(PerformanceRulesLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/15 17:52
-     */
-    public function edit()
-    {
-        $params = (new PerformanceRulesValidate())->post()->goCheck('edit');
-        $result = PerformanceRulesLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(PerformanceRulesLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/15 17:52
-     */
-    public function delete()
-    {
-        $params = (new PerformanceRulesValidate())->post()->goCheck('delete');
-        PerformanceRulesLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/15 17:52
-     */
-    public function detail()
-    {
-        $params = (new PerformanceRulesValidate())->goCheck('detail');
-        $result = PerformanceRulesLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 60
app/adminapi/controller/platform_api/MeiTuanApiController.php

@@ -1,60 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\platform_api;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\validate\works\ServiceWorkValidate;
-use app\common\logic\ThirdOrderLogic;
-use app\common\model\third\ThirdOrders;
-
-
-/**
- * MeiTuanApiController
- * Class MeiTuanApiController
- * @package app\adminapi\controller\platform_api
- */
-class MeiTuanApiController extends BaseAdminController
-{
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2025/01/17 13:50
-     */
-    public function bookresult()
-    {
-        $params = (new ServiceWorkValidate())->goCheck('detail');
-        $order = ThirdOrders::where('work_id',$params['id'])->order('create_time desc')->findOrEmpty();
-        if($order->isEmpty()){
-            return $this->fail('美团订单不存在');
-        }
-        if($order['bookStatus']!=1){
-            return $this->fail('订单状态异常,无法接单');
-        }
-        $result = ThirdOrderLogic::bookresultcallback(json_decode($order['request_msg'],true)['opBizCode'],$order['orderId'],2);
-        if(!empty($result['code']) && $result['code']==200){
-            $order->bookStatus = 2;
-            $order->save();
-            return $this->success('接单成功');
-        }else{
-            return $this->fail($result['msg']);
-        }
-    }
-
-
-}

+ 0 - 108
app/adminapi/controller/platform_rule/PerformanceWorkerRulesController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\platform_rule;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\platform_rule\PerformanceWorkerRulesLists;
-use app\adminapi\logic\platform_rule\PerformanceWorkerRulesLogic;
-use app\adminapi\validate\platform_rule\PerformanceWorkerRulesValidate;
-
-
-/**
- * PerformanceWorkerRules控制器
- * Class PerformanceWorkerRulesController
- * @package app\adminapi\controller\platform_rule
- */
-class PerformanceWorkerRulesController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/08 14:51
-     */
-    public function lists()
-    {
-        return $this->dataLists(new PerformanceWorkerRulesLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/08 14:51
-     */
-    public function add()
-    {
-        $params = (new PerformanceWorkerRulesValidate())->post()->goCheck('add');
-        $result = PerformanceWorkerRulesLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(PerformanceWorkerRulesLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/08 14:51
-     */
-    public function edit()
-    {
-        $params = (new PerformanceWorkerRulesValidate())->post()->goCheck('edit');
-        $result = PerformanceWorkerRulesLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(PerformanceWorkerRulesLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/08 14:51
-     */
-    public function delete()
-    {
-        $params = (new PerformanceWorkerRulesValidate())->post()->goCheck('delete');
-        PerformanceWorkerRulesLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/12/08 14:51
-     */
-    public function detail()
-    {
-        $params = (new PerformanceWorkerRulesValidate())->goCheck('detail');
-        $result = PerformanceWorkerRulesLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 108
app/adminapi/controller/platform_rule/PlatformRuleController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\platform_rule;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\platform_rule\PlatformRuleLists;
-use app\adminapi\logic\platform_rule\PlatformRuleLogic;
-use app\adminapi\validate\platform_rule\PlatformRuleValidate;
-
-
-/**
- * PlatformRule控制器
- * Class PlatformRuleController
- * @package app\adminapi\controller\platform_rule
- */
-class PlatformRuleController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/11 11:41
-     */
-    public function lists()
-    {
-        return $this->dataLists(new PlatformRuleLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/11 11:41
-     */
-    public function add()
-    {
-        $params = (new PlatformRuleValidate())->post()->goCheck('add');
-        $result = PlatformRuleLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(PlatformRuleLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/11 11:41
-     */
-    public function edit()
-    {
-        $params = (new PlatformRuleValidate())->post()->goCheck('edit');
-        $result = PlatformRuleLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(PlatformRuleLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/11 11:41
-     */
-    public function delete()
-    {
-        $params = (new PlatformRuleValidate())->post()->goCheck('delete');
-        PlatformRuleLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/07/11 11:41
-     */
-    public function detail()
-    {
-        $params = (new PlatformRuleValidate())->goCheck('detail');
-        $result = PlatformRuleLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 130
app/adminapi/controller/property/PropertyActivityController.php

@@ -1,130 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\property;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\property\PropertyActivityLists;
-use app\adminapi\logic\property\PropertyActivityLogic;
-use app\adminapi\validate\property\PropertyActivityValidate;
-
-
-/**
- * PropertyActivity控制器
- * Class PropertyActivityController
- * @package app\adminapi\controller
- */
-class PropertyActivityController extends BaseAdminController
-{
-
-    public array $notNeedLogin = ['newDataExecute'];
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/21 15:04
-     */
-    public function lists()
-    {
-        return $this->dataLists(new PropertyActivityLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/21 15:04
-     */
-    public function add()
-    {
-        $params = (new PropertyActivityValidate())->post()->goCheck('add');
-        $result = PropertyActivityLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(PropertyActivityLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/21 15:04
-     */
-    public function edit()
-    {
-        $params = (new PropertyActivityValidate())->post()->goCheck('edit');
-        $result = PropertyActivityLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(PropertyActivityLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/21 15:04
-     */
-    public function delete()
-    {
-        $params = (new PropertyActivityValidate())->post()->goCheck('delete');
-        PropertyActivityLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/11/21 15:04
-     */
-    public function detail()
-    {
-        $params = (new PropertyActivityValidate())->goCheck('detail');
-        $result = PropertyActivityLogic::detail($params);
-        return $this->data($result);
-    }
-
-    public function propertys()
-    {
-        return $this->success('',\app\adminapi\logic\property\PropertyHeadLogic::selectList(), 1, 1);
-    }
-
-    public function getQRCode()
-    {
-        $params = (new PropertyActivityValidate())->post()->goCheck('detail');
-        return $this->success('',['qrcode'=>PropertyActivityLogic::getQRCode($params,$this->request->domain())], 1, 1);
-    }
-
-    // 上线前的旧数据处理为可用的新数据
-    public function copy()
-    {
-        $params = (new PropertyActivityValidate())->post()->goCheck('detail');
-        $result = PropertyActivityLogic::copy($params);
-        if (true === $result) {
-            return $this->success('复制成功', [], 1, 1);
-        }
-        return $this->fail(PropertyActivityLogic::getError());
-    }
-
-
-}

+ 0 - 108
app/adminapi/controller/property/PropertyCommissionController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\property;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\property\PropertyCommissionLists;
-use app\adminapi\logic\property\PropertyCommissionLogic;
-use app\adminapi\validate\property\PropertyCommissionValidate;
-
-
-/**
- * PropertyCommission控制器
- * Class PropertyCommissionController
- * @package app\adminapi\controller
- */
-class PropertyCommissionController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/20 16:17
-     */
-    public function lists()
-    {
-        return $this->dataLists(new PropertyCommissionLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/20 16:17
-     */
-    public function add()
-    {
-        $params = (new PropertyCommissionValidate())->post()->goCheck('add');
-        $result = PropertyCommissionLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(PropertyCommissionLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/20 16:17
-     */
-    public function edit()
-    {
-        $params = (new PropertyCommissionValidate())->post()->goCheck('edit');
-        $result = PropertyCommissionLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(PropertyCommissionLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/20 16:17
-     */
-    public function delete()
-    {
-        $params = (new PropertyCommissionValidate())->post()->goCheck('delete');
-        PropertyCommissionLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/20 16:17
-     */
-    public function detail()
-    {
-        $params = (new PropertyCommissionValidate())->goCheck('detail');
-        $result = PropertyCommissionLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 122
app/adminapi/controller/property/PropertyHeadController.php

@@ -1,122 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\property;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\property\PropertyHeadLists;
-use app\adminapi\logic\property\PropertyHeadLogic;
-use app\adminapi\logic\user\UserLogic;
-use app\adminapi\validate\property\PropertyHeadValidate;
-
-
-/**
- * PropertyHead控制器
- * Class PropertyHeadController
- * @package app\adminapi\controller
- */
-class PropertyHeadController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/19 10:48
-     */
-    public function lists()
-    {
-        return $this->dataLists(new PropertyHeadLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/19 10:48
-     */
-    public function add()
-    {
-        $params = (new PropertyHeadValidate())->post()->goCheck('add');
-        $result = PropertyHeadLogic::add($params);
-        if (true === $result) {
-            // 通过手机号查询用户是否注册 - 已注册绑定id ,未注册注册再绑定id
-            $userId = UserLogic::getUserIdByMobile($params['head_mobile'], true);
-            PropertyHeadLogic::updateUserId($params['head_mobile'],$userId);
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(PropertyHeadLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/19 10:48
-     */
-    public function edit()
-    {
-        $params = (new PropertyHeadValidate())->post()->goCheck('edit');
-        $result = PropertyHeadLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(PropertyHeadLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/19 10:48
-     */
-    public function delete()
-    {
-        //$params = (new PropertyHeadValidate())->post()->goCheck('delete');
-        //PropertyHeadLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/19 10:48
-     */
-    public function detail()
-    {
-        $params = (new PropertyHeadValidate())->goCheck('detail');
-        $result = PropertyHeadLogic::detail($params);
-        return $this->data($result);
-    }
-
-    /**
-     * @notes 获取二维码
-     * @return \think\response\Json
-     */
-    public function getQrcode()
-    {
-        $params = (new PropertyHeadValidate())->goCheck('detail');
-        $result = PropertyHeadLogic::getWechatQrcode($params, $this->request->domain());
-        return $this->data(['qrcode'=>$result]);
-    }
-
-}

+ 0 - 161
app/adminapi/controller/property/PropertyOrderController.php

@@ -1,161 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\property;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\property\PropertyOrderAnalysis;
-use app\adminapi\lists\property\PropertyOrderLists;
-use app\adminapi\logic\property\PropertyOrderLogic;
-use app\adminapi\validate\property\PropertyOrderValidate;
-use app\api\validate\ServiceOrderValidate;
-
-
-/**
- * PropertyOrder控制器
- * Class PropertyOrderController
- * @package app\adminapi\controller
- */
-class PropertyOrderController extends BaseAdminController
-{
-    public array $notNeedLogin = ['placeOrder'];
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/19 14:48
-     */
-    public function lists()
-    {
-        return $this->dataLists(new PropertyOrderLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/19 14:48
-     */
-    public function add()
-    {
-        /*$params = (new PropertyOrderValidate())->post()->goCheck('add');
-        $result = PropertyOrderLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(PropertyOrderLogic::getError());*/
-        return $this->fail('无后台添加');
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/19 14:48
-     */
-    public function edit()
-    {
-        $params = (new PropertyOrderValidate())->post()->goCheck('edit');
-        $result = PropertyOrderLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(PropertyOrderLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/19 14:48
-     */
-    public function delete()
-    {
-        $params = (new PropertyOrderValidate())->post()->goCheck('delete');
-        PropertyOrderLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/19 14:48
-     */
-    public function detail()
-    {
-        $params = (new PropertyOrderValidate())->goCheck('detail');
-        $result = PropertyOrderLogic::detail($params);
-        return $this->data($result);
-    }
-
-    /**
-     * @notes 客服下工单
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/19 14:48
-     */
-    public function placeOrder()
-    {
-        $serviceOrderParams = (new ServiceOrderValidate())->post()->goCheck('add');
-        if (empty($serviceOrderParams['id'])){
-            return $this->fail('物业单id不能为空');
-        }
-        $result = PropertyOrderLogic::placeOrder($serviceOrderParams);
-        if (true === $result) {
-            return $this->success('客服下单成功', [], 1, 1);
-        }
-        return $this->fail(PropertyOrderLogic::getError());
-    }
-    /**
-     * @notes 客服取消订单
-     * @return \think\response\Json
-     */
-    public function cancel()
-    {
-        $params = (new PropertyOrderValidate())->post()->goCheck('detail');
-        $result = PropertyOrderLogic::cancel($params);
-        if (true === $result) {
-            return $this->success('取消成功', [], 1, 1);
-        }
-        return $this->fail(PropertyOrderLogic::getError());
-    }
-    /**
-     * @notes 物业订单数据分析
-     * @return \think\response\Json
-     */
-    public function propertyOrderAnalysis()
-    {
-        return $this->dataLists(new PropertyOrderAnalysis());
-    }
-    public function addCustomerLog()
-    {
-        $params = (new PropertyOrderValidate())->post()->goCheck('detail',[
-            'admin_id' => $this->adminId,
-        ]);
-        $result = PropertyOrderLogic::addCustomerLog($params);
-        if (true === $result) {
-            return $this->success('操作成功!', [], 1, 1);
-        }
-        return $this->fail(PropertyOrderLogic::getError());
-    }
-}

+ 0 - 136
app/adminapi/controller/property/PropertySurplusLogController.php

@@ -1,136 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\property;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\property\PropertySurplusLogLists;
-use app\adminapi\logic\property\PropertySurplusLogLogic;
-use app\adminapi\validate\property\PropertySurplusLogValidate;
-
-
-/**
- * PropertySurplusLog控制器
- * Class PropertySurplusLogController
- * @package app\adminapi\controller
- */
-class PropertySurplusLogController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/20 16:31
-     */
-    public function lists()
-    {
-        return $this->dataLists(new PropertySurplusLogLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/20 16:31
-     */
-    public function add()
-    {
-        $params = (new PropertySurplusLogValidate())->post()->goCheck('add');
-        $result = PropertySurplusLogLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(PropertySurplusLogLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑 -- 审核提现:入账/取消
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/20 16:31
-     */
-    public function edit()
-    {
-        $params = (new PropertySurplusLogValidate())->post()->goCheck('edit');
-        $result = PropertySurplusLogLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(PropertySurplusLogLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/20 16:31
-     */
-    public function delete()
-    {
-        $params = (new PropertySurplusLogValidate())->post()->goCheck('delete');
-        PropertySurplusLogLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/20 16:31
-     */
-    public function detail()
-    {
-        $params = (new PropertySurplusLogValidate())->goCheck('detail');
-        $result = PropertySurplusLogLogic::detail($params);
-        return $this->data($result);
-    }
-
-    /**
-     * @notes 入账
-     * @return \think\response\Json
-     */
-    public function entry()
-    {
-        $params = (new PropertySurplusLogValidate())->post()->goCheck('detail');
-        $params['status'] = 1;
-        $result = PropertySurplusLogLogic::edit($params);
-        if (true === $result) {
-            return $this->success('入账成功', [], 1, 1);
-        }
-        return $this->fail(PropertySurplusLogLogic::getError());
-    }
-    /**
-     * @notes 取消提现
-     * @return \think\response\Json
-     */
-    public function cancel()
-    {
-        $params = (new PropertySurplusLogValidate())->post()->goCheck('detail');
-        $params['status'] = 2;
-        $result = PropertySurplusLogLogic::edit($params);
-        if (true === $result) {
-            return $this->success('取消成功', [], 1, 1);
-        }
-        return $this->fail(PropertySurplusLogLogic::getError());
-    }
-
-}

+ 0 - 108
app/adminapi/controller/property/PropertyUserController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\property;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\property\PropertyUserLists;
-use app\adminapi\logic\property\PropertyUserLogic;
-use app\adminapi\validate\property\PropertyUserValidate;
-
-
-/**
- * PropertyUser控制器
- * Class PropertyUserController
- * @package app\adminapi\controller
- */
-class PropertyUserController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/19 14:35
-     */
-    public function lists()
-    {
-        return $this->dataLists(new PropertyUserLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/19 14:35
-     */
-    public function add()
-    {
-        $params = (new PropertyUserValidate())->post()->goCheck('add');
-        $result = PropertyUserLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(PropertyUserLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/19 14:35
-     */
-    public function edit()
-    {
-        $params = (new PropertyUserValidate())->post()->goCheck('edit');
-        $result = PropertyUserLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(PropertyUserLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/19 14:35
-     */
-    public function delete()
-    {
-        $params = (new PropertyUserValidate())->post()->goCheck('delete');
-        PropertyUserLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author likeadmin
-     * @date 2024/09/19 14:35
-     */
-    public function detail()
-    {
-        $params = (new PropertyUserValidate())->goCheck('detail');
-        $result = PropertyUserLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

+ 0 - 107
app/adminapi/controller/recharge/RechargeController.php

@@ -1,107 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-namespace app\adminapi\controller\recharge;
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\recharge\RechargeLists;
-use app\adminapi\logic\recharge\RechargeLogic;
-use app\adminapi\validate\recharge\RechargeRefundValidate;
-
-/**
- * 充值控制器
- * Class RechargeController
- * @package app\adminapi\controller\recharge
- */
-class RechargeController extends BaseAdminController
-{
-
-    /**
-     * @notes 获取充值设置
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2023/2/22 16:48
-     */
-    public function getConfig()
-    {
-        $result = RechargeLogic::getConfig();
-        return $this->data($result);
-    }
-
-
-    /**
-     * @notes 充值设置
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2023/2/22 16:48
-     */
-    public function setConfig()
-    {
-        $params = $this->request->post();
-        $result = RechargeLogic::setConfig($params);
-        if($result) {
-            return $this->success('操作成功', [], 1, 1);
-        }
-        return $this->fail(RechargeLogic::getError());
-    }
-
-
-    /**
-     * @notes 充值记录
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2023/2/24 16:01
-     */
-    public function lists()
-    {
-        return $this->dataLists(new RechargeLists());
-    }
-
-
-    /**
-     * @notes 退款
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2023/2/28 17:29
-     */
-    public function refund()
-    {
-        $params = (new RechargeRefundValidate())->post()->goCheck('refund');
-        $result = RechargeLogic::refund($params, $this->adminId);
-        list($flag, $msg) = $result;
-        if(false === $flag) {
-            return $this->fail($msg);
-        }
-        return $this->success($msg, [], 1, 1);
-    }
-
-
-    /**
-     * @notes 重新退款
-     * @return \think\response\Json
-     * @author 段誉
-     * @date 2023/2/28 19:17
-     */
-    public function refundAgain()
-    {
-        $params = (new RechargeRefundValidate())->post()->goCheck('again');
-        $result = RechargeLogic::refundAgain($params, $this->adminId);
-        list($flag, $msg) = $result;
-        if(false === $flag) {
-            return $this->fail($msg);
-        }
-        return $this->success($msg, [], 1, 1);
-    }
-
-}

+ 0 - 108
app/adminapi/controller/reviews/GoodsReviewsController.php

@@ -1,108 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeadmin快速开发前后端分离管理后台(PHP版)
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | 开源版本可自由商用,可去除界面版权logo
-// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
-// | github下载:https://github.com/likeshop-github/likeadmin
-// | 访问官网:https://www.likeadmin.cn
-// | likeadmin团队 版权所有 拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeadminTeam
-// +----------------------------------------------------------------------
-
-
-namespace app\adminapi\controller\reviews;
-
-
-use app\adminapi\controller\BaseAdminController;
-use app\adminapi\lists\reviews\GoodsReviewsLists;
-use app\adminapi\logic\reviews\GoodsReviewsLogic;
-use app\adminapi\validate\reviews\GoodsReviewsValidate;
-
-
-/**
- * GoodsReviews控制器
- * Class GoodsReviewsController
- * @package app\adminapi\controller\reviews
- */
-class GoodsReviewsController extends BaseAdminController
-{
-
-
-    /**
-     * @notes 获取列表
-     * @return \think\response\Json
-     * @author whitef
-     * @date 2024/07/09 17:11
-     */
-    public function lists()
-    {
-        return $this->dataLists(new GoodsReviewsLists());
-    }
-
-
-    /**
-     * @notes 添加
-     * @return \think\response\Json
-     * @author whitef
-     * @date 2024/07/09 17:11
-     */
-    public function add()
-    {
-        $params = (new GoodsReviewsValidate())->post()->goCheck('add');
-        $result = GoodsReviewsLogic::add($params);
-        if (true === $result) {
-            return $this->success('添加成功', [], 1, 1);
-        }
-        return $this->fail(GoodsReviewsLogic::getError());
-    }
-
-
-    /**
-     * @notes 编辑
-     * @return \think\response\Json
-     * @author whitef
-     * @date 2024/07/09 17:11
-     */
-    public function edit()
-    {
-        $params = (new GoodsReviewsValidate())->post()->goCheck('edit');
-        $result = GoodsReviewsLogic::edit($params);
-        if (true === $result) {
-            return $this->success('编辑成功', [], 1, 1);
-        }
-        return $this->fail(GoodsReviewsLogic::getError());
-    }
-
-
-    /**
-     * @notes 删除
-     * @return \think\response\Json
-     * @author whitef
-     * @date 2024/07/09 17:11
-     */
-    public function delete()
-    {
-        $params = (new GoodsReviewsValidate())->post()->goCheck('delete');
-        GoodsReviewsLogic::delete($params);
-        return $this->success('删除成功', [], 1, 1);
-    }
-
-
-    /**
-     * @notes 获取详情
-     * @return \think\response\Json
-     * @author whitef
-     * @date 2024/07/09 17:11
-     */
-    public function detail()
-    {
-        $params = (new GoodsReviewsValidate())->goCheck('detail');
-        $result = GoodsReviewsLogic::detail($params);
-        return $this->data($result);
-    }
-
-
-}

Some files were not shown because too many files changed in this diff