video.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. import {axios} from '@/utils/request'
  2. //获取登陆账户已经绑定过的快手账户列表
  3. export function getUserList() {
  4. return axios({
  5. url: "/ks/web/user/list",
  6. method: 'post',
  7. // params: parameter
  8. })
  9. }
  10. // 获取登陆二维码
  11. export function getLoginQr() {
  12. return axios({
  13. url: "/ks/web/login/qr",
  14. method: 'post',
  15. // params: parameter
  16. })
  17. }
  18. // 获取登陆状态
  19. // /ks/web/login/status
  20. // 参数 String requestId
  21. export function getLoginStatus(parameter) {
  22. return axios({
  23. url: "/ks/web/login/status",
  24. method: 'post',
  25. params: parameter
  26. })
  27. }
  28. // 获取视频列表
  29. // /ks/web/video/list
  30. // 参数 String ksid,String pcursor
  31. export function getVideoList(parameter) {
  32. return axios({
  33. url: "/ks/web/video/list",
  34. method: 'post',
  35. params: parameter
  36. })
  37. }
  38. // 获取评论列表
  39. // /ks/web/comment/list
  40. // 参数 String ksid,String photoId,String pcursor
  41. export function getCommentList(parameter) {
  42. return axios({
  43. url: "/ks/web/comment/list",
  44. method: 'post',
  45. params: parameter
  46. })
  47. }
  48. // 删除单条评论
  49. // /ks/web/comment/delete
  50. // 参数 String ksid,String photoId,Long commentId
  51. export function commentDelete(parameter) {
  52. return axios({
  53. url: "/ks/web/comment/delete",
  54. method: 'post',
  55. params: parameter
  56. })
  57. }
  58. // 获取子评论列表
  59. // /ks/web/subcomment/list
  60. // 参数 String ksid,String photoId,Long rootCommentId,String pcursor
  61. export function getSubcommentList(parameter) {
  62. return axios({
  63. url: "/ks/web/subcomment/list",
  64. method: 'post',
  65. params: parameter
  66. })
  67. }
  68. //评论添加接口
  69. ///ks/web/comment/add
  70. // String ksid, String photoId,String content, Long replyToCommentId,Long repltTo
  71. export function commentAdd(parameter) {
  72. return axios({
  73. url: "/ks/web/comment/add",
  74. method: 'post',
  75. params: parameter
  76. })
  77. }
  78. //头条当前账号下的数据集合
  79. // /ctop/report/accountReport
  80. export function getAccountReport() {
  81. return axios({
  82. url: "/ctop/report/accountReport",
  83. method: 'get',
  84. // params: parameter
  85. })
  86. }
  87. //快手当前账号下的数据集合
  88. export function getKsAccountReport(parameter) {
  89. return axios({
  90. url: "/ctop/report/kuaiShou/accountReport",
  91. method: 'post',
  92. data: parameter
  93. })
  94. }
  95. // 当日明细
  96. // /accountReport/kuaiShou/accountDetailReport
  97. //快手当前账号下的数据集合
  98. export function getKsDetail(parameter) {
  99. return axios({
  100. url: "/ctop/report/kuaiShou/accountDetailReport",
  101. method: 'post',
  102. data: parameter
  103. })
  104. }
  105. // 当日明细
  106. // /accountReport/kuaiShou/accountDetailReport
  107. //快手当前账号下的数据集合
  108. export function getReportList(parameter) {
  109. return axios({
  110. url: "/ctop/report/kuaiShou/getReportList",
  111. method: 'post',
  112. data: parameter
  113. })
  114. }