作者 lyh

gx

... ... @@ -96,7 +96,7 @@ class ReplaceHtmlController extends BaseController
}
/**
* @remark :还原
* @remark :主任务还原
* @name :reductionHtml
* @author :lyh
* @method :post
... ...
<?php
/**
* @remark :
* @name :TutorialController.php
* @author :lyh
* @method :post
* @time :2024/5/14 9:59
*/
namespace App\Http\Controllers\Bside\BCom;
use App\Enums\Common\Code;
use App\Http\Controllers\Bside\BaseController;
use App\Models\Tutorial\Tutorial;
/**
* @remark :oa教程
* @name :TutorialController
* @author :lyh
* @method :post
* @time :2024/5/14 10:00
*/
class TutorialController extends BaseController
{
/**
* @remark :oa列表
* @name :lists
* @author :lyh
* @method :post
* @time :2024/5/14 10:00
*/
public function lists(Tutorial $tutorial){
$this->map['status'] = 0;
$lists = $tutorial->lists($this->map,$this->page,$this->row,$this->order);
if(!empty($lists) && !empty($lists['list'])){
foreach ($lists['list'] as $k => $v){
$v['download_url'] = url('b/file_manager_downLoad?path='.$v['path']);
$lists['list'][$k] = $v;
}
}
$this->response('success',Code::SUCCESS,$lists);
}
}
... ...
... ... @@ -530,6 +530,10 @@ Route::middleware(['bloginauth'])->group(function () {
Route::any('/month', [\App\Http\Controllers\Bside\BCom\MonthReportController::class, 'getMonth'])->name('month_report_getMonth');
Route::any('/read', [\App\Http\Controllers\Bside\BCom\MonthReportController::class, 'monthReportInfo'])->name('month_report_read');
});
//oa教程
Route::prefix('tutorial')->group(function () {
Route::any('/', [\App\Http\Controllers\Bside\BCom\TutorialController::class, 'lists'])->name('tutorial_lists');
});
});
//无需登录验证的路由组
Route::group([], function () {
... ...