| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace App\Module\GameItems\Casts;
- use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
- use Illuminate\Database\Eloquent\Model;
- use JsonMapper;
- /**
- * 物品展示属性类型转换器
- *
- * 用于将数据库中存储的JSON格式的物品展示属性转换为PHP对象,以及将PHP对象转换回JSON格式。
- * 物品展示属性包含用于界面展示的属性,如图标路径等。
- */
- class DisplayAttributesCast extends \UCore\Model\CastsAttributes
- {
- /**
- * 客户端图标地址
- * @var string $img
- */
- public string $img = '';
- /**
- * 标题图片
- * @var string $img_title
- */
- public string $img_title = '';
- /**
- * 仓库类型
- *
- * @var string
- */
- public string $wareHouse_type = '1';
- /**
- * 分类
- * @var int $cate
- */
- public int $cate = 0;
- }
|