import request from '@/utils/request';
import { AxiosPromise } from 'axios';

export const getTableList = (query?: any): AxiosPromise<any> => {
  return request({
    url: '/zjk-api/point/ruleList',
    method: 'get',
    params: query
  });
};
export const setStatus = (query: any): AxiosPromise<any> => {
  return request({
    url: '/zjk-api/point/updateRuleStatus',
    method: 'post',
    data: query
  });
};
