Java平台接口
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

45 行
729B

  1. import request from '@/utils/request'
  2. // 查询岗位列表
  3. export function listPost(query) {
  4. return request({
  5. url: '/system/post/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询岗位详细
  11. export function getPost(postId) {
  12. return request({
  13. url: '/system/post/' + postId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增岗位
  18. export function addPost(data) {
  19. return request({
  20. url: '/system/post',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改岗位
  26. export function updatePost(data) {
  27. return request({
  28. url: '/system/post',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除岗位
  34. export function delPost(postId) {
  35. return request({
  36. url: '/system/post/' + postId,
  37. method: 'delete'
  38. })
  39. }