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

miaoxing / file / 13805620374

12 Mar 2025 06:59AM UTC coverage: 82.667%. Remained the same
13805620374

push

github

twinh
ci: upgrade actions/cache from v1 to v4

62 of 75 relevant lines covered (82.67%)

24.16 hits per line

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

100.0
/src/Service/FileModel.php
1
<?php
2

3
namespace Miaoxing\File\Service;
4

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

10
/**
11
 * @property string|null $id
12
 * @property string $appId
13
 * @property string $origName
14
 * @property string $path
15
 * @property int $type 文件类型,1是图片,2是文档,3是音频,4是视频
16
 * @property string $ext 扩展名
17
 * @property int $size
18
 * @property int $width
19
 * @property int $height
20
 * @property string $md5
21
 * @property string $url
22
 * @property string|null $origCreatedAt
23
 * @property string|null $createdAt
24
 * @property string|null $updatedAt
25
 * @property string $createdBy
26
 * @property string $updatedBy
27
 */
28
class FileModel extends BaseModel
29
{
30
    use HasAppIdTrait;
31
    use ModelTrait;
32
    use SnowflakeTrait;
33

34
    public const TYPE_IMAGE = 1;
35

36
    public const TYPE_DOC = 2;
37

38
    public const TYPE_AUDIO = 3;
39

40
    public const TYPE_VIDEO = 4;
41

42
    public const TYPE_OTHERS = 99;
43
}
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

© 2026 Coveralls, Inc