showTemplate.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2018-2020 rights reserved.
  6. // +----------------------------------------------------------------------
  7. // |
  8. // +----------------------------------------------------------------------
  9. // | Date: 2020-09-05 09:21
  10. // +----------------------------------------------------------------------
  11. use think\facade\Route;
  12. //@名片模板列表
  13. Route::group('showTemplate', function () {
  14. //@列表
  15. Route::rule('list', 'ShowTemplate/list');
  16. //@添加或编辑
  17. Route::rule('add', 'ShowTemplate/add');
  18. //@服务类型
  19. Route::rule('serviceType', 'ShowTemplate/serviceType');
  20. //@添加服务类型
  21. Route::rule('serviceTypeAdd', 'ShowTemplate/serviceTypeAdd');
  22. //@删除服务类型
  23. Route::rule('serviceTypeDel', 'ShowTemplate/serviceTypeDel');
  24. //@服务时长类型
  25. Route::rule('serviceTimeType', 'ShowTemplate/serviceTimeTypeList');
  26. //@添加服务时长类型
  27. Route::rule('serviceTimeTypeAdd', 'ShowTemplate/serviceTimeTypeAdd');
  28. //@删除服务时长类型
  29. Route::rule('serviceTimeTypeDel', 'ShowTemplate/serviceTimeTypeDel');
  30. })->middleware([
  31. \app\system\middleware\AllowOriginMiddleware::class,
  32. \app\system\middleware\AdminAuthTokenMiddleware::class,
  33. \app\system\middleware\AdminCkeckRoleMiddleware::class
  34. ]);