diff --git a/library-management/springboot/src/test/java/com/example/springboot/SpringbootApplicationTests.java b/library-management/springboot/src/test/java/com/example/springboot/SpringbootApplicationTests.java deleted file mode 100644 index aef6da87..00000000 --- a/library-management/springboot/src/test/java/com/example/springboot/SpringbootApplicationTests.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.example.springboot; - -import org.junit.jupiter.api.Test; -import org.springframework.boot.test.context.SpringBootTest; - -@SpringBootTest -class SpringbootApplicationTests { - - @Test - void contextLoads() { - } - -} diff --git a/library-management/springboot/target/classes/com/example/springboot/SpringbootApplication.class b/library-management/springboot/target/classes/com/example/springboot/SpringbootApplication.class index 755dfb31..c56be843 100644 Binary files a/library-management/springboot/target/classes/com/example/springboot/SpringbootApplication.class and b/library-management/springboot/target/classes/com/example/springboot/SpringbootApplication.class differ diff --git a/library-management/springboot/target/test-classes/com/example/springboot/SpringbootApplicationTests.class b/library-management/springboot/target/test-classes/com/example/springboot/SpringbootApplicationTests.class deleted file mode 100644 index 030c4683..00000000 Binary files a/library-management/springboot/target/test-classes/com/example/springboot/SpringbootApplicationTests.class and /dev/null differ diff --git a/library-management/sql/library-management.sql b/library-management/sql/library-management.sql deleted file mode 100644 index 04b5ffd7..00000000 --- a/library-management/sql/library-management.sql +++ /dev/null @@ -1,216 +0,0 @@ -/* - Navicat Premium Data Transfer - - Source Server : localhost_3306 - Source Server Type : MySQL - Source Server Version : 50737 - Source Host : localhost:3306 - Source Schema : library-management - - Target Server Type : MySQL - Target Server Version : 50737 - File Encoding : 65001 - - Date: 05/11/2022 13:25:48 -*/ - -SET NAMES utf8mb4; -SET FOREIGN_KEY_CHECKS = 0; - --- ---------------------------- --- Table structure for admin --- ---------------------------- -DROP TABLE IF EXISTS `admin`; -CREATE TABLE `admin` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '用户名', - `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '联系方式', - `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '邮箱', - `createtime` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0), - `updatetime` datetime(0) NULL DEFAULT NULL, - `password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '密码', - `status` tinyint(1) NULL DEFAULT 1 COMMENT '状态', - PRIMARY KEY (`id`) USING BTREE, - UNIQUE INDEX `username_key`(`username`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of admin --- ---------------------------- -INSERT INTO `admin` VALUES (1, 'admin', '13988997788', NULL, '2022-10-08 22:21:26', '2022-10-11 20:37:20', 'ead08e95e9c867a2ee833c232bf55dbc', 1); -INSERT INTO `admin` VALUES (2, 'admin1', '13877889900', 'admin1@qq.com', '2022-10-10 21:28:42', '2022-10-11 20:39:41', 'a7dbef0f88b54fad3f91d010a30eff55', 1); - --- ---------------------------- --- Table structure for book --- ---------------------------- -DROP TABLE IF EXISTS `book`; -CREATE TABLE `book` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '名称', - `description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '描述', - `publish_date` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '出版日期', - `author` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '作者', - `publisher` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '出版社', - `category` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '分类', - `book_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '标准码', - `cover` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '封面', - `createtime` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间', - `updatetime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', - `score` int(10) NULL DEFAULT NULL COMMENT '积分', - `nums` int(10) NULL DEFAULT 0 COMMENT '数量', - PRIMARY KEY (`id`) USING BTREE, - UNIQUE INDEX `book_no_index`(`book_no`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of book --- ---------------------------- -INSERT INTO `book` VALUES (1, '西游记幼儿美绘本(全10册)', '中国四大名著之一,西游记3-8岁版,彩绘注音,有声伴读。49款夸张角色,610张精美插图, 29个西游问答,10大智力挑战,以一种超有趣的方式亲近名著经典。', '2022-10-17', '吕进1', '少年儿童出版社', '历史文化 > 唐朝文化', 'ISBN:9787558911156', 'http://img3m7.ddimg.cn/10/30/25276987-1_w_44.jpg', '2022-10-17 21:35:14', '2022-10-19 00:00:00', 10, 1); -INSERT INTO `book` VALUES (6, 'Java学习指南', '2222', '2022-10-06', '222', '2', '历史文化 > 唐朝文化', 'JAVA_212113123', 'http://img3m7.ddimg.cn/10/30/25276987-1_w_44.jpg', '2022-10-17 22:30:01', '2022-10-25 00:00:00', 20, 99); -INSERT INTO `book` VALUES (7, '百科全书', '3333', '2022-10-12', '33', '333', '科技 > 高新科技 > 微分子科技', 'BKQS-233131', 'http://img3m7.ddimg.cn/10/30/25276987-1_w_44.jpg', '2022-10-17 22:30:59', '2022-10-25 00:00:00', 10, 97); -INSERT INTO `book` VALUES (8, '童话故事大全', '345', '2022-10-05', '55', '5', '科技 > 生物科技', 'THGS-10011122', 'http://localhost:9090/api/book/file/download/1666707290390?&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIxIiwiZXhwIjoxNjY4MDAzMjkwfQ.FtPUrLjNRTbfzauHObyGwy0LWyrqD4VSLylW9Ef7FW8&play=1', '2022-10-17 22:32:16', '2022-10-25 00:00:00', 30, 92); -INSERT INTO `book` VALUES (10, '钢铁是怎样炼成的', NULL, NULL, NULL, NULL, '历史文化 > 现代文化', 'GT-121313213', 'http://localhost:9090/api/book/file/download/1666706911257?&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIxIiwiZXhwIjoxNjY4MDAyOTExfQ.DLB80S9v-eWBECESJiigVZooV7ks58D43KUQ2ByJQrI&play=1', '2022-10-25 22:09:08', NULL, 20, 100); - --- ---------------------------- --- Table structure for borrow --- ---------------------------- -DROP TABLE IF EXISTS `borrow`; -CREATE TABLE `borrow` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `book_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '图书名称', - `book_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '图书标准码', - `user_no` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '用户会员码', - `user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '用户名称', - `user_phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '用户联系方式', - `createtime` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间', - `updatetime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', - `score` int(10) NULL DEFAULT NULL COMMENT '借书积分', - `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '已借出' COMMENT '借书状态', - `days` int(11) NULL DEFAULT 1 COMMENT '借书天数', - `return_date` datetime(0) NULL DEFAULT NULL COMMENT '归还日期', - PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 26 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of borrow --- ---------------------------- -INSERT INTO `borrow` VALUES (2, '222', '333', '20220927-2094581083', '李芸', '138999009988', '2022-10-19 22:06:32', NULL, 10, '已借出', 2, '2022-10-21 00:00:00'); -INSERT INTO `borrow` VALUES (3, '222', '22222', '20220927-2094581083', '李芸', '138999009988', '2022-10-19 22:15:28', NULL, 25, '已借出', 3, '2022-10-22 00:00:00'); -INSERT INTO `borrow` VALUES (4, '222', '22222', '20220927-2094581083', '李芸', '138999009988', '2022-10-19 22:16:00', NULL, 25, '已借出', 4, '2022-10-23 00:00:00'); -INSERT INTO `borrow` VALUES (5, '222', '22222', '20220927-2094581083', '李芸', '138999009988', '2022-10-19 22:16:26', NULL, 30, '已借出', 5, '2022-10-24 00:00:00'); -INSERT INTO `borrow` VALUES (6, '222', '22222', '202209271239528742', '王二文案', '13988990099', '2022-10-19 22:19:18', NULL, 30, '已借出', 6, '2022-10-25 00:00:00'); -INSERT INTO `borrow` VALUES (7, '222', '22222', '202209271239528742', '王二文案', '13988990099', '2022-10-19 22:19:40', NULL, 30, '已借出', 7, '2022-10-26 00:00:00'); -INSERT INTO `borrow` VALUES (8, '222', '22222', '202209271239528742', '王二文案', '13988990099', '2022-10-19 22:19:47', NULL, 30, '已归还', 8, '2022-10-27 00:00:00'); -INSERT INTO `borrow` VALUES (9, '222', '22222', '202209271018800687', '测试', NULL, '2022-10-19 22:30:22', NULL, 30, '已归还', 9, '2022-10-28 00:00:00'); -INSERT INTO `borrow` VALUES (10, '222', '22222', '202209271018800687', '测试', NULL, '2022-10-19 22:30:47', NULL, 30, '已归还', 10, '2022-10-29 00:00:00'); -INSERT INTO `borrow` VALUES (12, 'Java学习指南', 'JAVA_212113123', '202209271239528742', '苗洋洋', '13988990099', '2022-10-25 19:34:03', NULL, 20, '已归还', 3, '2022-10-28 00:00:00'); -INSERT INTO `borrow` VALUES (13, 'Java学习指南', 'JAVA_212113123', '20220927688792394', '杰克', '13977889988', '2022-10-25 21:18:25', NULL, 20, '已归还', 3, '2022-10-28 00:00:00'); -INSERT INTO `borrow` VALUES (14, 'Java学习指南', 'JAVA_212113123', '20220927688792394', '杰克', '13977889988', '2022-10-25 21:19:58', NULL, 20, '已归还', 3, '2022-10-28 00:00:00'); -INSERT INTO `borrow` VALUES (15, 'Java学习指南', 'JAVA_212113123', '20220927688792394', '杰克', '13977889988', '2022-10-25 21:23:02', NULL, 20, '已归还', 3, '2022-10-28 00:00:00'); -INSERT INTO `borrow` VALUES (16, 'Java学习指南', 'JAVA_212113123', '20220927688792394', '杰克', '13977889988', '2022-10-25 21:24:37', NULL, 20, '已归还', 3, '2022-10-28 00:00:00'); -INSERT INTO `borrow` VALUES (17, 'Java学习指南', 'JAVA_212113123', '20220927688792394', '杰克', '13977889988', '2022-10-25 21:25:49', NULL, 20, '已归还', 4, '2022-10-29 00:00:00'); -INSERT INTO `borrow` VALUES (18, 'Java学习指南', 'JAVA_212113123', '20220927688792394', '杰克', '13977889988', '2022-10-25 21:27:37', NULL, 80, '已归还', 4, '2022-10-22 00:00:00'); -INSERT INTO `borrow` VALUES (19, 'Java学习指南', 'JAVA_212113123', '202209271018800687', '落布', NULL, '2022-11-01 10:34:59', NULL, 20, '已归还', 1, '2022-11-06 00:00:00'); -INSERT INTO `borrow` VALUES (20, '百科全书', 'BKQS-233131', '202209271213716465', '卡森', '13988990066', '2022-11-01 10:35:06', NULL, 10, '已归还', 1, '2022-11-06 00:00:00'); -INSERT INTO `borrow` VALUES (21, '钢铁是怎样炼成的', 'GT-121313213', '202209271018800687', '落布', NULL, '2022-11-02 10:35:17', NULL, 40, '已归还', 2, '2022-11-07 00:00:00'); -INSERT INTO `borrow` VALUES (22, 'Java学习指南', 'JAVA_212113123', '202209271239528742', '苗洋洋', '13988990099', '2022-11-04 10:36:05', NULL, 40, '已归还', 2, '2022-11-07 00:00:00'); -INSERT INTO `borrow` VALUES (23, '百科全书', 'BKQS-233131', '202209271239528742', '苗洋洋', '13988990099', '2022-11-05 10:36:15', NULL, 10, '已归还', 1, '2022-11-06 00:00:00'); -INSERT INTO `borrow` VALUES (24, 'Java学习指南', 'JAVA_212113123', '20220927-2094581083', '李芸', '138999009988', '2022-11-05 11:46:51', NULL, 20, '已借出', 1, '2022-11-06 00:00:00'); -INSERT INTO `borrow` VALUES (25, '百科全书', 'BKQS-233131', '202209271239528742', '苗洋洋', '13988990099', '2022-11-05 11:47:13', NULL, 10, '已借出', 1, '2022-11-06 00:00:00'); - --- ---------------------------- --- Table structure for category --- ---------------------------- -DROP TABLE IF EXISTS `category`; -CREATE TABLE `category` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '名称', - `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '备注', - `pid` int(11) NULL DEFAULT NULL COMMENT '父级id', - `createtime` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0), - `updatetime` timestamp(0) NULL DEFAULT NULL, - PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of category --- ---------------------------- -INSERT INTO `category` VALUES (3, '历史文化', '历史文化', NULL, '2022-10-12 20:42:53', NULL); -INSERT INTO `category` VALUES (4, '唐朝文化', '唐朝文化', 3, '2022-10-12 20:43:21', NULL); -INSERT INTO `category` VALUES (5, '宋朝文化', NULL, 3, '2022-10-12 20:46:29', NULL); -INSERT INTO `category` VALUES (9, '现代文化', '现代文化', 3, '2022-10-12 21:00:41', NULL); -INSERT INTO `category` VALUES (10, '科技', '科技', NULL, '2022-10-12 21:50:08', NULL); -INSERT INTO `category` VALUES (11, '高新科技', NULL, 10, '2022-10-12 21:50:16', NULL); -INSERT INTO `category` VALUES (12, '生物科技', '生物科技', 10, '2022-10-12 21:50:22', NULL); -INSERT INTO `category` VALUES (13, '微分子科技', NULL, 11, '2022-10-17 22:11:44', NULL); - --- ---------------------------- --- Table structure for retur --- ---------------------------- -DROP TABLE IF EXISTS `retur`; -CREATE TABLE `retur` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `book_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '图书名称', - `book_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '图书标准码', - `user_no` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '用户会员码', - `user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '用户名称', - `user_phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '用户联系方式', - `createtime` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间', - `updatetime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', - `score` int(10) NULL DEFAULT NULL COMMENT '借书积分', - `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '已借出' COMMENT '借书状态', - `days` int(11) NULL DEFAULT 1 COMMENT '借书天数', - `return_date` datetime(0) NULL DEFAULT NULL COMMENT '归还日期', - `real_date` datetime(0) NULL DEFAULT NULL COMMENT '实际归还日期', - PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of retur --- ---------------------------- -INSERT INTO `retur` VALUES (2, 'Java学习指南', 'JAVA_212113123', '202209271239528742', '苗洋洋', '13988990099', '2022-10-25 20:18:59', NULL, 20, '已借出', 3, '2022-10-28 00:00:00', NULL); -INSERT INTO `retur` VALUES (3, '222', '22222', '202209271018800687', '测试', NULL, '2022-10-25 20:21:41', NULL, 30, '已借出', 10, '2022-10-29 00:00:00', '2022-10-25 00:00:00'); -INSERT INTO `retur` VALUES (4, '222', '22222', '202209271018800687', '测试', NULL, '2022-10-25 20:21:53', NULL, 30, '已借出', 9, '2022-10-28 00:00:00', '2022-10-25 00:00:00'); -INSERT INTO `retur` VALUES (5, '222', '22222', '202209271239528742', '王二文案', '13988990099', '2022-10-25 20:21:55', NULL, 30, '已借出', 8, '2022-10-27 00:00:00', '2022-10-25 00:00:00'); -INSERT INTO `retur` VALUES (6, 'Java学习指南', 'JAVA_212113123', '20220927688792394', '杰克', '13977889988', '2022-10-25 21:19:01', NULL, 20, '已借出', 3, '2022-10-28 00:00:00', '2022-10-25 00:00:00'); -INSERT INTO `retur` VALUES (7, 'Java学习指南', 'JAVA_212113123', '20220927688792394', '杰克', '13977889988', '2022-10-25 21:20:04', NULL, 20, '已借出', 3, '2022-10-28 00:00:00', '2022-10-25 00:00:00'); -INSERT INTO `retur` VALUES (8, 'Java学习指南', 'JAVA_212113123', '20220927688792394', '杰克', '13977889988', '2022-10-25 21:23:08', NULL, 20, '已借出', 3, '2022-10-28 00:00:00', '2022-10-25 00:00:00'); -INSERT INTO `retur` VALUES (9, 'Java学习指南', 'JAVA_212113123', '20220927688792394', '杰克', '13977889988', '2022-10-25 21:24:47', NULL, 20, '已归还', 3, '2022-10-28 00:00:00', '2022-10-25 00:00:00'); -INSERT INTO `retur` VALUES (10, 'Java学习指南', 'JAVA_212113123', '20220927688792394', '杰克', '13977889988', '2022-10-30 21:27:19', NULL, 20, '已归还', 4, '2022-10-29 00:00:00', '2022-10-25 00:00:00'); -INSERT INTO `retur` VALUES (11, 'Java学习指南', 'JAVA_212113123', '20220927688792394', '杰克', '13977889988', '2022-10-31 21:28:35', NULL, 80, '已归还', 4, '2022-10-22 00:00:00', '2022-10-25 00:00:00'); -INSERT INTO `retur` VALUES (12, '百科全书', 'BKQS-233131', '202209271239528742', '苗洋洋', '13988990099', '2022-11-01 10:36:18', NULL, 10, '已归还', 1, '2022-11-06 00:00:00', '2022-11-01 00:00:00'); -INSERT INTO `retur` VALUES (13, 'Java学习指南', 'JAVA_212113123', '202209271239528742', '苗洋洋', '13988990099', '2022-11-02 10:36:18', NULL, 40, '已归还', 2, '2022-11-07 00:00:00', '2022-11-02 00:00:00'); -INSERT INTO `retur` VALUES (14, '钢铁是怎样炼成的', 'GT-121313213', '202209271018800687', '落布', NULL, '2022-11-03 10:36:19', NULL, 40, '已归还', 2, '2022-11-07 00:00:00', '2022-11-03 00:00:00'); -INSERT INTO `retur` VALUES (15, '百科全书', 'BKQS-233131', '202209271213716465', '卡森', '13988990066', '2022-11-05 10:36:19', NULL, 10, '已归还', 1, '2022-11-06 00:00:00', '2022-11-05 00:00:00'); -INSERT INTO `retur` VALUES (16, 'Java学习指南', 'JAVA_212113123', '202209271018800687', '落布', NULL, '2022-11-05 10:36:20', NULL, 20, '已归还', 1, '2022-11-06 00:00:00', '2022-11-05 00:00:00'); - --- ---------------------------- --- Table structure for user --- ---------------------------- -DROP TABLE IF EXISTS `user`; -CREATE TABLE `user` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '姓名', - `username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '会员码', - `age` int(11) NULL DEFAULT NULL COMMENT '年龄', - `sex` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '性别', - `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '联系方式', - `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '地址', - `createtime` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0), - `updatetime` datetime(0) NULL DEFAULT NULL, - `account` int(10) NULL DEFAULT 0 COMMENT '账户余额', - `status` tinyint(1) NULL DEFAULT 1 COMMENT '禁用状态 1不禁用', - PRIMARY KEY (`id`) USING BTREE, - UNIQUE INDEX `username_index`(`username`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of user --- ---------------------------- -INSERT INTO `user` VALUES (19, '苗洋洋', '202209271239528742', 18, '男', '13988990099', '合肥', '2022-09-27 22:10:36', '2022-10-25 19:32:13', 130, 1); -INSERT INTO `user` VALUES (20, '李芸', '20220927-2094581083', 24, '女', '138999009988', '合肥', '2022-09-27 22:16:03', NULL, 0, 1); -INSERT INTO `user` VALUES (21, '落布', '202209271018800687', 20, NULL, NULL, NULL, '2022-09-27 22:17:06', '2022-10-25 19:31:20', 140, 1); -INSERT INTO `user` VALUES (22, '卡森', '202209271213716465', 22, '男', '13988990066', NULL, '2022-09-27 22:34:48', '2022-10-25 19:31:12', 100, 1); -INSERT INTO `user` VALUES (23, '杰克', '20220927688792394', 33, '男', '13977889988', NULL, '2022-09-27 22:35:35', '2022-10-25 21:07:15', -40, 0); - -SET FOREIGN_KEY_CHECKS = 1; diff --git a/library-management/vue/README.md b/library-management/vue/README.md deleted file mode 100644 index d8d5221a..00000000 --- a/library-management/vue/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# vue - -## Project setup -``` -npm install -``` - -### Compiles and hot-reloads for development -``` -npm run serve -``` - -### Compiles and minifies for production -``` -npm run build -``` - -### Customize configuration -See [Configuration Reference](https://cli.vuejs.org/config/). diff --git a/library-management/vue/babel.config.js b/library-management/vue/babel.config.js index e9558405..a6ef69e0 100644 --- a/library-management/vue/babel.config.js +++ b/library-management/vue/babel.config.js @@ -2,4 +2,4 @@ module.exports = { presets: [ '@vue/cli-plugin-babel/preset' ] -} +} \ No newline at end of file diff --git a/library-management/vue/jsconfig.json b/library-management/vue/jsconfig.json index 4aafc5f6..587b2896 100644 --- a/library-management/vue/jsconfig.json +++ b/library-management/vue/jsconfig.json @@ -16,4 +16,4 @@ "scripthost" ] } -} +} \ No newline at end of file diff --git a/library-management/vue/package-lock.json b/library-management/vue/package-lock.json index 45c99bde..88f174c4 100644 --- a/library-management/vue/package-lock.json +++ b/library-management/vue/package-lock.json @@ -17348,4 +17348,4 @@ } } } -} +} \ No newline at end of file diff --git a/library-management/vue/package.json b/library-management/vue/package.json index 99af51a8..b56ff3e0 100644 --- a/library-management/vue/package.json +++ b/library-management/vue/package.json @@ -27,4 +27,4 @@ "last 2 versions", "not dead" ] -} +} \ No newline at end of file diff --git a/library-management/vue/public/favicon.ico b/library-management/vue/public/favicon.ico deleted file mode 100644 index df36fcfb..00000000 Binary files a/library-management/vue/public/favicon.ico and /dev/null differ diff --git a/library-management/vue/public/index.html b/library-management/vue/public/index.html deleted file mode 100644 index 3e5a1396..00000000 --- a/library-management/vue/public/index.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - <%= htmlWebpackPlugin.options.title %> - - - -
- - - diff --git a/library-management/vue/src/App.vue b/library-management/vue/src/App.vue index ae80c740..2631a6c3 100644 --- a/library-management/vue/src/App.vue +++ b/library-management/vue/src/App.vue @@ -2,5 +2,4 @@
- - + \ No newline at end of file diff --git a/library-management/vue/src/assets/girl.png b/library-management/vue/src/assets/girl.png new file mode 100644 index 00000000..5b79ceb0 Binary files /dev/null and b/library-management/vue/src/assets/girl.png differ diff --git a/library-management/vue/src/assets/global.css b/library-management/vue/src/assets/global.css index 11edf5e4..22260e7c 100644 --- a/library-management/vue/src/assets/global.css +++ b/library-management/vue/src/assets/global.css @@ -1,7 +1,8 @@ body { margin: 0; padding: 0; - background-color: #eee; + background-image: url("shouye1.png"); + background-size: cover; } * { box-sizing: border-box; diff --git a/library-management/vue/src/assets/logo.png b/library-management/vue/src/assets/logo.png index 722919a5..a7329ff5 100644 Binary files a/library-management/vue/src/assets/logo.png and b/library-management/vue/src/assets/logo.png differ diff --git a/library-management/vue/src/assets/shouye1.png b/library-management/vue/src/assets/shouye1.png new file mode 100644 index 00000000..015b333e Binary files /dev/null and b/library-management/vue/src/assets/shouye1.png differ diff --git a/library-management/vue/src/main.js b/library-management/vue/src/main.js index 14c43ed3..e6b55729 100644 --- a/library-management/vue/src/main.js +++ b/library-management/vue/src/main.js @@ -13,4 +13,4 @@ Vue.use(ElementUI, { size: 'small' }); // medium small mini new Vue({ router, render: h => h(App) -}).$mount('#app') +}).$mount('#app') \ No newline at end of file diff --git a/library-management/vue/src/views/Layout.vue b/library-management/vue/src/views/Layout.vue index 679d86c1..38df2cf5 100644 --- a/library-management/vue/src/views/Layout.vue +++ b/library-management/vue/src/views/Layout.vue @@ -8,6 +8,7 @@
+ {{ admin.username }} diff --git a/library-management/vue/src/views/admin/Add.vue b/library-management/vue/src/views/admin/Add.vue index f070321a..0164c9ca 100644 --- a/library-management/vue/src/views/admin/Add.vue +++ b/library-management/vue/src/views/admin/Add.vue @@ -14,7 +14,7 @@
- 提交 + 提交
@@ -64,3 +64,19 @@ export default { + + diff --git a/library-management/vue/src/views/admin/Edit.vue b/library-management/vue/src/views/admin/Edit.vue index d162701b..d34276d3 100644 --- a/library-management/vue/src/views/admin/Edit.vue +++ b/library-management/vue/src/views/admin/Edit.vue @@ -14,7 +14,7 @@
- 提交 + 提交
@@ -51,3 +51,18 @@ export default { + \ No newline at end of file diff --git a/library-management/vue/src/views/book/Add.vue b/library-management/vue/src/views/book/Add.vue index 58a3d672..af50ee90 100644 --- a/library-management/vue/src/views/book/Add.vue +++ b/library-management/vue/src/views/book/Add.vue @@ -53,7 +53,7 @@
- 提交 + 提交
@@ -149,4 +149,17 @@ export default { height: 178px; display: block; } +.botton1{ + color: white; + margin-left: 5px; + border-radius: 10px; + background-color: #4169E1; + box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); + +} +.botton1:hover{ + background-color: lightblue; + box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); +} + diff --git a/library-management/vue/src/views/book/Edit.vue b/library-management/vue/src/views/book/Edit.vue index fdb7751b..1e293fb5 100644 --- a/library-management/vue/src/views/book/Edit.vue +++ b/library-management/vue/src/views/book/Edit.vue @@ -50,7 +50,7 @@
- 提交 + 提交
@@ -138,5 +138,16 @@ export default { height: 178px; display: block; } +.botton1{ + margin-left: 5px; + border-radius: 10px; + background-color: #4169E1; + box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); + +} +.botton1:hover{ + background-color: lightblue; + box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); +} diff --git a/library-management/vue/src/views/borrow/Add.vue b/library-management/vue/src/views/borrow/Add.vue index 05ac4feb..d8ea652e 100644 --- a/library-management/vue/src/views/borrow/Add.vue +++ b/library-management/vue/src/views/borrow/Add.vue @@ -47,7 +47,7 @@
- 提交 + 提交
@@ -117,3 +117,18 @@ export default { + \ No newline at end of file diff --git a/library-management/vue/src/views/borrow/Edit.vue b/library-management/vue/src/views/borrow/Edit.vue index 2308905d..c16c3991 100644 --- a/library-management/vue/src/views/borrow/Edit.vue +++ b/library-management/vue/src/views/borrow/Edit.vue @@ -48,7 +48,7 @@
- 提交 + 提交
@@ -119,3 +119,18 @@ export default { + \ No newline at end of file diff --git a/library-management/vue/src/views/category/Add.vue b/library-management/vue/src/views/category/Add.vue index 7fe4fd87..2049933c 100644 --- a/library-management/vue/src/views/category/Add.vue +++ b/library-management/vue/src/views/category/Add.vue @@ -11,7 +11,7 @@
- 提交 + 提交
@@ -51,3 +51,18 @@ export default { + \ No newline at end of file diff --git a/library-management/vue/src/views/category/Edit.vue b/library-management/vue/src/views/category/Edit.vue index cae66781..52b5e862 100644 --- a/library-management/vue/src/views/category/Edit.vue +++ b/library-management/vue/src/views/category/Edit.vue @@ -11,7 +11,7 @@
- 提交 + 提交
@@ -53,3 +53,18 @@ export default { + \ No newline at end of file diff --git a/library-management/vue/src/views/home/HomeView.vue b/library-management/vue/src/views/home/HomeView.vue index 06da8898..572f5380 100644 --- a/library-management/vue/src/views/home/HomeView.vue +++ b/library-management/vue/src/views/home/HomeView.vue @@ -1,19 +1,12 @@ \ No newline at end of file diff --git a/library-management/vue/src/views/login/background.png b/library-management/vue/src/views/login/background.png new file mode 100644 index 00000000..ccb51c76 Binary files /dev/null and b/library-management/vue/src/views/login/background.png differ diff --git a/library-management/vue/src/views/user/AddUser.vue b/library-management/vue/src/views/user/AddUser.vue index 45ecd1bc..0163caec 100644 --- a/library-management/vue/src/views/user/AddUser.vue +++ b/library-management/vue/src/views/user/AddUser.vue @@ -21,7 +21,7 @@
- 提交 + 提交
@@ -85,3 +85,18 @@ export default { + \ No newline at end of file diff --git a/library-management/vue/src/views/user/EditUser.vue b/library-management/vue/src/views/user/EditUser.vue index 8dc8034d..2ebc2615 100644 --- a/library-management/vue/src/views/user/EditUser.vue +++ b/library-management/vue/src/views/user/EditUser.vue @@ -23,7 +23,7 @@
- 提交 + 提交
@@ -60,3 +60,18 @@ export default { + \ No newline at end of file diff --git a/library-management/vue/src/views/user/User.vue b/library-management/vue/src/views/user/User.vue index 30673533..7fcc28b9 100644 --- a/library-management/vue/src/views/user/User.vue +++ b/library-management/vue/src/views/user/User.vue @@ -123,11 +123,6 @@ export default { }) }, load() { - // fetch('http://localhost:9090/user/list').then(res => res.json()).then(res => { - // console.log(res) - // this.tableData = res - // }) - request.get('/user/page', { params: this.params }).then(res => { diff --git a/library-management/vue/vue.config.js b/library-management/vue/vue.config.js index 910e297e..e3f76d54 100644 --- a/library-management/vue/vue.config.js +++ b/library-management/vue/vue.config.js @@ -1,4 +1,4 @@ const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true -}) +}) \ No newline at end of file