健康同学微信公众号h5项目
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

44 行
997B

  1. import request from '@/config/request';
  2. export const APIOptimize = {
  3. getCampList, // 获取训练营列表
  4. getTrainingCampDetail, //获取训练营-详情-简介+内容
  5. getTrainingCampDetailComment, //获取训练营-详情-评论
  6. comment //评论课程
  7. };
  8. export default APIOptimize;
  9. // 获取训练营列表
  10. function getCampList(params) {
  11. return request({
  12. url: `/api/HealthyCMS/GetTrainingCamp`,
  13. method: 'post',
  14. data: params
  15. });
  16. }
  17. // 获取训练营-详情-简介+内容
  18. function getTrainingCampDetail(data) {
  19. return request({
  20. url: `/api/HealthyCMS/GetTrainingCampDetail`,
  21. method: 'post',
  22. params: data
  23. });
  24. }
  25. // 获取训练营-详情-评论
  26. function getTrainingCampDetailComment(params) {
  27. return request({
  28. url: `/api/HealthyCMS/GetTrainingCampDetailComment`,
  29. method: 'post',
  30. data: params
  31. });
  32. }
  33. //评论课程
  34. function comment(params) {
  35. return request({
  36. url: `/api/HealthyCMS/Comment`,
  37. method: 'post',
  38. data: params
  39. });
  40. }