邃芒慧影管理端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

71 line
1.2 KiB

  1. /*
  2. * @Autor: Chutingting
  3. * @Date: 2023-11-11 19:15:01
  4. * @LastEditors: Chutingting
  5. * @LastEditTime: 2023-11-13 10:28:20
  6. * @Description:
  7. */
  8. import request from "@/utils/request.js";
  9. /**
  10. * @description:用户角色
  11. * @param
  12. * @return:
  13. */
  14. export function getUser() {
  15. return request({
  16. url: `/user/getUser`,
  17. method: 'get',
  18. })
  19. }
  20. /**
  21. * @description:用户角色
  22. * @param
  23. * @return:
  24. */
  25. export function localDeployApi() {
  26. return request({
  27. url: `/localDeploy`,
  28. method: 'get',
  29. })
  30. }
  31. /**
  32. * @description: api 剩余时长
  33. * @param
  34. * @return:
  35. */
  36. export function current() {
  37. return request({
  38. url: `/serviceInfo/current`,
  39. method: 'get',
  40. })
  41. }
  42. /**
  43. * @description: 私有化 剩余时长
  44. * @param
  45. * @return:
  46. */
  47. export function privateDeployAdminCurrent() {
  48. return request({
  49. url: `/serviceInfo/privateDeployAdminCurrent`,
  50. method: 'get',
  51. })
  52. }
  53. /**
  54. * @description: 视频制作统计
  55. * @param
  56. * @return:
  57. */
  58. export function videoListApi(pageNum, pageSize) {
  59. let api = localStorage.getItem("isAdmin") === '0' ? '/serviceInfo/currentVideoRecords' : '/serviceInfo/privateDeployAdminCurrentVideoRecords'
  60. return request({
  61. url: `${api}?pageNum=${pageNum}&pageSize=${pageSize}`,
  62. method: 'get',
  63. })
  64. }