4
0
Fork 0
dcat-admin/packages/keywords
panliang 9183e81cc3 add menu 2022-10-12 14:02:21 +08:00
..
resources update keywords 2022-09-15 10:09:03 +08:00
src add menu 2022-10-12 14:02:21 +08:00
updates update keywords 2022-09-15 10:09:03 +08:00
.gitignore add packages 2022-07-27 12:31:08 +08:00
README.md update keywords 2022-09-15 10:09:03 +08:00
composer.json update keywords 2022-09-15 10:09:03 +08:00
version.php update keywords 2022-09-15 10:09:03 +08:00

README.md

字典表管理

数据表结构

name type null default index comment
id bigint unsigned notnull - primary, auto_increment 主键
key varchar(191) notnull - unique -
value string(191) nullable - - -
sort int unsigned - 0 - 排序(asc)
parent_id bigint unsigned notnull 0 - 上级id
type_key string(191) nullable - - 上级的key
level int unsigned - 1 - 所属层级

权限

$permissions = [
    'keywords' => ['name' => '字典管理', 'curd' => true],
];

菜单

$menus = [
    ['title' => '字典管理', 'icon' => '', 'uri' => '/keywords', 'permission' => 'keywords'],
];