This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/common/model/bargain/TaskHelp.php
2020-04-25 22:20:29 +08:00

28 lines
592 B
PHP

<?php
namespace app\common\model\bargain;
use app\common\model\BaseModel;
/**
* 砍价任务助力记录模型
* Class TaskHelp
* @package app\common\model\bargain
*/
class TaskHelp extends BaseModel
{
protected $name = 'bargain_task_help';
protected $updateTime = false;
/**
* 关联用户表
* @return \think\model\relation\BelongsTo
*/
public function user()
{
$module = self::getCalledModule() ?: 'common';
return $this->BelongsTo("app\\{$module}\\model\\User")
->field(['user_id', 'nickName', 'avatarUrl']);
}
}