index.ts 593 B

123456789101112131415161718192021
  1. import request from '@/config/axios'
  2. export interface UserPointsVO {
  3. userId: string,
  4. point: number
  5. }
  6. // 获取用户积分分页
  7. export const getUserPointsPage = async (params) => {
  8. return await request.get({ url: `/menduner/reward/user-point/page`, params })
  9. }
  10. // 获取用户积分详情
  11. export const getUserPointsDetails = async (id) => {
  12. return await request.get({ url: `/menduner/reward/user-point/get?id=${id}` })
  13. }
  14. // 获取用户积分分页
  15. export const updateUserPoints = async (data) => {
  16. return await request.put({ url: `/menduner/reward/user-point/update`, data })
  17. }