refactor: 修改数据库脚本的注释,修改LoginController的bean注入方式

This commit is contained in:
valarchie
2023-01-10 19:52:12 +08:00
parent 2ab13dee9c
commit f2ac2873d0
2 changed files with 11 additions and 14 deletions

View File

@@ -22,6 +22,8 @@ import com.agileboot.infrastructure.web.domain.login.LoginUser;
import com.agileboot.infrastructure.web.domain.ratelimit.RateLimitKey;
import com.agileboot.infrastructure.web.service.LoginService;
import java.util.List;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@@ -34,22 +36,17 @@ import org.springframework.web.bind.annotation.RestController;
* @author valarchie
*/
@RestController
@RequiredArgsConstructor
public class LoginController {
private final LoginService loginService;
@NonNull
private LoginService loginService;
private final MenuApplicationService menuApplicationService;
/**
* 系统基础配置
*/
private final AgileBootConfig agileBootConfig;
@NonNull
private MenuApplicationService menuApplicationService;
public LoginController(LoginService loginService,
MenuApplicationService menuApplicationService, AgileBootConfig agileBootConfig) {
this.loginService = loginService;
this.menuApplicationService = menuApplicationService;
this.agileBootConfig = agileBootConfig;
}
@NonNull
private AgileBootConfig agileBootConfig;
/**
* 访问首页,提示语

View File

@@ -60,7 +60,7 @@ CREATE TABLE `sys_dept` (
`leader_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '负责人',
`phone` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '联系电话',
`email` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '邮箱',
`status` smallint NOT NULL DEFAULT '0' COMMENT '部门状态0正常 1用)',
`status` smallint NOT NULL DEFAULT '0' COMMENT '部门状态0停用 1用)',
`creator_id` bigint DEFAULT NULL COMMENT '创建者ID',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`updater_id` bigint DEFAULT NULL COMMENT '更新者ID',
@@ -121,7 +121,7 @@ CREATE TABLE `sys_menu` (
`is_cache` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否缓存1缓存 0不缓存',
`menu_type` smallint NOT NULL DEFAULT '0' COMMENT '菜单类型M=1目录 C=2菜单 F=3按钮',
`is_visible` tinyint(1) NOT NULL DEFAULT '0' COMMENT '菜单状态1显示 0隐藏',
`status` smallint NOT NULL DEFAULT '0' COMMENT '菜单状态(0正常 1停用)',
`status` smallint NOT NULL DEFAULT '0' COMMENT '菜单状态(1启用 0停用)',
`perms` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '权限标识',
`icon` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#' COMMENT '菜单图标',
`creator_id` bigint DEFAULT NULL COMMENT '创建者ID',