correction.js 562 B

12345678910111213141516171819202122232425262728293031
  1. import utils from "../js/utils.js";
  2. /**
  3. * 纠错相关接口
  4. */
  5. module.exports = {
  6. /**
  7. * 纠错类型
  8. * @returns {Promise<*>}
  9. */
  10. getCorrectionTypes(handler, data = {}) {
  11. return utils.http(handler, 'correction/types', data)
  12. },
  13. /**
  14. * 提交纠错
  15. * @returns {Promise<*>}
  16. */
  17. submitCorrection(handler, data = {}) {
  18. return utils.http(handler, 'correction/submit', data)
  19. },
  20. /**
  21. * 获取纠错反馈列表
  22. * @returns {Promise<*>}
  23. */
  24. getCorrectionList(handler, data = {}) {
  25. return utils.http(handler, 'correction/list', data)
  26. },
  27. }