import { request } from 'umi';
import { LoginLogListParams } from './data';

export async function queryLoginLog(params?: LoginLogListParams) {
  return request('/api/member/loginlog/list', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}

export async function removeLoginLog(params: { ids: number[] }) {
  return request('/api/member/loginlog/delete', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}

