mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
32 lines
792 B
PHP
32 lines
792 B
PHP
<?php
|
|
|
|
namespace app\data\controller\api\auth;
|
|
|
|
use app\data\controller\api\Auth;
|
|
|
|
/**
|
|
* 用户返利管理
|
|
* Class Rebate
|
|
* @package app\data\controller\api\auth
|
|
*/
|
|
class Rebate extends Auth
|
|
{
|
|
/**
|
|
* 绑定数据表
|
|
* @var string
|
|
*/
|
|
private $table = 'DataUserRebate';
|
|
|
|
/**
|
|
* 获取用户返利记录
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
* @throws \think\db\exception\DbException
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
*/
|
|
public function get()
|
|
{
|
|
$query = $this->_query($this->table)->where(['uid' => $this->uuid])->equal('status');
|
|
$result = $query->like('create_at#date')->order('id desc')->page(true, false, false, 15);
|
|
$this->success('获取用户返利', $result);
|
|
}
|
|
} |