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

miaoxing / admin / 13066008623

30 Jan 2025 03:53PM UTC coverage: 20.332% (+0.03%) from 20.306%
13066008623

push

github

twinh
refactor: Table 中的切换功能改为 Switch 组件

19 of 83 branches covered (22.89%)

147 of 723 relevant lines covered (20.33%)

2.46 hits per line

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

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

3
namespace Miaoxing\Admin\Service;
4

5
use Miaoxing\App\Service\UserModel;
6
use Miaoxing\Plugin\BaseModel;
7
use Miaoxing\Plugin\Model\HasAppIdTrait;
8
use Miaoxing\Plugin\Model\MineTrait;
9
use Miaoxing\Plugin\Model\ModelTrait;
10
use Miaoxing\Plugin\Model\ReqQueryTrait;
11
use Miaoxing\Plugin\Model\SnowflakeTrait;
12
use Wei\Model\Relation;
13

14
/**
15
 * @property string|null $id
16
 * @property string $appId
17
 * @property string $userId
18
 * @property string|null $createdAt
19
 * @property string|null $updatedAt
20
 * @property string $createdBy
21
 * @property string $updatedBy
22
 * @property UserModel $user
23
 * @property string|null $id
24
 * @property string $appId
25
 * @property string $userId
26
 * @property string|null $createdAt
27
 * @property string|null $updatedAt
28
 * @property string $createdBy
29
 * @property string $updatedBy
30
 */
31
class AdminModel extends BaseModel
32
{
33
    use HasAppIdTrait;
34
    use MineTrait;
35
    use ModelTrait;
36
    use ReqQueryTrait;
37
    use SnowflakeTrait;
38

39
    /**
40
     * @Relation
41
     */
42
    #[Relation]
43
    public function user(): UserModel
44
    {
45
        return $this->belongsTo(UserModel::class);
×
46
    }
47
}
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