1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| <?php
|
| namespace app\api\model\user;
|
| use app\common\model\user\ConsumptionLog as consumptionLogModel;
|
| /**
| * 消费券明细模型
| */
| class ConsumptionLog extends consumptionLogModel
| {
| /**
| * 获取日志明细列表
| */
| public function getList($userId,$limit)
| {
| // 获取列表数据
| return $this->where('user_id', '=', $userId)
| ->order(['create_time' => 'desc'])
| ->paginate($limit);
| }
|
| }
|
|