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

// 信用奖惩管理
export const getTableList = (query?: any): AxiosPromise<any> => {
  return request({
    url: '/zjk-api/creditReward/queryRewardlist',
    method: 'get',
    params: query
  });
};

// 信用等级管理

export const getLevelList = (query?: any): AxiosPromise<any> => {
  return request({
    url: '/zjk-api/creditLv/list',
    method: 'get',
    params: query
  });
};

// 获取信用规则列表
export const getRuleList = (query?: any): AxiosPromise<any> => {
  return request({
    url: '/zjk-api/creditReward/ruleList',
    method: 'get',
    params: query
  });
};

