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.
41 lines
699 B
41 lines
699 B
9 months ago
|
<?php
|
||
|
|
||
|
namespace app\model\system;
|
||
|
|
||
|
use crmeb\basic\BaseModel;
|
||
|
use crmeb\traits\ModelTrait;
|
||
|
|
||
|
/**
|
||
|
* @author: 吴汐
|
||
|
* @email: 442384644@qq.com
|
||
|
* @date: 2023/7/28
|
||
|
*/
|
||
|
class SystemSignReward extends BaseModel
|
||
|
{
|
||
|
use ModelTrait;
|
||
|
|
||
|
/**
|
||
|
* 数据表主键
|
||
|
* @var string
|
||
|
*/
|
||
|
protected $pk = 'id';
|
||
|
|
||
|
/**
|
||
|
* 模型名称
|
||
|
* @var string
|
||
|
*/
|
||
|
protected $name = 'system_sign_reward';
|
||
|
|
||
|
/**
|
||
|
* 类型搜索器
|
||
|
* @param $query
|
||
|
* @param $value
|
||
|
* @author: 吴汐
|
||
|
* @email: 442384644@qq.com
|
||
|
* @date: 2023/7/28
|
||
|
*/
|
||
|
public function searchTypeAttr($query, $value)
|
||
|
{
|
||
|
if ($value !== '') $query->where('type', $value);
|
||
|
}
|
||
|
}
|