shares->list( $group, $this->currentUser($request)['user_uid'], $request->integer('per_page', 20), )); } /** * 把资源移出团队 * * 团队的 owner / manager,或资源的拥有者才能调用。只删这条共享,资源本身不动。 * * @urlParam group string required 团队 uid * @urlParam share string required 共享记录 id * * @responseStatus 204 已移出,无响应体 * @responseStatus 403 不能移出这项资源 */ public function destroy(Request $request, GroupInfo $group, Share $share) { // FIXME: {share} 是 shares.id(雪花 id),应改成被共享资源的 uuid:一项资源在一个团队下只共享一次 // (唯一索引 res_id + res_type + cooperator_id + cooperator_type),路由改为 groups/{group}/shares/{res_id}。 // 见 routes/v3/group.php。 $this->shares->remove($group, $share, $this->currentUser($request)['user_uid']); return response()->noContent(); } }