You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

point.js 920 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import service from '../service';
  2. // 算力积分概要
  3. export const getPointAccount = () => {
  4. return service({
  5. url: '/reward/point/account',
  6. method: 'get',
  7. params: {},
  8. });
  9. }
  10. // 算力积分获取、消耗明细
  11. // operate-INCREASE 表示获取明细 DECREASE表示消耗明细, page-当前页, pageSize-每页条数
  12. export const getPointList = (params) => {
  13. return service({
  14. url: '/reward/point/record/list',
  15. method: 'get',
  16. params,
  17. });
  18. }
  19. // 管理员充值、扣减用户积分
  20. // TargetUserId, OperateType-INCREASE,DECREASE, Amount, Remark, RewardType-POINT
  21. export const setPointOperate = (data) => {
  22. return service({
  23. url: '/operation/reward/point/account/operate',
  24. method: 'post',
  25. data,
  26. params: {}
  27. });
  28. }
  29. // 算力积分页面
  30. export const getPoint = () => {
  31. return service({
  32. url: '/reward/point',
  33. method: 'get',
  34. params: {},
  35. data: {},
  36. });
  37. }