From 467efa0bc09d509bd2264f32177651bd7a3aba71 Mon Sep 17 00:00:00 2001 From: bruce Date: Wed, 19 Feb 2025 12:07:30 +0800 Subject: [PATCH] =?UTF-8?q?v0.1.10=20=E8=AD=A6=E5=91=8A=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 12 +++++++----- .../com/bruce/sams/service/ClubService.java | 17 ++++++++--------- .../sams/service/CollegeLeaderService.java | 4 ++-- .../com/bruce/sams/service/CollegeService.java | 12 ++++++------ .../sams/service/impl/CollegeServiceImpl.java | 1 - 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/readme.md b/readme.md index a13088e7..83583548 100644 --- a/readme.md +++ b/readme.md @@ -16,7 +16,7 @@ - **数据可视化**:实时统计活动参与度与社团活跃度 - **安全可靠**:采用JWT鉴权+BCrypt加密+操作日志审计 -[👉 **在线演示**](https://demo.club-manager.com) | [📚 需求文档](/docs/需求分析说明书1.4.docx) +[//]: # ([👉 **在线演示**](https://demo.club-manager.com) | [📚 需求文档](/docs/需求分析说明书1.4.docx)) --- @@ -73,9 +73,10 @@ - Redis 6.x ### 本地部署 - todo -4. **初始化数据库** +[//]: # ( todo 完善本地部署方法) + +**初始化数据库** 执行 [/sql/init.sql](/sql/init.sql) 脚本 --- @@ -114,7 +115,8 @@ campus-club-system/ --- ## 数据库设计 -![ER Diagram](/docs/er-diagram.png) + +[//]: # (![ER Diagram](/docs/er-diagram.png)) 关键数据表说明: - **用户表(user)**:存储用户基础信息与角色权限 @@ -122,7 +124,7 @@ campus-club-system/ - **报名表(signup_record)**:管理用户报名与签到信息 - **操作日志(admin_log)**:审计所有管理操作 -[🔍 查看完整数据库设计](/docs/数据库设计.md) +[//]: # ([🔍 查看完整数据库设计](/docs/数据库设计.md)) --- diff --git a/src/main/java/com/bruce/sams/service/ClubService.java b/src/main/java/com/bruce/sams/service/ClubService.java index 87898fdb..ac9b4666 100644 --- a/src/main/java/com/bruce/sams/service/ClubService.java +++ b/src/main/java/com/bruce/sams/service/ClubService.java @@ -1,6 +1,5 @@ package com.bruce.sams.service; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.bruce.sams.domain.sms.Club; import com.baomidou.mybatisplus.extension.service.IService; import com.bruce.sams.domain.sms.UserClub; @@ -17,40 +16,40 @@ public interface ClubService extends IService { /** * 获取所有社团 */ - public List getAllClubs(); + List getAllClubs(); /** * 获取社团详情 */ - public Club getClubById(Long clubId); + Club getClubById(Long clubId); /** * 添加社团 */ - public void addClub(Club club); + void addClub(Club club); /** * 更新社团信息 */ - public void updateClub(Club club); + void updateClub(Club club); /** * 删除社团 */ - public void deleteClub(Long clubId); + void deleteClub(Long clubId); /** * 加入社团 */ - public void joinClub(Long userId, Long clubId); + void joinClub(Long userId, Long clubId); /** * 退出社团 */ - public void leaveClub(Long userId, Long clubId); + void leaveClub(Long userId, Long clubId); /** * 获取社团成员 */ - public List getClubMembers(Long clubId); + List getClubMembers(Long clubId); } diff --git a/src/main/java/com/bruce/sams/service/CollegeLeaderService.java b/src/main/java/com/bruce/sams/service/CollegeLeaderService.java index 6e81decc..dbb2f6b4 100644 --- a/src/main/java/com/bruce/sams/service/CollegeLeaderService.java +++ b/src/main/java/com/bruce/sams/service/CollegeLeaderService.java @@ -17,11 +17,11 @@ public interface CollegeLeaderService extends IService { /** * 指派高校/院系负责人(系统管理员 或 学校管理员) */ - public void assignLeader(Long collegeId, Long userId, Long adminUserId); + void assignLeader(Long collegeId, Long userId, Long adminUserId); /** * 移除负责人 */ - public void removeLeader(Long collegeId, Long adminUserId); + void removeLeader(Long collegeId, Long adminUserId); } diff --git a/src/main/java/com/bruce/sams/service/CollegeService.java b/src/main/java/com/bruce/sams/service/CollegeService.java index 44561bfb..ad00de83 100644 --- a/src/main/java/com/bruce/sams/service/CollegeService.java +++ b/src/main/java/com/bruce/sams/service/CollegeService.java @@ -14,31 +14,31 @@ public interface CollegeService extends IService { /** * 查询所有高校 */ - public List getAllUniversities(); + List getAllUniversities(); /** * 查询某高校的所有院系 */ - public List getDepartmentsByUniversity(Long universityId); + List getDepartmentsByUniversity(Long universityId); /** * 查询院系详情 */ - public College getCollegeById(Long collegeId); + College getCollegeById(Long collegeId); /** * 添加高校或院系 */ - public void addCollege(College college); + void addCollege(College college); /** * 更新高校/院系信息 */ - public void updateCollege(College college); + void updateCollege(College college); /** * 删除高校/院系 */ - public void deleteCollege(Long collegeId); + void deleteCollege(Long collegeId); } diff --git a/src/main/java/com/bruce/sams/service/impl/CollegeServiceImpl.java b/src/main/java/com/bruce/sams/service/impl/CollegeServiceImpl.java index fd4d6dcf..6ae5bc54 100644 --- a/src/main/java/com/bruce/sams/service/impl/CollegeServiceImpl.java +++ b/src/main/java/com/bruce/sams/service/impl/CollegeServiceImpl.java @@ -5,7 +5,6 @@ import com.bruce.sams.domain.sms.College; import com.bruce.sams.service.CollegeService; import com.bruce.sams.mapper.CollegeMapper; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpStatus; import org.springframework.stereotype.Service; import java.util.List;