v0.1.10 警告修正
parent
1c80769ad6
commit
467efa0bc0
12
readme.md
12
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/
|
|||
---
|
||||
|
||||
## 数据库设计
|
||||

|
||||
|
||||
[//]: # ()
|
||||
|
||||
关键数据表说明:
|
||||
- **用户表(user)**:存储用户基础信息与角色权限
|
||||
|
|
@ -122,7 +124,7 @@ campus-club-system/
|
|||
- **报名表(signup_record)**:管理用户报名与签到信息
|
||||
- **操作日志(admin_log)**:审计所有管理操作
|
||||
|
||||
[🔍 查看完整数据库设计](/docs/数据库设计.md)
|
||||
[//]: # ([🔍 查看完整数据库设计](/docs/数据库设计.md))
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -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<Club> {
|
|||
/**
|
||||
* 获取所有社团
|
||||
*/
|
||||
public List<Club> getAllClubs();
|
||||
List<Club> 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<UserClub> getClubMembers(Long clubId);
|
||||
List<UserClub> getClubMembers(Long clubId);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,11 +17,11 @@ public interface CollegeLeaderService extends IService<CollegeLeader> {
|
|||
/**
|
||||
* 指派高校/院系负责人(系统管理员 或 学校管理员)
|
||||
*/
|
||||
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);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,31 +14,31 @@ public interface CollegeService extends IService<College> {
|
|||
/**
|
||||
* 查询所有高校
|
||||
*/
|
||||
public List<College> getAllUniversities();
|
||||
List<College> getAllUniversities();
|
||||
|
||||
/**
|
||||
* 查询某高校的所有院系
|
||||
*/
|
||||
public List<College> getDepartmentsByUniversity(Long universityId);
|
||||
List<College> 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);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue