doctorArticleCate.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import request from '@/utils/request'
  2. // 查询医生文章分类列表
  3. export function listDoctorArticleCate(query) {
  4. return request({
  5. url: '/his/doctorArticleCate/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询医生文章分类详细
  11. export function getDoctorArticleCate(cateId) {
  12. return request({
  13. url: '/his/doctorArticleCate/' + cateId,
  14. method: 'get'
  15. })
  16. }
  17. export function getAllArticleCateList(query) {
  18. return request({
  19. url: '/his/doctorArticleCate/allList',
  20. method: 'get',
  21. params: query
  22. })
  23. }
  24. // 新增医生文章分类
  25. export function addDoctorArticleCate(data) {
  26. return request({
  27. url: '/his/doctorArticleCate',
  28. method: 'post',
  29. data: data
  30. })
  31. }
  32. // 修改医生文章分类
  33. export function updateDoctorArticleCate(data) {
  34. return request({
  35. url: '/his/doctorArticleCate',
  36. method: 'put',
  37. data: data
  38. })
  39. }
  40. // 删除医生文章分类
  41. export function delDoctorArticleCate(cateId) {
  42. return request({
  43. url: '/his/doctorArticleCate/' + cateId,
  44. method: 'delete'
  45. })
  46. }
  47. // 导出医生文章分类
  48. export function exportDoctorArticleCate(query) {
  49. return request({
  50. url: '/his/doctorArticleCate/export',
  51. method: 'get',
  52. params: query
  53. })
  54. }