From 69b3b7cb39cffdc76f53a7fcf7c682b259988d45 Mon Sep 17 00:00:00 2001 From: Junling Bu Date: Mon, 3 Sep 2018 17:30:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=EF=BC=9A=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E4=B8=8D=E6=94=AF=E6=8C=81=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E5=AF=B9=E7=94=A8=E6=88=B7=E6=90=9C=E7=B4=A2=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=BF=9B=E8=A1=8Ccrud=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/web/AdminHistoryController.java | 41 ------ litemall-admin/src/api/history.js | 32 ----- litemall-admin/src/views/user/history.vue | 118 +----------------- .../service/LitemallSearchHistoryService.java | 21 ---- 4 files changed, 1 insertion(+), 211 deletions(-) diff --git a/litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminHistoryController.java b/litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminHistoryController.java index a542639c..c338f366 100644 --- a/litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminHistoryController.java +++ b/litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminHistoryController.java @@ -42,45 +42,4 @@ public class AdminHistoryController { return ResponseUtil.ok(data); } - - @PostMapping("/create") - public Object create(@LoginAdmin Integer adminId, @RequestBody LitemallSearchHistory history){ - if(adminId == null){ - return ResponseUtil.unlogin(); - } - return ResponseUtil.unsupport(); - } - - @GetMapping("/read") - public Object read(@LoginAdmin Integer adminId, Integer id){ - if(adminId == null){ - return ResponseUtil.unlogin(); - } - - if(id == null){ - return ResponseUtil.badArgument(); - } - - LitemallSearchHistory history = searchHistoryService.findById(id); - return ResponseUtil.ok(history); - } - - @PostMapping("/update") - public Object update(@LoginAdmin Integer adminId, @RequestBody LitemallSearchHistory history){ - if(adminId == null){ - return ResponseUtil.unlogin(); - } - searchHistoryService.updateById(history); - return ResponseUtil.ok(); - } - - @PostMapping("/delete") - public Object delete(@LoginAdmin Integer adminId, @RequestBody LitemallSearchHistory history){ - if(adminId == null){ - return ResponseUtil.unlogin(); - } - searchHistoryService.deleteById(history.getId()); - return ResponseUtil.ok(); - } - } diff --git a/litemall-admin/src/api/history.js b/litemall-admin/src/api/history.js index 0c792867..06d8df40 100644 --- a/litemall-admin/src/api/history.js +++ b/litemall-admin/src/api/history.js @@ -7,35 +7,3 @@ export function listHistory(query) { params: query }) } - -export function createHistory(data) { - return request({ - url: '/history/create', - method: 'post', - data - }) -} - -export function readHistory(data) { - return request({ - url: '/history/read', - method: 'get', - data - }) -} - -export function updateHistory(data) { - return request({ - url: '/history/update', - method: 'post', - data - }) -} - -export function deleteHistory(data) { - return request({ - url: '/history/delete', - method: 'post', - data - }) -} diff --git a/litemall-admin/src/views/user/history.vue b/litemall-admin/src/views/user/history.vue index 74291335..dddd4686 100644 --- a/litemall-admin/src/views/user/history.vue +++ b/litemall-admin/src/views/user/history.vue @@ -8,7 +8,6 @@ 查找 - 添加 导出 @@ -40,32 +39,11 @@ - - - - - - - - - - - - - - - - -