Files
anmo/server/app/common/model/coach/CoachLifePhoto.php
2025-08-19 14:16:51 +08:00

40 lines
791 B
PHP
Executable File

<?php
namespace app\common\model\coach;
use app\common\model\BaseModel;
use app\common\service\FileService;
/**
* 技师生活照模型类
* Class CoachLifePhoto
* @package app\common\model\coach
*/
class CoachLifePhoto extends BaseModel
{
/**
* @notes 补全图片路径
* @param $value
* @param $data
* @return string
* @author ljj
* @date 2022/2/17 6:11 下午
*/
public function getUriAttr($value,$data)
{
return FileService::getFileUrl($value);
}
/**
* @notes 去掉图片路径
* @param $value
* @param $data
* @return string
* @author ljj
* @date 2022/2/17 6:11 下午
*/
public function setUriAttr($value,$data)
{
return FileService::setFileUrl($value);
}
}