feat: 添加横幅相关接口

This commit is contained in:
2025-03-10 18:02:19 +08:00
parent 0c3d3a6a2b
commit 2aaee7e2b8
8 changed files with 455 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ class CreateSysBannerItem extends Migrator
->addColumn('type', 'string', ['limit' => 16, 'null' => false, 'comment' => '类型: image为图片, video为视频'])
->addColumn('image', 'string', ['limit' => 255, 'null' => false, 'comment' => '图片'])
->addColumn('video', 'string', ['limit' => 255, 'null' => false, 'comment' => '视频'])
->addColumn('link_to', 'string', ['limit' => 64, 'null' => false, 'comment' => '链接到(类型): article:文章, goods_category:商品分类, goods:商品, link:自定义链接'])
->addColumn('link_to', 'string', ['limit' => 64, 'null' => false, 'comment' => '链接到(类型): article:文章, goods_category:商品分类, goods:商品, custom:自定义链接'])
->addColumn('link', 'string', ['limit' => 255, 'null' => false, 'comment' => '链接'])
->addColumn('sort', 'integer', ['limit' => 11, 'null' => false, 'default' => 0, 'comment' => '排序'])
->addColumn('status', 'boolean', ['limit' => 1, 'null' => false, 'default' => 1, 'comment' => '-1为禁用, 1为启用'])