木邻有你前端代码仓库
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.

24 lines
462 B

  1. import request from "@/api/request";
  2. export default {
  3. // 社区- 获取帖子列表
  4. async queryPostList(data) {
  5. return request({
  6. url: '/comment/queryPostList',
  7. method: 'GET',
  8. data,
  9. showLoading: true,
  10. noToken: true
  11. })
  12. },
  13. // 社区- 上传帖子
  14. async addPost(data) {
  15. return request({
  16. url: '/comment/addPost',
  17. method: 'POST',
  18. data,
  19. showLoading: true,
  20. // noToken: true
  21. })
  22. }
  23. }