menu.js 884 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import request from '@/utils/request'
  2. // 食谱信息列表 system:recipe:list
  3. export function getRecipelistFn(data) {
  4. return request({
  5. 'url': '/system/recipe/list',
  6. 'method': 'get',
  7. 'data':data
  8. })
  9. }
  10. // 新增食谱信息 system:recipe:add
  11. export function getRecipeAddFn(data) {
  12. return request({
  13. 'url': '/system/recipe',
  14. 'method': 'post',
  15. 'data':data
  16. })
  17. }
  18. // 删除食谱信息 system:recipe:remove
  19. export function getRecipedelFn(data) {
  20. return request({
  21. 'url': '/system/recipe/delete/'+data,
  22. 'method': 'get',
  23. })
  24. }
  25. // 修改食谱信息 system:recipe:edit
  26. export function getRecipeEditFn(data) {
  27. return request({
  28. 'url': '/system/recipe/put',
  29. 'method': 'post',
  30. 'data':data
  31. })
  32. }
  33. //食谱详情 system:recipe:query
  34. export function getRecipedetaFn(data) {
  35. return request({
  36. 'url': '/system/recipe/'+data,
  37. 'method': 'get',
  38. })
  39. }