diff --git a/app/admin/scheme/DebugLog.php b/app/admin/scheme/DebugLog.php new file mode 100644 index 0000000..5b13323 --- /dev/null +++ b/app/admin/scheme/DebugLog.php @@ -0,0 +1,41 @@ + '禁用', 2 => '启用'])] + public $status; + + #[Field(type: 'char', length: 255, precision: 255, default: '', comment: '备注说明')] + public $remark; + + #[Field(type: 'int', length: 11, default: '0', comment: '创建时间', unsigned: true)] + public $create_time; + + #[Field(type: 'int', length: 11, default: '0', unsigned: true)] + public $update_time; + + #[Field(type: 'int', length: 11, default: '0', unsigned: true)] + public $delete_time; +} \ No newline at end of file diff --git a/app/admin/scheme/MallGoods.php b/app/admin/scheme/MallGoods.php new file mode 100644 index 0000000..b21ab9a --- /dev/null +++ b/app/admin/scheme/MallGoods.php @@ -0,0 +1,88 @@ + '禁用', 2 => '启用'])] + public $status; + + #[Field(type: 'char', length: 255, precision: 255, default: '', comment: '备注说明')] + public $remark; + + #[Field(type: 'int', length: 11, default: '0', comment: '创建时间', unsigned: true)] + public $create_time; + + #[Field(type: 'int', length: 11, default: '0', unsigned: true)] + public $update_time; + + #[Field(type: 'int', length: 11, default: '0', unsigned: true)] + public $delete_time; +} \ No newline at end of file diff --git a/app/admin/scheme/SystemAuthNode.php b/app/admin/scheme/SystemAuthNode.php new file mode 100644 index 0000000..c9f05f6 --- /dev/null +++ b/app/admin/scheme/SystemAuthNode.php @@ -0,0 +1,27 @@ + '系统产生的数据', 'temp' => '临时数据', 'user' => '用户存储的数据'])] + public $type; + + #[Field(type: 'text', comment: '值')] + #[Component(type: 'textarea', options: [])] + public $value; + + #[Field(type: 'bigint', length: 11, nullable: false, default: '0', comment: '过期时间', unsigned: true)] + public $expire_time; +} \ No newline at end of file diff --git a/app/admin/scheme/SystemMenu.php b/app/admin/scheme/SystemMenu.php new file mode 100644 index 0000000..90f94a5 --- /dev/null +++ b/app/admin/scheme/SystemMenu.php @@ -0,0 +1,59 @@ + 'mall_cate', 'relationBindSelect' => 'title'])] public $cate_id; - #[Field(type: 'char', length: 20, precision: 20, scale: 0, nullable: false, default: '', comment: '商品名称', unsigned: false, autoIncrement: false, primary: false)] + #[Field(type: 'char', length: 20, precision: 20, nullable: false, default: '', comment: '商品名称')] public $title; - #[Field(type: 'char', length: 255, precision: 255, scale: 0, nullable: false, default: null, comment: '商品logo', unsigned: false, autoIncrement: false, primary: false)] + #[Field(type: 'char', length: 255, precision: 255, nullable: false, comment: '商品logo')] #[Component(type: 'image', options: [])] public $logo; - #[Field(type: 'text', length: null, precision: 0, scale: 0, nullable: false, default: null, comment: '商品图片', unsigned: false, autoIncrement: false, primary: false)] + #[Field(type: 'text', nullable: false, comment: '商品图片')] #[Component(type: 'images', options: [])] public $images; - #[Field(type: 'text', length: null, precision: 0, scale: 0, nullable: false, default: null, comment: '商品描述', unsigned: false, autoIncrement: false, primary: false)] + #[Field(type: 'text', nullable: false, comment: '商品描述')] #[Component(type: 'editor', options: [])] public $describe; - #[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: '0', comment: '总库存', unsigned: true, autoIncrement: false, primary: false)] + #[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '总库存', unsigned: true)] public $total_stock; - #[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: '0', comment: '排序', unsigned: true, autoIncrement: false, primary: false)] + #[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '排序', unsigned: true)] public $sort; - #[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: '0', comment: '状态', unsigned: true, autoIncrement: false, primary: false)] + #[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '状态', unsigned: true)] #[Component(type: 'radio', options: ['正常', '禁用'])] public $status; - #[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: false, default: null, comment: '合格证', unsigned: false, autoIncrement: false, primary: false)] + #[Field(length: 100, precision: 100, nullable: false, comment: '合格证')] #[Component(type: 'file', options: [])] public $cert_file; - #[Field(type: 'text', length: null, precision: 0, scale: 0, nullable: false, default: null, comment: '检测报告', unsigned: false, autoIncrement: false, primary: false)] + #[Field(type: 'text', nullable: false, comment: '检测报告')] #[Component(type: 'files', options: [])] public $verfiy_file; - #[Field(type: 'char', length: 255, precision: 255, scale: 0, nullable: false, default: '', comment: '备注说明', unsigned: false, autoIncrement: false, primary: false)] + #[Field(type: 'char', length: 255, precision: 255, nullable: false, default: '', comment: '备注说明')] public $remark; - #[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: '0', comment: '', unsigned: true, autoIncrement: false, primary: false)] + #[Field(type: 'int', length: 11, nullable: false, default: '0', unsigned: true)] public $create_time; - #[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: '0', comment: '', unsigned: true, autoIncrement: false, primary: false)] + #[Field(type: 'int', length: 11, nullable: false, default: '0', unsigned: true)] public $update_time; - #[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: '0', comment: '', unsigned: true, autoIncrement: false, primary: false)] + #[Field(type: 'int', length: 11, nullable: false, default: '0', unsigned: true)] public $delete_time; - #[Field(type: 'datetime', length: null, precision: 0, scale: 0, nullable: false, default: null, comment: '发布日期', unsigned: false, autoIncrement: false, primary: false)] + #[Field(type: 'datetime', nullable: false, comment: '发布日期')] #[Component(type: 'date', options: ['date'])] public $publish_time; - #[Field(type: 'date', length: null, precision: 0, scale: 0, nullable: false, default: null, comment: '售卖日期', unsigned: false, autoIncrement: false, primary: false)] + #[Field(type: 'date', nullable: false, comment: '售卖日期')] #[Component(type: 'date', options: ['datetime'])] public $sale_time; - #[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: false, default: null, comment: '简介', unsigned: false, autoIncrement: false, primary: false)] + #[Field(length: 100, precision: 100, nullable: false, comment: '简介')] #[Component(type: 'textarea', options: [])] public $intro; - #[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: null, comment: '秒杀状态', unsigned: true, autoIncrement: false, primary: false)] + #[Field(type: 'int', length: 11, nullable: false, comment: '秒杀状态', unsigned: true)] #[Component(type: 'select', options: [0 => '未参加', 1 => '已开始', 3 => '已结束'])] public $time_status; - #[Field(type: 'int', length: 11, precision: 0, scale: 0, nullable: false, default: '0', comment: '是否推荐', unsigned: false, autoIncrement: false, primary: false)] + #[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '是否推荐')] #[Component(type: 'switch', options: ['不推荐', '推荐'])] public $is_recommend; - #[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: false, default: '0', comment: '商品类型', unsigned: false, autoIncrement: false, primary: false)] + #[Field(length: 100, precision: 100, nullable: false, default: '0', comment: '商品类型')] #[Component(type: 'checkbox', options: ['taobao' => '淘宝', 'jd' => '京东'])] public $shop_type; - #[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: false, default: null, comment: '商品标签', unsigned: false, autoIncrement: false, primary: false)] + #[Field(length: 100, precision: 100, nullable: false, comment: '商品标签')] #[Component(type: 'table', options: ['table' => 'mall_tag', 'type' => 'checkbox', 'valueField' => 'id', 'fieldName' => 'title'])] public $tag; - #[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: true, default: null, comment: '商品标签(单选)', unsigned: false, autoIncrement: false, primary: false)] + #[Field(length: 100, precision: 100, comment: '商品标签(单选)')] #[Component(type: 'table', options: ['table' => 'mall_tag', 'type' => 'radio', 'valueField' => 'id', 'fieldName' => 'title'])] public $tag_backup; - #[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: false, default: null, comment: '产地', unsigned: false, autoIncrement: false, primary: false)] + #[Field(length: 100, precision: 100, nullable: false, comment: '产地')] #[Component(type: 'city', options: ['name-province' => '0', 'code' => '0'])] public $from_area; - #[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: false, default: '山东省/临沂市', comment: '仓库', unsigned: false, autoIncrement: false, primary: false)] + #[Field(length: 100, precision: 100, nullable: false, default: '山东省/临沂市', comment: '仓库')] #[Component(type: 'city', options: ['level' => 'city'])] public $store_city; - #[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: false, default: null, comment: '商品标签 (输入)', unsigned: false, autoIncrement: false, primary: false)] + #[Field(length: 100, precision: 100, nullable: false, comment: '商品标签 (输入)')] #[Component(type: 'tag', options: [])] public $tag_input; - #[Field(type: 'varchar', length: 100, precision: 100, scale: 0, nullable: false, default: null, comment: '唯一id', unsigned: false, autoIncrement: false, primary: false)] + #[Field(length: 100, precision: 100, nullable: false, comment: '唯一id')] public $uid; - #[Field(type: 'decimal', length: 10, precision: 10, scale: 0, nullable: true, default: null, comment: '价格', unsigned: false, autoIncrement: false, primary: false)] + #[Field(type: 'decimal', length: 10, precision: 10, comment: '价格')] public $price; - #[Field(type: 'text', length: null, precision: 0, scale: 0, nullable: true, default: null, comment: '详情', unsigned: false, autoIncrement: false, primary: false)] + #[Field(type: 'text', comment: '详情')] public $detail; } \ No newline at end of file diff --git a/app/admin/scheme/TreeTree.php b/app/admin/scheme/TreeTree.php new file mode 100644 index 0000000..d4288d9 --- /dev/null +++ b/app/admin/scheme/TreeTree.php @@ -0,0 +1,55 @@ + 'mall_cate', 'relationBindSelect' => 'title'])] + public $cate_id; + + #[Field(type: 'char', length: 20, precision: 20, nullable: false, default: '', comment: '商品名称')] + public $title; + + #[Field(type: 'char', length: 255, precision: 255, nullable: false, comment: '商品logo')] + #[Component(type: 'image', options: [])] + public $logo; + + #[Field(type: 'text', comment: '商品图片')] + #[Component(type: 'images', options: [])] + public $images; + + #[Field(type: 'text', comment: '商品描述')] + #[Component(type: 'editor', options: [])] + public $describe; + + #[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '总库存', unsigned: true)] + public $total_stock; + + #[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '排序', unsigned: true)] + public $sort; + + #[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '状态', unsigned: true)] + #[Component(type: 'radio', options: ['正常', '禁用'])] + public $status; + + #[Field(length: 100, precision: 100, nullable: false, default: '', comment: '合格证')] + #[Component(type: 'file', options: [])] + public $cert_file; + + #[Field(type: 'text', comment: '检测报告')] + #[Component(type: 'files', options: [])] + public $verfiy_file; + + #[Field(type: 'char', length: 255, precision: 255, nullable: false, default: '', comment: '备注说明')] + public $remark; + + #[Field(type: 'int', length: 11, nullable: false, default: '0', unsigned: true)] + public $create_time; + + #[Field(type: 'int', length: 11, nullable: false, default: '0', unsigned: true)] + public $update_time; + + #[Field(type: 'int', length: 11, nullable: false, default: '0', unsigned: true)] + public $delete_time; + + #[Field(type: 'int', length: 11, nullable: false, comment: '发布日期', unsigned: true)] + #[Component(type: 'date', options: ['date'])] + public $publish_time; + + #[Field(type: 'bigint', length: 11, nullable: false, default: '0', comment: '售卖日期', unsigned: true)] + #[Component(type: 'date', options: ['datetime'])] + public $sale_time; + + #[Field(length: 100, precision: 100, nullable: false, default: '', comment: '简介')] + #[Component(type: 'textarea', options: [])] + public $intro; + + #[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '秒杀状态', unsigned: true)] + #[Component(type: 'select', options: [0 => '未参加', 1 => '已开始', 3 => '已结束'])] + public $time_status; + + #[Field(type: 'int', length: 11, nullable: false, default: '0', comment: '是否推荐')] + #[Component(type: 'switch', options: ['不推荐', '推荐'])] + public $is_recommend; + + #[Field(length: 100, precision: 100, nullable: false, default: '', comment: '商品类型')] + #[Component(type: 'checkbox', options: ['taobao' => '淘宝', 'jd' => '京东'])] + public $shop_type; + + #[Field(length: 100, precision: 100, nullable: false, default: '', comment: '商品标签')] + #[Component(type: 'table', options: ['table' => 'mall_tag', 'type' => 'checkbox', 'valueField' => 'id', 'fieldName' => 'title'])] + public $tag; + + #[Field(length: 100, precision: 100, default: '', comment: '商品标签(单选)')] + #[Component(type: 'table', options: ['table' => 'mall_tag', 'type' => 'radio', 'valueField' => 'id', 'fieldName' => 'title'])] + public $tag_backup; + + #[Field(length: 100, precision: 100, nullable: false, default: '', comment: '产地')] + #[Component(type: 'city', options: ['name-province' => '0', 'code' => '0'])] + public $from_area; + + #[Field(length: 100, precision: 100, nullable: false, default: '山东省/临沂市', comment: '仓库')] + #[Component(type: 'city', options: ['level' => 'city'])] + public $store_city; + + #[Field(length: 100, precision: 100, nullable: false, default: '', comment: '商品标签 (输入)')] + #[Component(type: 'tag', options: [])] + public $tag_input; + + #[Field(length: 100, precision: 100, nullable: false, default: '', comment: '唯一id')] + public $uid; + + #[Field(type: 'decimal', length: 10, precision: 10, scale: 2, default: '0.00', comment: '价格')] + public $price; + + #[Field(type: 'text', comment: '详情')] + public $detail; +} \ No newline at end of file diff --git a/app/admin/scheme/UlthonDemoGoodsBatch.php b/app/admin/scheme/UlthonDemoGoodsBatch.php new file mode 100644 index 0000000..5a03b2f --- /dev/null +++ b/app/admin/scheme/UlthonDemoGoodsBatch.php @@ -0,0 +1,52 @@ +