-
-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(init): add rules & permission to init.js
- Loading branch information
Showing
3 changed files
with
36 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
exports.permissions = [ | ||
{ name: 'role.create', label: '创建角色' }, | ||
{ name: 'role.read', label: '读取角色' }, | ||
{ name: 'role.edit', label: '编辑角色' }, | ||
{ name: 'role.delete', label: '删除角色' }, | ||
|
||
{ name: 'permission.create', label: '创建权限' }, | ||
{ name: 'permission.read', label: '读取权限' }, | ||
{ name: 'permission.edit', label: '编辑权限' }, | ||
{ name: 'permission.delete', label: '删除权限' }, | ||
|
||
{ name: 'admin.create', label: '创建管理员' }, | ||
{ name: 'admin.read', label: '获取管理员' }, | ||
{ name: 'admin.edit', label: '编辑管理员' }, | ||
{ name: 'admin.delete', label: '删除管理员' }, | ||
|
||
{ name: 'rule.create', label: '创建访问规则' }, | ||
{ name: 'rule.read', label: '获取访问规则' }, | ||
{ name: 'rule.edit', label: '编辑访问规则' }, | ||
{ name: 'rule.delete', label: '删除访问规则' }, | ||
{ name: 'rule.apply', label: '应用访问规则' }, | ||
|
||
{ name: 'function.create', label: '创建云函数' }, | ||
{ name: 'function.read', label: '获取云函数' }, | ||
{ name: 'function.edit', label: '编辑云函数' }, | ||
{ name: 'function.delete', label: '删除云函数' }, | ||
{ name: 'function.publish', label: '发布云函数' }, | ||
{ name: 'function.debug', label: '调试云函数' }, | ||
|
||
{ name: 'function_logs.read', label: '查看云函数日志' }, | ||
{ name: 'function_logs.delete', label: '查看云函数日志' } | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters