You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
495 B
28 lines
495 B
<?php
|
|
|
|
namespace app\admin\model\shopro\wechat;
|
|
|
|
use app\admin\model\shopro\Common;
|
|
use traits\model\SoftDelete;
|
|
|
|
class Material extends Common
|
|
{
|
|
use SoftDelete;
|
|
protected $deleteTime = 'deletetime';
|
|
|
|
protected $name = 'shopro_wechat_material';
|
|
|
|
protected $type = [
|
|
'content' => 'json',
|
|
];
|
|
|
|
// 追加属性
|
|
protected $append = [
|
|
'type_text'
|
|
];
|
|
|
|
public function typeList()
|
|
{
|
|
return ['text' => '文字', 'link' => '链接'];
|
|
}
|
|
}
|
|
|