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.
yanzong/app/common/model/user/IdentityOrder.php

42 lines
815 B

11 months ago
<?php
namespace app\common\model\user;
use cores\BaseModel;
6 months ago
use think\model\relation\BelongsTo;
11 months ago
class IdentityOrder extends BaseModel
{
// 定义表名
protected $name = 'user_identity_order';
// 定义主键
protected $pk = 'order_id';
6 months ago
/**
/**
* 关联会员记录表
* @return BelongsTo
*/
public function user(): BelongsTo
{
$module = self::getCalledModule();
return $this->belongsTo("app\\{$module}\\model\\User");
}
// /**
// * 关联用户表
// * @return BelongsTo
// */
// public function user(): BelongsTo
// {
// return $this->belongsTo('User')->field(['user_id', 'nick_name', 'avatar_id']);
// }
11 months ago
public static function detail($where)
{
11 months ago
return self::get($where);
11 months ago
}
6 months ago
11 months ago
}