From e7b3a5e891287b1291d2ac38f7c83d5d73bc7906 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期六, 08 十月 2022 08:49:01 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/controller/sys/MenusController.java | 30 ++++++++++++++++++------------ 1 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/lf/server/controller/data/MenusController.java b/src/main/java/com/lf/server/controller/sys/MenusController.java similarity index 85% rename from src/main/java/com/lf/server/controller/data/MenusController.java rename to src/main/java/com/lf/server/controller/sys/MenusController.java index ea87fca..aa18b54 100644 --- a/src/main/java/com/lf/server/controller/data/MenusController.java +++ b/src/main/java/com/lf/server/controller/sys/MenusController.java @@ -1,10 +1,10 @@ -package com.lf.server.controller.data; +package com.lf.server.controller.sys; -import com.lf.server.controller.BaseController; +import com.lf.server.aspect.SysLog; +import com.lf.server.controller.all.BaseController; import com.lf.server.entity.all.ResponseMsg; -import com.lf.server.entity.data.DictEntity; -import com.lf.server.entity.data.MenusEntity; -import com.lf.server.service.data.MenusService; +import com.lf.server.entity.sys.MenusEntity; +import com.lf.server.service.sys.MenusService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; @@ -20,16 +20,17 @@ * @date 2022-09-23 */ -@Api(tags= "鑿滃崟绠$悊") +@Api(tags= "杩愮淮绠$悊\\鑿滃崟绠$悊") @RestController @RequestMapping("/Menu") public class MenusController extends BaseController { @Autowired MenusService menuService; + @SysLog() @ApiOperation(value = "鎻掑叆涓�鏉℃暟鎹�") @ApiImplicitParams({ - @ApiImplicitParam(name = "MenusEntity", value = "瀛楀吀瀹炰綋绫�", dataType = "com.lf.server.entity.data.MenusEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "MenusEntity", value = "瀛楀吀瀹炰綋绫�", dataType = "com.lf.server.entity.sys.MenusEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertMenu", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertMenu(@RequestBody MenusEntity menusEntity) { @@ -41,11 +42,12 @@ } } + @SysLog() @ApiOperation(value = "鎻掑叆澶氭潯鏁版嵁") @ApiImplicitParams({ - @ApiImplicitParam(name = "MenusEntity", value = "瀛楀吀瀹炰綋绫�", dataType = "com.lf.server.entity.data.MenusEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "MenusEntity", value = "瀛楀吀瀹炰綋绫�", dataType = "com.lf.server.entity.sys.MenusEntity", paramType = "body", example = "") }) - @PostMapping(value = "/insertMenus", produces = "application/json; charset=UTF-8") + @PostMapping(value = "/insertMenus", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertMenus(@RequestBody List<MenusEntity> menusEntity) { try { int count = menuService.insertMenus(menusEntity); @@ -56,6 +58,7 @@ } } + @SysLog() @ApiOperation(value = "鍒犻櫎涓�鏉℃暟鎹�") @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "涓婚敭ID", dataType = "Integer", paramType = "query", example = "1") @@ -71,6 +74,7 @@ } } + @SysLog() @ApiOperation(value = "鍒犻櫎澶氭潯鏁版嵁") @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "涓婚敭ID", dataType = "Integer", paramType = "query", example = "1") @@ -90,12 +94,13 @@ } } + @SysLog() @ApiOperation(value = "鏇存柊涓�鏉℃暟鎹�") @ApiImplicitParams({ @ApiImplicitParam(name = "MenusEntity", value = "鑿滃崟ID闆嗗悎", dataType = "MenusEntity", paramType = "body", example = "") }) @ResponseBody - @PostMapping(value = "/updateMenu", produces = "application/json; charset=UTF-8") + @PostMapping(value = "/updateMenu", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> updateMenu(@RequestBody MenusEntity menusEntity) { try { int count = menuService.updateMenu(menusEntity); @@ -106,6 +111,7 @@ } } + @SysLog() @ApiOperation(value = "鏍规嵁ID鏌ヨ瀛楀吀") @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "瀛楀吀ID", dataType = "Integer", paramType = "query", example = "1") @@ -121,6 +127,7 @@ } } + @SysLog() @ApiOperation(value = "鏌ヨ鎵�鏈夊瓧鍏�") @GetMapping(value = "/selectMenuAll") public ResponseMsg<List<MenusEntity>> selectMenuAll() { @@ -132,5 +139,4 @@ return fail(ex.getMessage(), null); } } - -} \ No newline at end of file +} -- Gitblit v1.9.3