1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace app\models\lala;
- use crmeb\traits\ModelTrait;
- use crmeb\basic\BaseModel;
- /**
- * TODO 文章Model
- * Class Article
- * @package app\models\article
- */
- class LalaSpExchange extends BaseModel
- {
- /**
- * 数据表主键
- * @var string
- */
- protected $pk = 'id';
- /**
- * 模型名称
- * @var string
- */
- protected $name = 'lala_sp_exchange';
- use ModelTrait;
- /**
- * @param $where
- * @param $page
- * @param $limit
- * @return array
- */
- public static function getList($where, $page, $limit): array
- {
- $model = new self();
- $list = $model->page((int)$page, (int)$limit)->select();
- $count = $model->count();
- return compact('list', 'count');
- }
- }
|