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

// 信用用户列表
export const getCreditList = (query?: any): AxiosPromise<any> => {
  return request({
    url: '/zjk-api/credit/creditList',
    method: 'get',
    params: query
  });
};

// 排行榜 顶部内容

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

// 排行榜
export const getRanking = (query?: any): AxiosPromise<any> => {
  return request({
    url: '/zjk-api/creditUser/expertPointRank',
    method: 'get',
    params: query
  });
};
