<?php
/**
 *
 * ============================================================================
 * * 版权所有 蜘蛛出行 * *
 * 网站地址: http://www.zhizhuchuxing.com
 * ----------------------------------------------------------------------------
 * 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和
 * 使用；不允许对程序代码以任何形式任何目的的再发布。
 * ============================================================================
 * Author By: 倪宗锋
 * PhpStorm LogService.php
 * Create By 2017/10/18 14:55 $
 */

namespace admin\service\user;


use common\models\LogUserOperation;

class LogService
{
    public function getList($params)
    {
        $logTab = new LogUserOperation();
        $orderCount = (int)$logTab->getList($params, 1);
        $return['order_list'] = $logTab->getList($params, 2);
        $return['page'] = [
            'current_page' => $params['current_page'],
            'total_pages' => ceil($orderCount / $params['page_size']),
            'total_count' => $orderCount,
            'page_size' => $params['page_size']
        ];
        return $return;
    }
}