4
0
Fork 0
dcat-admin/packages/banner
panliang 9183e81cc3 add menu 2022-10-12 14:02:21 +08:00
..
resources tag 2022-09-19 15:47:08 +08:00
src add menu 2022-10-12 14:02:21 +08:00
updates update banner 2022-09-16 10:21:36 +08:00
.gitignore 添加广告位包 2022-07-28 17:51:45 +08:00
README.md banner 2022-09-16 10:40:07 +08:00
composer.json 调整接口 2022-07-29 09:46:08 +08:00
version.php update banner 2022-09-16 10:21:36 +08:00

README.md

Dact-Admin Extension Banner

广告管理

权限

$permissions = [
    'image' => ['name' => '广告管理', 'curd' => false, 'children' => [
        'banner_ads' => ['name' => '广告位置', 'curd' => true],
        'banners' => ['name' => '广告内容', 'curd' => true],
    ]],
];

菜单

$menus = [
    ['title' => '广告管理', 'icon' => 'feather icon-image', 'uri' => '', 'permission' => ['banner_ads', 'banners'], 'children' => [
        ['title' => '广告位置', 'icon' => '', 'uri' => '/banner-ads', 'permission' => 'banner_ads'],
        ['title' => '广告内容', 'icon' => '', 'uri' => '/banners', 'permission' => 'banners'],
    ]]
];

接口文档

Apifox

数据表

广告位: banner_ads

column type nullable default comment
id bigint not null - 主键
name varchar(100) not null - 名称
key varchar(100) not null - 关键字(unique)
width integer null - 建议尺寸
height integer null - 建议尺寸
is_enable integer not null 1 是否可用
remarks varchar(100) null - 备注
created_at timestamp null - 创建时间
updated_at timestamp null - 更新时间

广告图: banner

column type nullable default comment
id bigint not null - 主键
ad_id bigint not null - 位置 id
path varchar(191) not null - 图片地址
name varchar(191) null - 名称
sort integer not null 1 排序(asc)
is_enable integer not null 1 是否可用
ext json null - 其他配置
remarks varchar(191) null - 备注
created_at timestamp null - 创建时间
updated_at timestamp null - 更新时间