|
|
|
<?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);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|