integral.js 325 B

12345678910
  1. import request from './request.js';
  2. const getIntegral = async data => {
  3. const res = await request.get({ url: `/wx/points/point`, data });
  4. return res.data;
  5. }
  6. const getRanking = async data => {
  7. const res = await request.get({ url: '/wx/points/ranking-list' });
  8. return res.data;
  9. }
  10. export default { getIntegral, getRanking };