bbs.js 750 B

123456789101112131415161718192021222324252627282930
  1. const config = require("../config")
  2. module.exports = {
  3. list: {
  4. url: config.base_dev_url + "chat/list",
  5. type: "get",
  6. },
  7. createSession: {
  8. url: config.base_dev_url + "chat/createSession",
  9. type: "get",
  10. },
  11. sendMsg: {
  12. url: config.base_dev_url + "chat/send",
  13. type: "post",
  14. },
  15. readUpdate: {
  16. url: config.base_dev_url + "chat/markRead",
  17. type: "get",
  18. },
  19. //获取会话列表(所有农场)
  20. getSessionListAll: {
  21. url: config.base_dev_url + "chat/sessionList",
  22. type: "get",
  23. },
  24. //获取会话列表(单个农场)
  25. sessionListByFarm: {
  26. url: config.base_dev_url + "chat/sessionListByFarm",
  27. type: "get",
  28. },
  29. }