refactor: 修改附件下载模型
This commit is contained in:
@@ -21,12 +21,6 @@ class AttachmentModel extends AttachmentBaseModel
|
|||||||
protected $json = ['attach'];
|
protected $json = ['attach'];
|
||||||
// 设置JSON数据返回数组
|
// 设置JSON数据返回数组
|
||||||
protected $jsonAssoc = true;
|
protected $jsonAssoc = true;
|
||||||
// JSON字段属性类型
|
|
||||||
protected $jsonType = [
|
|
||||||
'attach[*]->file_path' => 'string',
|
|
||||||
'attach[*]->file_ext' => 'string',
|
|
||||||
'attach[*]->btn_name' => 'string',
|
|
||||||
];
|
|
||||||
|
|
||||||
// 关联附件分类模型
|
// 关联附件分类模型
|
||||||
public function category()
|
public function category()
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class AttachmentBaseModel extends BaseModel
|
|||||||
'image' => 'string',
|
'image' => 'string',
|
||||||
'applicable_to' => 'string',
|
'applicable_to' => 'string',
|
||||||
'support_platform' => 'string',
|
'support_platform' => 'string',
|
||||||
'attach' => 'string',
|
'attach' => 'json',
|
||||||
'sort' => 'int',
|
'sort' => 'int',
|
||||||
'recommend' => 'int',
|
'recommend' => 'int',
|
||||||
'status' => 'int',
|
'status' => 'int',
|
||||||
|
|||||||
Reference in New Issue
Block a user