From 049f9d85d56c90eafc968da930807ad333367c53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?= <2291200076@qq.com> Date: Thu, 7 Apr 2022 11:32:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=90=8E=E5=8F=B0=20?= =?UTF-8?q?=E6=88=91=E7=9A=84=E6=94=B6=E8=97=8F=E5=8A=9F=E8=83=BD=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bookshelfplus-frontend/routes/index.js | 2 +- .../views/dashboard/admin/BookManage.html | 10 ++ .../views/dashboard/component/header.html | 2 +- .../views/dashboard/table.html | 13 +-- .../views/dashboard/user/myCollection.html | 99 +++++++++++++++++++ bookshelfplus.sql | 3 +- .../main/resources/mapping/BookDOMapper.xml | 4 +- 7 files changed, 115 insertions(+), 18 deletions(-) diff --git a/bookshelfplus-frontend/routes/index.js b/bookshelfplus-frontend/routes/index.js index 9c9676f..c800694 100644 --- a/bookshelfplus-frontend/routes/index.js +++ b/bookshelfplus-frontend/routes/index.js @@ -127,7 +127,7 @@ router.get('/dashboard/:group/:page/:subpage?', function (req, res) { // }, "my-collection": { title: "我的收藏", - baseTemplate: "blank", + baseTemplate: "table", pageTemplate: "myCollection", }, "my-account": { diff --git a/bookshelfplus-frontend/views/dashboard/admin/BookManage.html b/bookshelfplus-frontend/views/dashboard/admin/BookManage.html index aea1965..5bc8014 100644 --- a/bookshelfplus-frontend/views/dashboard/admin/BookManage.html +++ b/bookshelfplus-frontend/views/dashboard/admin/BookManage.html @@ -1,8 +1,18 @@

添加书籍

+ + <%} else {%> \ No newline at end of file diff --git a/bookshelfplus-frontend/views/dashboard/user/myCollection.html b/bookshelfplus-frontend/views/dashboard/user/myCollection.html index e69de29..68c0c63 100644 --- a/bookshelfplus-frontend/views/dashboard/user/myCollection.html +++ b/bookshelfplus-frontend/views/dashboard/user/myCollection.html @@ -0,0 +1,99 @@ + + \ No newline at end of file diff --git a/bookshelfplus.sql b/bookshelfplus.sql index bd7df22..f7885c5 100644 --- a/bookshelfplus.sql +++ b/bookshelfplus.sql @@ -11,7 +11,7 @@ Target Server Version : 50726 File Encoding : 65001 - Date: 05/04/2022 17:54:17 + Date: 07/04/2022 11:32:50 */ SET NAMES utf8mb4; @@ -172,6 +172,7 @@ CREATE TABLE `third_party_user_auth_relation` ( INDEX `third_party_user_id`(`third_party_user_id`) USING BTREE, CONSTRAINT `third_party_user_auth_relation_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user_info` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `third_party_user_auth_relation_ibfk_2` FOREIGN KEY (`third_party_user_id`) REFERENCES `third_party_user_info` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of third_party_user_auth_relation diff --git a/bookshelfplus/src/main/resources/mapping/BookDOMapper.xml b/bookshelfplus/src/main/resources/mapping/BookDOMapper.xml index 585b658..349e264 100644 --- a/bookshelfplus/src/main/resources/mapping/BookDOMapper.xml +++ b/bookshelfplus/src/main/resources/mapping/BookDOMapper.xml @@ -288,10 +288,8 @@