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/LoginController.java | 25 +++++++++++++++++-------- 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/lf/server/controller/data/LoginController.java b/src/main/java/com/lf/server/controller/sys/LoginController.java similarity index 93% rename from src/main/java/com/lf/server/controller/data/LoginController.java rename to src/main/java/com/lf/server/controller/sys/LoginController.java index 97d8ae5..45d8a7a 100644 --- a/src/main/java/com/lf/server/controller/data/LoginController.java +++ b/src/main/java/com/lf/server/controller/sys/LoginController.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.LoginEntity; -import com.lf.server.service.data.LoginService; +import com.lf.server.entity.sys.LoginEntity; +import com.lf.server.service.sys.LoginService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; @@ -19,13 +19,14 @@ * @author SWS * @date 2022-09.28 */ -@Api(tags = "鐧诲綍鏃ュ織") +@Api(tags = "杩愮淮绠$悊\\鐧诲綍鏃ュ織") @RestController @RequestMapping("/login") public class LoginController extends BaseController { @Autowired LoginService loginService; + @SysLog() @ApiOperation(value = "鏌ヨ璁板綍鏁�") @ApiImplicitParams({ @ApiImplicitParam(name = "userid", value = "鐧诲綍浜篒D", dataType = "String", paramType = "query", required = false, example = "sys_login") @@ -41,6 +42,7 @@ } } + @SysLog() @ApiOperation(value = "鍒嗛〉鏌ヨ") @ApiImplicitParams({ @ApiImplicitParam(name = "userid", value = "鐧诲綍浜篒D", dataType = "String", paramType = "query", example = "sys_login"), @@ -60,6 +62,7 @@ } } + @SysLog() @ApiOperation(value = "鍒嗛〉鏌ヨ骞惰繑鍥炶褰曟暟") @ApiImplicitParams({ @ApiImplicitParam(name = "userid", value = "鐧诲綍浜篒D", dataType = "String", paramType = "query", example = "1"), @@ -86,9 +89,10 @@ } } + @SysLog() @ApiOperation(value = "鎻掑叆瀛楀吀") @ApiImplicitParams({ - @ApiImplicitParam(name = "loginEntity", value = "瀛楀吀瀹炰綋绫�", dataType = "com.lf.server.entity.data.LoginEntity", paramType = "body", example = "") + @ApiImplicitParam(name = "loginEntity", value = "瀛楀吀瀹炰綋绫�", dataType = "com.lf.server.entity.sys.LoginEntity", paramType = "body", example = "") }) @PostMapping(value = "/insertLogin", produces = "application/json; charset=UTF-8") public ResponseMsg<Integer> insertLogin(@RequestBody LoginEntity loginEntity) { @@ -101,6 +105,7 @@ } } + @SysLog() @ApiOperation(value = "鎻掑叆澶氭潯瀛楀吀") @ApiImplicitParams({ @ApiImplicitParam(name = "loginEntity", value = "瀛楀吀瀹炰綋绫婚泦鍚�", dataType = "List<LoginEntity>", paramType = "body", example = "") @@ -116,6 +121,7 @@ } } + @SysLog() @ApiOperation(value = "鍒犻櫎涓�鏉″瓧鍏�") @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "瀛楀吀ID", dataType = "Integer", paramType = "query", example = "1") @@ -131,6 +137,7 @@ } } + @SysLog() @ApiOperation(value = "鍒犻櫎澶氭潯瀛楀吀") @ApiImplicitParams({ @ApiImplicitParam(name = "ids", value = "瀛楀吀ID闆嗗悎", dataType = "List<Integer>", paramType = "query", example = "1,2") @@ -148,6 +155,7 @@ } } + @SysLog() @ApiOperation(value = "鏇存柊涓�鏉″瓧鍏�") @ApiImplicitParams({ @ApiImplicitParam(name = "loginEntity", value = "瀛楀吀ID闆嗗悎", dataType = "LoginEntity", paramType = "body", example = "") @@ -164,6 +172,7 @@ } } + @SysLog() @ApiOperation(value = "鏍规嵁ID鏌ヨ瀛楀吀") @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "瀛楀吀ID", dataType = "Integer", paramType = "query", example = "1") @@ -179,6 +188,7 @@ } } + @SysLog() @ApiOperation(value = "鏌ヨ鎵�鏈夊瓧鍏�") @GetMapping(value = "/selectLoginAll") public ResponseMsg<List<LoginEntity>> selectLoginAll() { @@ -190,5 +200,4 @@ return fail(ex.getMessage(), null); } } - } -- Gitblit v1.9.3