This commit is contained in:
萌狼蓝天 2024-09-22 17:40:13 +08:00
parent 5fd4a86a93
commit 8a0b95d941
2 changed files with 228 additions and 0 deletions

187
harmonylife.sql Normal file
View File

@ -0,0 +1,187 @@
/*
Navicat Premium Data Transfer
Source Server :
Source Server Type : MySQL
Source Server Version : 50743 (5.7.43-log)
Source Host : localhost:3306
Source Schema : harmonylife
Target Server Type : MySQL
Target Server Version : 50743 (5.7.43-log)
File Encoding : 65001
Date: 22/09/2024 17:33:11
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for system_action
-- ----------------------------
DROP TABLE IF EXISTS `system_action`;
CREATE TABLE `system_action` (
`id` bigint(11) NOT NULL COMMENT '动作id',
`tag` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '动作标签 例如 add',
`describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '动作标题 例如 增加',
`default_check` tinyint(4) NULL DEFAULT NULL COMMENT '0 false 1 true',
`status` tinyint(4) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '动作表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of system_action
-- ----------------------------
INSERT INTO `system_action` VALUES (1, 'add', '新增', 0, NULL);
INSERT INTO `system_action` VALUES (2, 'import', '导入', 0, NULL);
INSERT INTO `system_action` VALUES (3, 'get', '详情', 0, NULL);
INSERT INTO `system_action` VALUES (4, 'update', '更新', 0, NULL);
INSERT INTO `system_action` VALUES (5, 'delete', '删除', 0, NULL);
INSERT INTO `system_action` VALUES (6, 'export', '导出', 0, NULL);
-- ----------------------------
-- Table structure for system_menu
-- ----------------------------
DROP TABLE IF EXISTS `system_menu`;
CREATE TABLE `system_menu` (
`id` bigint(11) NOT NULL COMMENT 'id',
`key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'key',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路由名称',
`component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组件名称',
`redirect` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '重定向',
`icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图标名称',
`status` tinyint(4) NULL DEFAULT NULL COMMENT '状态 0 未启用 -1 删除 1正常使用',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of system_menu
-- ----------------------------
-- ----------------------------
-- Table structure for system_permission
-- ----------------------------
DROP TABLE IF EXISTS `system_permission`;
CREATE TABLE `system_permission` (
`id` bigint(11) NOT NULL COMMENT '权限id',
`permission_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限id文本型',
`permission_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限名称(菜单名称)',
`status` tinyint(4) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '权限表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of system_permission
-- ----------------------------
INSERT INTO `system_permission` VALUES (1, 'dashboard', '数据中心', NULL);
INSERT INTO `system_permission` VALUES (2, 'exception', '异常管理', NULL);
INSERT INTO `system_permission` VALUES (3, 'result', '结果管理', NULL);
INSERT INTO `system_permission` VALUES (4, 'profile', '个人信息管理', NULL);
INSERT INTO `system_permission` VALUES (5, 'table', '表格管理', NULL);
INSERT INTO `system_permission` VALUES (6, 'form', '表单管理', NULL);
INSERT INTO `system_permission` VALUES (7, 'order', '订单管理', NULL);
INSERT INTO `system_permission` VALUES (8, 'permission', '权限管理', NULL);
INSERT INTO `system_permission` VALUES (9, 'role', '角色管理', NULL);
INSERT INTO `system_permission` VALUES (10, 'user', '用户管理', NULL);
-- ----------------------------
-- Table structure for system_permission_action
-- ----------------------------
DROP TABLE IF EXISTS `system_permission_action`;
CREATE TABLE `system_permission_action` (
`id` bigint(11) NOT NULL COMMENT 'id',
`action_tag` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '动作id 文本型',
`permission_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限id 文本型',
`status` tinyint(4) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of system_permission_action
-- ----------------------------
INSERT INTO `system_permission_action` VALUES (1, 'add', 'role', 1);
INSERT INTO `system_permission_action` VALUES (2, 'import', 'role', 1);
INSERT INTO `system_permission_action` VALUES (3, 'get', 'role', 1);
INSERT INTO `system_permission_action` VALUES (4, 'update', 'role', 1);
INSERT INTO `system_permission_action` VALUES (5, 'delete', 'role', 1);
INSERT INTO `system_permission_action` VALUES (6, 'export', 'role', 1);
INSERT INTO `system_permission_action` VALUES (7, 'add', 'permission', 1);
INSERT INTO `system_permission_action` VALUES (8, 'import', 'permission', 1);
INSERT INTO `system_permission_action` VALUES (9, 'get', 'permission', 1);
INSERT INTO `system_permission_action` VALUES (10, 'update', 'permission', 1);
INSERT INTO `system_permission_action` VALUES (11, 'delete', 'permission', 1);
INSERT INTO `system_permission_action` VALUES (12, 'export', 'permission', 1);
-- ----------------------------
-- Table structure for system_role
-- ----------------------------
DROP TABLE IF EXISTS `system_role`;
CREATE TABLE `system_role` (
`id` bigint(11) NOT NULL COMMENT '角色id role_id',
`role_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色名称',
`role_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色id文本型',
`status` tinyint(4) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of system_role
-- ----------------------------
INSERT INTO `system_role` VALUES (1, '超级管理员', 'root', NULL);
INSERT INTO `system_role` VALUES (2, '管理员', 'admin', NULL);
INSERT INTO `system_role` VALUES (3, '机构', 'agent', NULL);
-- ----------------------------
-- Table structure for system_role_permission
-- ----------------------------
DROP TABLE IF EXISTS `system_role_permission`;
CREATE TABLE `system_role_permission` (
`id` bigint(11) NOT NULL,
`role_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '注意是文本型',
`permission_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '注意是文本型',
`status` tinyint(4) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of system_role_permission
-- ----------------------------
INSERT INTO `system_role_permission` VALUES (1, 'root', 'dashboard', NULL);
INSERT INTO `system_role_permission` VALUES (2, 'root', 'exception', NULL);
INSERT INTO `system_role_permission` VALUES (3, 'root', 'result', NULL);
INSERT INTO `system_role_permission` VALUES (4, 'root', 'profile', NULL);
INSERT INTO `system_role_permission` VALUES (5, 'root', 'table', NULL);
INSERT INTO `system_role_permission` VALUES (6, 'root', 'form', NULL);
INSERT INTO `system_role_permission` VALUES (7, 'root', 'order', NULL);
INSERT INTO `system_role_permission` VALUES (8, 'root', 'permission', NULL);
INSERT INTO `system_role_permission` VALUES (9, 'root', 'role', NULL);
INSERT INTO `system_role_permission` VALUES (10, 'root', 'user', NULL);
-- ----------------------------
-- Table structure for user_info
-- ----------------------------
DROP TABLE IF EXISTS `user_info`;
CREATE TABLE `user_info` (
`id` bigint(11) NOT NULL COMMENT '用户uid',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '昵称(用于显示,可以随意更改)',
`username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名(登录使用的账号)',
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码',
`avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '头像图片地址',
`status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '状态',
`telephone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机号',
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
`create_time` datetime NULL DEFAULT NULL COMMENT '注册时间',
`merchant_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商户编号',
`deleted` tinyint(4) NULL DEFAULT NULL COMMENT '1 已删除 0未删除',
`role_id` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限id 文本类型',
`creator_id` int(11) NULL DEFAULT NULL COMMENT '创建者id 0 或者空为自己注册',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of user_info
-- ----------------------------
INSERT INTO `user_info` VALUES (1, '萌狼蓝天', 'xrilang', NULL, 'https://q1.qlogo.cn/g?b=qq&nk=3447902411&s=640', '1', NULL, NULL, '2024-09-21 22:31:02', NULL, 0, 'root', NULL);
SET FOREIGN_KEY_CHECKS = 1;

View File

@ -1184,3 +1184,44 @@
2024-09-22 16:41:59.769 [http-nio-8080-exec-4] DEBUG c.g.h.m.AuthMapper.getUserByAccount - <== Total: 0 2024-09-22 16:41:59.769 [http-nio-8080-exec-4] DEBUG c.g.h.m.AuthMapper.getUserByAccount - <== Total: 0
2024-09-22 16:42:25.305 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated... 2024-09-22 16:42:25.305 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
2024-09-22 16:42:25.309 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed. 2024-09-22 16:42:25.309 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
2024-09-22 16:42:28.543 [main] INFO o.s.boot.SpringApplication -
██╗ ██╗██████╗ ██╗██╗ █████╗ ███╗ ██╗ ██████╗
╚██╗██╔╝██╔══██╗██║██║ ██╔══██╗████╗ ██║██╔════╝
╚███╔╝ ██████╔╝██║██║ ███████║██╔██╗ ██║██║ ███╗
██╔██╗ ██╔══██╗██║██║ ██╔══██║██║╚██╗██║██║ ██║
██╔╝ ██╗██║ ██║██║███████╗██║ ██║██║ ╚████║╚██████╔╝
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝
^_^ 服务启动成功 He Sheng
# 项目名称harmony-life-server
# 项目版本1.0.0
# 框架版本3.3.4
# 最后更新于 2024年 9月 25日
2024-09-22 16:42:28.588 [main] INFO c.g.h.HarmonyLifeServerApplication - Starting HarmonyLifeServerApplication using Java 17.0.8 with PID 30636 (C:\Users\xrilang\Desktop\harmony-life\harmony-life-server\harmony-life-server\target\classes started by xrilang in C:\Users\xrilang\Desktop\harmony-life\harmony-life-server\harmony-life-server)
2024-09-22 16:42:28.589 [main] DEBUG c.g.h.HarmonyLifeServerApplication - Running with Spring Boot v3.3.4, Spring v6.1.13
2024-09-22 16:42:28.589 [main] INFO c.g.h.HarmonyLifeServerApplication - No active profile set, falling back to 1 default profile: "default"
2024-09-22 16:42:29.124 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
2024-09-22 16:42:29.125 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data JDBC repositories in DEFAULT mode.
2024-09-22 16:42:29.135 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 7 ms. Found 0 JDBC repository interfaces.
2024-09-22 16:42:29.144 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
2024-09-22 16:42:29.145 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2024-09-22 16:42:29.157 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 4 ms. Found 0 Redis repository interfaces.
2024-09-22 16:42:29.559 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port 8080 (http)
2024-09-22 16:42:29.565 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8080"]
2024-09-22 16:42:29.568 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
2024-09-22 16:42:29.569 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/10.1.30]
2024-09-22 16:42:29.622 [main] INFO o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-09-22 16:42:29.622 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 1003 ms
2024-09-22 16:42:30.233 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
2024-09-22 16:42:30.322 [main] INFO com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@5a8b42a3
2024-09-22 16:42:30.323 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
2024-09-22 16:42:30.424 [main] INFO o.a.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8080"]
2024-09-22 16:42:30.438 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat started on port 8080 (http) with context path '/'
2024-09-22 16:42:30.445 [main] INFO c.g.h.HarmonyLifeServerApplication - Started HarmonyLifeServerApplication in 2.18 seconds (process running for 2.581)
2024-09-22 16:42:39.400 [http-nio-8080-exec-1] INFO o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-09-22 16:42:39.400 [http-nio-8080-exec-1] INFO o.s.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2024-09-22 16:42:39.401 [http-nio-8080-exec-1] INFO o.s.web.servlet.DispatcherServlet - Completed initialization in 1 ms
2024-09-22 16:42:39.559 [http-nio-8080-exec-6] ERROR c.g.h.config.GlobalExceptionHandler - No static resource favicon.ico.
2024-09-22 16:42:39.738 [http-nio-8080-exec-2] INFO o.s.api.AbstractOpenApiResource - Init duration for springdoc-openapi is: 128 ms