• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

miaoxing / logistics / 13100244582

02 Feb 2025 03:42PM UTC coverage: 35.456% (+0.2%) from 35.243%
13100244582

push

github

semantic-release-bot
chore(release): publish

See CHANGELOG.md for more details.

24 of 99 branches covered (24.24%)

206 of 581 relevant lines covered (35.46%)

5.57 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Service/ShippingTplRuleModel.php
1
<?php
2

3
namespace Miaoxing\Logistics\Service;
4

5
use Miaoxing\Plugin\BaseModel;
6
use Miaoxing\Plugin\Model\ModelTrait;
7
use Miaoxing\Plugin\Model\SnowflakeTrait;
8
use Wei\Model\SoftDeleteTrait;
9

10
/**
11
 * @property string|null $id
12
 * @property string $appId
13
 * @property string $shippingTplId
14
 * @property int $serviceId 物流服务编号
15
 * @property bool $isDefault 是否默认
16
 * @property array $regionIds 指定的区域编号
17
 * @property int $startAmount 首费数量
18
 * @property string $startFee 首费金额
19
 * @property int $addAmount 增费数量
20
 * @property string $addFee 增费金额
21
 * @property string|null $createdAt
22
 * @property string|null $updatedAt
23
 * @property string $createdBy
24
 * @property string $updatedBy
25
 * @property string|null $deletedAt
26
 * @property string $deletedBy
27
 * @property LogisticsServiceModel $service
28
 * @property string|null $id
29
 * @property string $appId
30
 * @property string $shippingTplId
31
 * @property int $serviceId 物流服务编号
32
 * @property bool $isDefault 是否默认
33
 * @property array $regionIds 指定的区域编号
34
 * @property int $startAmount 首费数量
35
 * @property string $startFee 首费金额
36
 * @property int $addAmount 增费数量
37
 * @property string $addFee 增费金额
38
 * @property string|null $createdAt
39
 * @property string|null $updatedAt
40
 * @property string $createdBy
41
 * @property string $updatedBy
42
 * @property string|null $deletedAt
43
 * @property string $deletedBy
44
 */
45
class ShippingTplRuleModel extends BaseModel
46
{
47
    use ModelTrait;
48
    use SnowflakeTrait;
49
    use SoftDeleteTrait;
50

51
    protected $columns = [
52
        'regionIds' => [
53
            'cast' => [
54
                'list',
55
                'type' => 'int',
56
            ],
57
        ],
58
    ];
59

60
    public function service(): LogisticsServiceModel
61
    {
62
        return $this->belongsTo(LogisticsServiceModel::class, 'id', 'serviceId');
×
63
    }
64
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc