初始版本
This commit is contained in:
43
server/app/common/model/coach/CoachUser.php
Executable file
43
server/app/common/model/coach/CoachUser.php
Executable file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
namespace app\common\model\coach;
|
||||
use app\common\model\BaseModel;
|
||||
use app\common\service\FileService;
|
||||
|
||||
/**
|
||||
* 技师账号逻辑类
|
||||
* Class UserCoach
|
||||
* @package app\common\model\coach
|
||||
*/
|
||||
class CoachUser extends BaseModel
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 去掉图片路径
|
||||
* @param $value
|
||||
* @param $data
|
||||
* @return string
|
||||
* @author ljj
|
||||
* @date 2022/2/17 6:11 下午
|
||||
*/
|
||||
public function setAvatarAttr($value,$data)
|
||||
{
|
||||
return FileService::setFileUrl($value);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @notes 补全图片路径
|
||||
* @param $value
|
||||
* @param $data
|
||||
* @return string
|
||||
* @author ljj
|
||||
* @date 2022/2/17 6:11 下午
|
||||
*/
|
||||
public function getAvatarAttr($value,$data)
|
||||
{
|
||||
return FileService::getFileUrl($value);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user