mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
separate route permission + token manage
This commit is contained in:
@@ -42,6 +42,7 @@ return [
|
||||
'oauth_access_token' => 'Access tokens',
|
||||
'oauth_auth_code' => 'Auth codes',
|
||||
'oauth_refresh_token' => 'Refresh tokens',
|
||||
'token' => 'Access tokens',
|
||||
],
|
||||
'resources' => [
|
||||
'agent_allow' => [
|
||||
|
||||
@@ -217,8 +217,4 @@ return [
|
||||
'text' => 'Allow Userbar',
|
||||
'desc' => ' Get his userba',
|
||||
],
|
||||
'torrent:list' => [
|
||||
'text' => 'Get torrent list',
|
||||
'desc' => 'Get torrent list',
|
||||
],
|
||||
];
|
||||
|
||||
@@ -5,4 +5,6 @@ return array (
|
||||
'permission' => 'Permissions',
|
||||
'maximum_allow_number_reached' => 'The number reaches the upper limit',
|
||||
'create_success_tip' => 'The token was created successfully, this data is displayed only once, please save it properly<br/><br/>:token',
|
||||
'last_used_at' => 'Recent usage time',
|
||||
'token' => 'summary',
|
||||
);
|
||||
|
||||
@@ -40,6 +40,7 @@ return [
|
||||
'oauth_access_token' => '访问令牌',
|
||||
'oauth_auth_code' => '授权码',
|
||||
'oauth_refresh_token' => '刷新令牌',
|
||||
'token' => '访问令牌',
|
||||
],
|
||||
'resources' => [
|
||||
'agent_allow' => [
|
||||
|
||||
@@ -217,18 +217,4 @@ return [
|
||||
'text' => '允许个性条',
|
||||
'desc' => '允许用户使用个性条',
|
||||
],
|
||||
|
||||
//新加
|
||||
'torrent:list' => [
|
||||
'text' => '获取种子列表',
|
||||
'desc' => '获取种子列表',
|
||||
],
|
||||
'torrent:view' => [
|
||||
'text' => '查看种子详情',
|
||||
'desc' => '查看种子详情',
|
||||
],
|
||||
'user:view' => [
|
||||
'text' => '查看用户基本信息',
|
||||
'desc' => '查看用户基本信息',
|
||||
],
|
||||
];
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'torrent:upload' => [
|
||||
'text' => '发布种子',
|
||||
'desc' => '发布种子',
|
||||
],
|
||||
'torrent:list' => [
|
||||
'text' => '获取种子列表',
|
||||
'desc' => '获取种子列表',
|
||||
],
|
||||
'torrent:view' => [
|
||||
'text' => '查看种子详情',
|
||||
'desc' => '查看种子详情',
|
||||
],
|
||||
'user:view' => [
|
||||
'text' => '查看用户基本信息',
|
||||
'desc' => '查看用户基本信息',
|
||||
],
|
||||
];
|
||||
@@ -5,4 +5,6 @@ return [
|
||||
"permission" => "权限",
|
||||
"maximum_allow_number_reached" => "数量达到上限",
|
||||
"create_success_tip" => "token 创建成功,此数据只展示一次,请妥善保存<br/><br/>:token",
|
||||
"last_used_at" => "最近使用时间",
|
||||
"token" => "摘要",
|
||||
];
|
||||
|
||||
@@ -42,6 +42,7 @@ return [
|
||||
'oauth_access_token' => '訪問令牌',
|
||||
'oauth_auth_code' => '授權碼',
|
||||
'oauth_refresh_token' => '刷新令牌',
|
||||
'token' => '訪問令牌',
|
||||
],
|
||||
'resources' => [
|
||||
'agent_allow' => [
|
||||
|
||||
@@ -217,8 +217,4 @@ return [
|
||||
'text' => '允許個性條',
|
||||
'desc' => '允許用戶使用個性條',
|
||||
],
|
||||
'torrent:list' => [
|
||||
'text' => '獲取種子列表',
|
||||
'desc' => '獲取種子列表',
|
||||
],
|
||||
];
|
||||
|
||||
@@ -5,4 +5,6 @@ return array (
|
||||
'permission' => '權限',
|
||||
'maximum_allow_number_reached' => '數量達到上限',
|
||||
'create_success_tip' => 'token 創建成功,此數據只展示一次,請妥善保存<br/><br/>:token',
|
||||
'last_used_at' => '最近使用時間',
|
||||
'token' => '摘要',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user