index.ts 617 B

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