调整简历

This commit is contained in:
2021-12-01 16:00:41 +08:00
parent 4c17de56ae
commit ce6b658841
3 changed files with 47 additions and 38 deletions

View File

@@ -57,9 +57,29 @@ class Resume extends Model
* @Date: 2021/12/1 13:11
* @param $key
* @param string $default
* @return array|\ArrayAccess|mixed
*/
public function getInformation($key, string $default = '')
{
return Arr::get($this->information, $key, $default);
}
/**
* Notes: 获取基本信息名称
*
* @Author: 玄尘
* @Date: 2021/12/1 15:53
*/
public function getInformationName($key): string
{
return [
'duty' => '职务',
'rank' => '职称',
'education' => '学历',
'mobile' => '电话',
'email' => '电子邮件',
'address' => '通讯地址',
'part_job' => '学术兼职',
][$key] ?? '未知';
}
}