diff --git a/common/models/ars/Address.php b/common/models/ars/Address.php deleted file mode 100644 index aec13fb..0000000 --- a/common/models/ars/Address.php +++ /dev/null @@ -1,88 +0,0 @@ - 20], - [['province', 'city', 'area'], 'string', 'max' => 10], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'user_id' => '用户id', - 'consignee' => '收件人', - 'phone' => '电话', - 'province' => '省份', - 'city' => '城市', - 'area' => '区域', - 'address' => '详细地址', - 'status' => '状态,0-默认值 1-默认地址', - 'created_at' => '创建时间', - 'updated_at' => '更新时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/common/models/ars/AfterSale.php b/common/models/ars/AfterSale.php deleted file mode 100644 index 4cf35b1..0000000 --- a/common/models/ars/AfterSale.php +++ /dev/null @@ -1,80 +0,0 @@ - 64], - [['take_shipping_sn', 'send_shipping_sn'], 'string', 'max' => 50], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'operator_id' => '操作者', - 'user_id' => '用户id', - 'wx_refund_id' => '微信退款单号', - 'after_sale_sn' => '售后单号', - 'order_goods_id' => '订单商品id', - 'count' => '退换货的商品数量', - 'amount' => '退货时实际退的金额', - 'type' => '类型', - 'reason' => '退换货理由', - 'description' => '描述', - 'take_shipping_sn' => '用户发货物流单号', - 'send_shipping_sn' => '换货商家发货的物流单号', - 'remarks' => '店家备注', - 'applyed_at' => '申请时间', - 'dealed_at' => '处理时间', - 'finished_at' => '完成时间', - ]; - } - - -} diff --git a/common/models/ars/Area.php b/common/models/ars/Area.php deleted file mode 100644 index 254681b..0000000 --- a/common/models/ars/Area.php +++ /dev/null @@ -1,51 +0,0 @@ - 32], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'name' => 'name', - 'area_id' => 'area_id', - 'city_id' => 'city_id', - ]; - } - - -} diff --git a/common/models/ars/Cart.php b/common/models/ars/Cart.php deleted file mode 100644 index ef6477f..0000000 --- a/common/models/ars/Cart.php +++ /dev/null @@ -1,84 +0,0 @@ - 120], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'user_id' => '用户id', - 'goods_id' => '商品id', - 'goods_name' => '商品名称', - 'goods_img' => '商品图片', - 'goods_price' => '商品售价', - 'sku_id' => '商品sku的id', - 'goods_count' => '商品数量', - 'created_at' => '创建时间', - 'updated_at' => '更新时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/common/models/ars/City.php b/common/models/ars/City.php deleted file mode 100644 index ae87412..0000000 --- a/common/models/ars/City.php +++ /dev/null @@ -1,51 +0,0 @@ - 32], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'city_id' => 'city_id', - 'name' => 'name', - 'province_id' => 'province_id', - ]; - } - - -} diff --git a/common/models/ars/Collection.php b/common/models/ars/Collection.php deleted file mode 100644 index 2a1a771..0000000 --- a/common/models/ars/Collection.php +++ /dev/null @@ -1,73 +0,0 @@ - 'id', - 'user_id' => '用户id', - 'goods_id' => '商品id', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/common/models/ars/Comment.php b/common/models/ars/Comment.php deleted file mode 100644 index 2701ecf..0000000 --- a/common/models/ars/Comment.php +++ /dev/null @@ -1,80 +0,0 @@ - 'id', - 'user_id' => '用户id', - 'order_goods_id' => '订单详情商品id', - 'star' => '星级', - 'content' => '评论内容', - 'status' => '状态:1为显示,0为不显示', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/common/models/ars/Delivery.php b/common/models/ars/Delivery.php deleted file mode 100644 index 85d1d0e..0000000 --- a/common/models/ars/Delivery.php +++ /dev/null @@ -1,86 +0,0 @@ - 50], - [['shipping_id'], 'string', 'max' => 10], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'order_id' => '订单id', - 'shipping_name' => '货流名称', - 'shipping_id' => '运货单位', - 'type' => '类型', - 'goods' => '商品', - 'status' => '状态', - 'decription' => '描述', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/common/models/ars/ExpressTemplate.php b/common/models/ars/ExpressTemplate.php deleted file mode 100644 index e3e6b81..0000000 --- a/common/models/ars/ExpressTemplate.php +++ /dev/null @@ -1,95 +0,0 @@ - 255], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'name' => '名称', - 'province' => '省份', - 'city' => '城市', - 'area' => '区域', - 'billing_type' => '账单类型', - 'extra_weight_type' => '续重重量类型', - 'exemption_type' => '包邮类型', - 'basic_price' => '基本运费', - 'extra_price' => '续重运费', - 'exemption_amount' => '包邮金额', - 'support_taking' => '是否支持自提,1为不支持', - 'taking_site' => '自提地点', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/common/models/ars/File.php b/common/models/ars/File.php deleted file mode 100644 index fc1be27..0000000 --- a/common/models/ars/File.php +++ /dev/null @@ -1,86 +0,0 @@ - 255], - [['alias'], 'string', 'max' => 50], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'pid' => '父级id', - 'name' => '名称', - 'type' => '类型', - 'own_type' => '拥有者类型', - 'own_id' => '拥有者id', - 'alias' => '别名', - 'path' => '地址', - 'is_delete' => '是否删除,1为已删除', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/common/models/ars/Order.php b/common/models/ars/Order.php deleted file mode 100644 index 6f03a52..0000000 --- a/common/models/ars/Order.php +++ /dev/null @@ -1,121 +0,0 @@ - 64], - [['consignee', 'phone'], 'string', 'max' => 20], - [['province', 'city', 'area'], 'string', 'max' => 10], - [['payment_sn'], 'string', 'max' => 120], - [['remarks'], 'string', 'max' => 255], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'user_id' => '用户id', - 'order_sn' => '订单号', - 'invoice_id' => '发票单号', - 'status' => '状态', - 'type' => '类型', - 'goods_count' => '商品数量', - 'goods_amount' => '商品金额', - 'shipping_amount' => '物流金额', - 'shipping_type' => '物流类型', - 'consignee' => '收件人', - 'phone' => '手机号码', - 'province' => '省份', - 'city' => '城市', - 'area' => '区域', - 'taking_site' => '自提点', - 'pay_type' => '支付方式', - 'pay_at' => '支付时间', - 'payment_sn' => '付款单号', - 'payment_amount' => '支付金额', - 'receivables' => '应收款', - 'remarks' => '备注', - 'discount_amount' => '折扣金额', - 'discount_decription' => '折扣说明', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/common/models/ars/OrderGoods.php b/common/models/ars/OrderGoods.php deleted file mode 100644 index fa4d65d..0000000 --- a/common/models/ars/OrderGoods.php +++ /dev/null @@ -1,86 +0,0 @@ - 120], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'order_id' => '订单id', - 'goods_id' => '商品id', - 'goods_img' => '商品图片', - 'goods_name' => '商品名称', - 'goods_count' => '商品数量', - 'sku_value' => '商品sku', - 'price' => '销售价', - 'market_price' => '市场价', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/common/models/ars/PaymentLog.php b/common/models/ars/PaymentLog.php deleted file mode 100644 index 9055f33..0000000 --- a/common/models/ars/PaymentLog.php +++ /dev/null @@ -1,85 +0,0 @@ - 64], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'order_id' => '订单id', - 'wx_refund_id' => '微信退款单号', - 'mch_id' => '商户号', - 'order_amount' => '订单金额', - 'payment_amount' => '支付金额', - 'type' => '类型', - 'status' => '状态', - 'refund_account' => '退款账户', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/common/models/ars/Province.php b/common/models/ars/Province.php deleted file mode 100644 index b03ffe6..0000000 --- a/common/models/ars/Province.php +++ /dev/null @@ -1,49 +0,0 @@ - 16], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'name' => 'name', - 'province_id' => 'province_id', - ]; - } - - -} diff --git a/common/models/ars/RefundLog.php b/common/models/ars/RefundLog.php deleted file mode 100644 index 33ed965..0000000 --- a/common/models/ars/RefundLog.php +++ /dev/null @@ -1,71 +0,0 @@ - 64], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'order_id' => '订单id', - 'wx_refund_id' => '微信退款单号', - 'reason' => '理由', - 'order_amount' => '订单金额', - 'refund_amount' => '退款金额', - 'refunded_amount' => '已退款金额', - 'type' => '类型', - 'status' => '状态', - 'refund_account' => '退款账户', - 'operator_id' => '操作者', - 'applyed_at' => '申请时间', - 'confirmed_at' => '确认时间', - 'finished_at' => '完成时间', - ]; - } - - -} diff --git a/common/models/ars/SearchHistory.php b/common/models/ars/SearchHistory.php deleted file mode 100644 index 17fc86c..0000000 --- a/common/models/ars/SearchHistory.php +++ /dev/null @@ -1,80 +0,0 @@ - 255], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'user_id' => '用户id', - 'keyword' => '关键字', - 'count' => '次数', - 'status' => '状态', - 'type' => '类型', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/common/models/ars/TakingSite.php b/common/models/ars/TakingSite.php deleted file mode 100644 index cbd36bd..0000000 --- a/common/models/ars/TakingSite.php +++ /dev/null @@ -1,84 +0,0 @@ - 120], - [['province', 'city', 'area'], 'string', 'max' => 10], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'name' => '名称', - 'province' => '省份', - 'city' => '城市', - 'area' => '区域', - 'address' => '地址', - 'is_default' => '是否为默认,1为默认', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/common/models/ars/TemFile.php b/common/models/ars/TemFile.php deleted file mode 100644 index 52c228d..0000000 --- a/common/models/ars/TemFile.php +++ /dev/null @@ -1,80 +0,0 @@ - 255], - [['alias'], 'string', 'max' => 50], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'user_id' => '父级id', - 'name' => '名称', - 'type' => '类型', - 'alias' => '别名', - 'path' => '地址', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/vendor/antgoods/goods/src/models/ars/Attribute.php b/vendor/antgoods/goods/src/models/ars/Attribute.php deleted file mode 100644 index c68e652..0000000 --- a/vendor/antgoods/goods/src/models/ars/Attribute.php +++ /dev/null @@ -1,81 +0,0 @@ - 50], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'name' => '属性名', - 'value' => '属性值', - 'type' => '类型', - 'sort_order' => '排序', - 'is_delete' => '是否删除,1为已删除', - 'created_at' => '创建时间', - 'updated_at' => '更新时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/vendor/antgoods/goods/src/models/ars/Brand.php b/vendor/antgoods/goods/src/models/ars/Brand.php deleted file mode 100644 index a225e59..0000000 --- a/vendor/antgoods/goods/src/models/ars/Brand.php +++ /dev/null @@ -1,74 +0,0 @@ - 50], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'name' => '品牌名', - 'is_delete' => '是否删除,1为已删除', - 'created_at' => '创建时间', - 'updated_at' => '更新时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/vendor/antgoods/goods/src/models/ars/Category.php b/vendor/antgoods/goods/src/models/ars/Category.php deleted file mode 100644 index 9fe01df..0000000 --- a/vendor/antgoods/goods/src/models/ars/Category.php +++ /dev/null @@ -1,87 +0,0 @@ - 60], - [['icon'], 'string', 'max' => 64], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'name' => '类别名称', - 'pid' => '父级id', - 'goods_count' => '商品数量', - 'sort_order' => '排序', - 'icon_type' => '图标类型', - 'icon' => '图标', - 'is_show' => '是否显示,1为不显示', - 'is_delete' => '是否删除,1为已删除', - 'created_at' => '创建时间', - 'updated_at' => '更新时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/vendor/antgoods/goods/src/models/ars/FilterAttr.php b/vendor/antgoods/goods/src/models/ars/FilterAttr.php deleted file mode 100644 index 2036d55..0000000 --- a/vendor/antgoods/goods/src/models/ars/FilterAttr.php +++ /dev/null @@ -1,78 +0,0 @@ - 50], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'goods_id' => '商品id', - 'attr_id' => '属性id', - 'attr_value' => '属性值', - 'is_delete' => '是否删除,1为已删除', - 'created_at' => '创建时间', - 'updated_at' => '更新时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/vendor/antgoods/goods/src/models/ars/Goods.php b/vendor/antgoods/goods/src/models/ars/Goods.php deleted file mode 100644 index 841efc8..0000000 --- a/vendor/antgoods/goods/src/models/ars/Goods.php +++ /dev/null @@ -1,135 +0,0 @@ - 120], - [['sn'], 'string', 'max' => 60], - [['code'], 'string', 'max' => 50], - [['unit'], 'string', 'max' => 16], - [['brief'], 'string', 'max' => 255], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'pid' => '父级id', - 'cat_id' => '后台商品类别id', - 'brand_id' => '品牌id', - 'shop_cat_id' => '前端商品类别id', - 'name' => '商品名称', - 'sn' => '商品唯一货号', - 'code' => '商品货码', - 'supplier_id' => '供应商id', - 'weight' => '重量', - 'length' => '长度', - 'width' => '宽度', - 'height' => '高度', - 'diameter' => '直径', - 'unit' => '单位', - 'sold_count' => '已售数量', - 'limit_count' => '限购数量', - 'stock' => '库存', - 'stock_warn' => '库存警告', - 'market_price' => '市场价', - 'price' => '销售价', - 'brief' => '简介', - 'description' => '详细介绍', - 'image' => '图片id', - 'model_id' => '模型id', - 'is_sale' => '该商品是否开放销售,1为是,0为否', - 'sort_order' => '排序', - 'bouns_points' => '奖励积分', - 'experience_points' => '经验值', - 'is_delete' => '是否删除,1为已删除', - 'express_template' => '配送详情id', - 'created_at' => '创建时间', - 'updated_at' => '更新时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/vendor/antgoods/goods/src/models/ars/GoodsAttr.php b/vendor/antgoods/goods/src/models/ars/GoodsAttr.php deleted file mode 100644 index b888e46..0000000 --- a/vendor/antgoods/goods/src/models/ars/GoodsAttr.php +++ /dev/null @@ -1,78 +0,0 @@ - 50], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'goods_id' => '商品id', - 'attr_id' => '属性id', - 'attr_value' => '属性名', - 'is_delete' => '是否删除,1为已删除', - 'created_at' => '创建时间', - 'updated_at' => '更新时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/vendor/antgoods/goods/src/models/ars/GoodsSku.php b/vendor/antgoods/goods/src/models/ars/GoodsSku.php deleted file mode 100644 index 7e4644a..0000000 --- a/vendor/antgoods/goods/src/models/ars/GoodsSku.php +++ /dev/null @@ -1,105 +0,0 @@ - 50], - [['goods_sn', 'goods_attr'], 'string', 'max' => 60], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'goods_id' => '商品id', - 'goods_code' => '商品条码', - 'goods_sn' => '商品唯一货号', - 'goods_attr' => '属性匹配', - 'weight' => '重量', - 'length' => '长度', - 'width' => '宽度', - 'height' => '高度', - 'diameter' => '直径', - 'sold_count' => '已售数量', - 'stock' => '库存', - 'market_price' => '市场价', - 'price' => '销售价', - 'model_id' => '模型id', - 'is_sale' => '该商品是否开放销售,1为是,0为否', - 'sort_order' => '排序', - 'is_delete' => '是否删除,1为已删除', - 'created_at' => '创建时间', - 'updated_at' => '更新时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/vendor/antgoods/goods/src/models/ars/ShopCategory.php b/vendor/antgoods/goods/src/models/ars/ShopCategory.php deleted file mode 100644 index 2ffb20c..0000000 --- a/vendor/antgoods/goods/src/models/ars/ShopCategory.php +++ /dev/null @@ -1,96 +0,0 @@ - 60], - [['keywords'], 'string', 'max' => 100], - [['desc'], 'string', 'max' => 255], - [['icon'], 'string', 'max' => 64], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'name' => '类别名称', - 'pid' => '父级id', - 'goods_count' => '商品数量', - 'keywords' => '关键字', - 'desc' => '描述', - 'sort_order' => '排序', - 'icon_type' => '图标类型', - 'icon' => '图标', - 'filter_attr' => '筛选属性', - 'is_show' => '是否显示,1为不显示', - 'is_delete' => '是否删除,1为已删除', - 'created_at' => '创建时间', - 'updated_at' => '更新时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/vendor/antgoods/goods/src/models/ars/Supplier.php b/vendor/antgoods/goods/src/models/ars/Supplier.php deleted file mode 100644 index 73d51f6..0000000 --- a/vendor/antgoods/goods/src/models/ars/Supplier.php +++ /dev/null @@ -1,81 +0,0 @@ - 50], - [['phone'], 'string', 'max' => 20], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'name' => '供应商名称', - 'full_name' => '供应商全称', - 'phone' => '手机号码', - 'address' => '地址', - 'is_delete' => '是否删除,1为已删除', - 'created_at' => '创建时间', - 'updated_at' => '更新时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -}