智慧教务系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
1.3 KiB

<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的多应用管理平台
// +----------------------------------------------------------------------
// | 官方网址:https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace app\api\controller\apiController;
use app\Request;
use app\service\api\apiService\ResourceSharingService;
use core\base\BaseApiService;
/**
* 资源共享表相关接口
* Class Personnel
* @package app\api\controller\apiController
*/
class ResourceSharing extends BaseApiService
{
//资源共享列表
public function index(Request $request)
{
$user_id = $this->member_id;//当前登陆的用户id
$page = $request->param('page','1');//
$limit = $request->param('limit','10');//
$shared_by = $request->param('shared_by','');//共享人ID
$where = [
'shared_by'=>$shared_by,
];
$res= (new ResourceSharingService())->getList($where);
return success($res);
}
}