lryp.js 775 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import request from '@/utils/request'
  2. // 查询老人用品列表
  3. export function listLryp(query) {
  4. return request({
  5. url: '/organization/lryp/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询老人用品详细
  11. export function getLryp(id) {
  12. return request({
  13. url: '/organization/lryp/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增老人用品
  18. export function addLryp(data) {
  19. return request({
  20. url: '/organization/lryp',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改老人用品
  26. export function updateLryp(data) {
  27. return request({
  28. url: '/organization/lryp',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除老人用品
  34. export function delLryp(id) {
  35. return request({
  36. url: '/organization/lryp/' + id,
  37. method: 'delete'
  38. })
  39. }