course.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. import BaseStore from '@src/stores/base';
  2. export default class CourseStore extends BaseStore {
  3. list(params) {
  4. return this.apiGet('/course/list', params);
  5. }
  6. add(params) {
  7. return this.apiPost('/course/add', params);
  8. }
  9. edit(params) {
  10. return this.apiPut('/course/edit', params);
  11. }
  12. get(params) {
  13. return this.apiGet('/course/detail', params);
  14. }
  15. del(params) {
  16. return this.apiDel('/course/delete', params);
  17. }
  18. listAsk(params) {
  19. return this.apiGet('/course/ask/list', params);
  20. }
  21. editAsk(params) {
  22. return this.apiPut('/course/ask/edit', params);
  23. }
  24. getAsk(params) {
  25. return this.apiGet('/course/ask/detail', params);
  26. }
  27. listPackage(params) {
  28. return this.apiGet('/course/package/list', params);
  29. }
  30. addPackage(params) {
  31. return this.apiPost('/course/package/add', params);
  32. }
  33. editPackage(params) {
  34. return this.apiPut('/course/package/edit', params);
  35. }
  36. delPackage(params) {
  37. return this.apiDel('/course/package/delete', params);
  38. }
  39. listData(params) {
  40. return this.apiGet('/course/data/list', params);
  41. }
  42. addData(params) {
  43. return this.apiPost('/course/data/add', params);
  44. }
  45. editData(params) {
  46. return this.apiPut('/course/data/edit', params);
  47. }
  48. getData(params) {
  49. return this.apiGet('/course/data/detail', params);
  50. }
  51. delData(params) {
  52. return this.apiDel('/course/data/delete', params);
  53. }
  54. listDataHistory(params) {
  55. return this.apiGet('/course/data/history/list', params);
  56. }
  57. addDataHistory(params) {
  58. return this.apiPost('/course/data/history/add', params);
  59. }
  60. editDataHistory(params) {
  61. return this.apiPut('/course/data/history/edit', params);
  62. }
  63. delDataHistory(params) {
  64. return this.apiDel('/course/data/history/delete', params);
  65. }
  66. listExperience(params) {
  67. return this.apiGet('/course/experience/list', params);
  68. }
  69. addExperience(params) {
  70. return this.apiPost('/course/experience/add', params);
  71. }
  72. editExperience(params) {
  73. return this.apiPut('/course/experience/edit', params);
  74. }
  75. getExperience(params) {
  76. return this.apiGet('/course/experience/detail', params);
  77. }
  78. delExperience(params) {
  79. return this.apiDel('/course/experience/delete', params);
  80. }
  81. listTeacher(params) {
  82. return this.apiGet('/course/teacher/list', params);
  83. }
  84. addTeacher(params) {
  85. return this.apiPost('/course/teacher/add', params);
  86. }
  87. editTeacher(params) {
  88. return this.apiPut('/course/teacher/edit', params);
  89. }
  90. getTeacher(params) {
  91. return this.apiGet('/course/teacher/detail', params);
  92. }
  93. delTeacher(params) {
  94. return this.apiDel('/course/teacher/delete', params);
  95. }
  96. allNo(params) {
  97. return this.apiGet('/course/no/all', params);
  98. }
  99. addNo(params) {
  100. return this.apiPost('/course/no/add', params);
  101. }
  102. editNo(params) {
  103. return this.apiPut('/course/no/edit', params);
  104. }
  105. getNo(params) {
  106. return this.apiGet('/course/no/detail', params);
  107. }
  108. delNo(params) {
  109. return this.apiDel('/course/no/delete', params);
  110. }
  111. listTime(params) {
  112. return this.apiGet('/course/time/list', params);
  113. }
  114. addTime(params) {
  115. return this.apiPost('/course/time/add', params);
  116. }
  117. editTime(params) {
  118. return this.apiPut('/course/time/edit', params);
  119. }
  120. getTime(params) {
  121. return this.apiGet('/course/time/detail', params);
  122. }
  123. delTime(params) {
  124. return this.apiDel('/course/time/delete', params);
  125. }
  126. listStudentOnline(params) {
  127. return this.apiGet('/course/student/online/list', params);
  128. }
  129. addStudentOnline(params) {
  130. return this.apiPost('/course/student/online/add', params);
  131. }
  132. editStudentOnline(params) {
  133. return this.apiPut('/course/student/online/edit', params);
  134. }
  135. getStudentOnline(params) {
  136. return this.apiGet('/course/student/online/detail', params);
  137. }
  138. delStudentOnline(params) {
  139. return this.apiDel('/course/student/online/delete', params);
  140. }
  141. listStudentVs(params) {
  142. return this.apiGet('/course/student/vs/list', params);
  143. }
  144. addStudentVs(params) {
  145. return this.apiPost('/course/student/vs/add', params);
  146. }
  147. editStudentVs(params) {
  148. return this.apiPut('/course/student/vs/edit', params);
  149. }
  150. getStudentVs(params) {
  151. return this.apiGet('/course/student/vs/detail', params);
  152. }
  153. delStudentVs(params) {
  154. return this.apiDel('/course/student/vs/delete', params);
  155. }
  156. listStudy(params) {
  157. return this.apiGet('/course/study/list', params);
  158. }
  159. }
  160. export const Course = new CourseStore({ key: 'course' });