启程易购后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
405 B

<?php
namespace app\common\model\user;
use app\common\model\BaseModel;
class UserFields extends BaseModel
{
public static function tablePk(): string
{
return 'id';
}
public static function tableName(): string
{
return 'user_fields';
}
public function searchUidAttr($query, $value)
{
if (!empty($value)) $query->where('uid', $value);
}
}