/*
 * @Author: donghao donghao@supervision.ltd
 * @Date: 2025-07-08 17:08:58
 * @LastEditors: donghao donghao@supervision.ltd
 * @LastEditTime: 2025-07-10 09:52:32
 * @FilePath: \Robot-Al-Platform-Web\src\renderer\src\mock\log.ts
 * @Description: mock的日志数据
 */
import { MockMethod } from 'vite-plugin-mock'
import { logListData } from './pools/logData'
import { fetchCurrPageByList } from './utils/apiMock'

export default [
  {
    url: '/api/getLogList',
    method: 'get',
    response: (req) => {
      const { page, pageSize } = req.query
      return {
        ...fetchCurrPageByList({
          ...logListData,
          data: {
            ...logListData.data,
            page: page || 1,
            pageSize: pageSize || 10
          }
        })
      }
    }
  }
] as MockMethod[]
