Newer
Older
KaiFengPC / src / api / system / caseManagement.js
@zhangdeliang zhangdeliang on 23 May 1 KB 初始化项目
  1. import request from "@/utils/request";
  2.  
  3. // 查询经典案例列表
  4. export function listCase(query) {
  5. return request({
  6. url: "/system/platformJump/list",
  7. method: "get",
  8. params: query,
  9. });
  10. }
  11.  
  12. // 查询经典案例分页
  13. export function pageCase(query) {
  14. return request({
  15. url: "/system/platformJump/page",
  16. method: "get",
  17. params: query,
  18. });
  19. }
  20.  
  21. // 查询经典案例详细
  22. export function getCase(CaseId) {
  23. return request({
  24. url: "/system/platformJump/" + CaseId,
  25. method: "get",
  26. });
  27. }
  28.  
  29. // 新增经典案例
  30. export function addCase(data) {
  31. return request({
  32. url: "/system/platformJump/add",
  33. method: "post",
  34. data: data,
  35. });
  36. }
  37.  
  38. // 修改经典案例
  39. export function updateCase(data) {
  40. return request({
  41. url: "/system/platformJump/edit",
  42. method: "put",
  43. data: data,
  44. });
  45. }
  46.  
  47. // 删除经典案例
  48. export function delCase(CaseId) {
  49. return request({
  50. url: "/system/platformJump/" + CaseId,
  51. method: "delete",
  52. });
  53. }
  54.  
  55. // 登录项目跳转增加redis缓存记录
  56. export function loginPlatformJumpAddRedis() {
  57. return request({
  58. url: "/system/platformJump/loginPlatformJumpAddRedis",
  59. method: "post",
  60. });
  61. }