基于SpringBoot的CSGO游戲比賽賽事管理系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)-計(jì)算機(jī)畢業(yè)設(shè)計(jì)源碼和LW文檔
摘要
CSGO賽事管理系統(tǒng)是針對(duì)CSGO賽事管理方面必不可少的一個(gè)部分。在CSGO賽事管理的整個(gè)過(guò)程中,CSGO賽事管理系統(tǒng)擔(dān)負(fù)著最重要的角色。為滿(mǎn)足如今日益復(fù)雜的管理需求,各類(lèi)的管理系統(tǒng)也在不斷改進(jìn)。本課題所設(shè)計(jì)的CSGO賽事管理系統(tǒng),使用java進(jìn)行開(kāi)發(fā),它的優(yōu)點(diǎn)代碼不能從瀏覽器查看,保密性非常好,比其他的系統(tǒng)更具安全性。java還容易修改和調(diào)試,畢竟社會(huì)是在不斷發(fā)展過(guò)程中難免有更多需求,這點(diǎn)很重要。而且,本系統(tǒng)除了有對(duì)CSGO賽事的管理,還添加了對(duì)用戶(hù)的資料管理,這也是為了滿(mǎn)足系統(tǒng)更深層次的需求。除了上述優(yōu)勢(shì)外,本系統(tǒng)還具有:查詢(xún)迅速,搜索資料方便,可靠性強(qiáng)等等。
關(guān)鍵詞:CSGO賽事管理;java;可靠性。
?
Absract
CSGO event management system is an essential part of CSGO event management. In the whole process of CSGO event management, CSGO event management system plays the most important role. In order to meet today's increasingly complex management needs, various management platforms are constantly improving. The CSGO event management system designed in this topic is developed using Java. Its advantages can not be viewed from the browser, and it has very good confidentiality and is more secure than other platforms. Java is also easy to modify and debug, which is important because society needs more and more as it evolves. In addition, the system not only manages CSGO events, but also adds user information management, which is also to meet the deeper needs of the system. In addition to the advantages mentioned above, the system also has: quick query, easy to search information, strong reliability and so on.
Key words: CSGO event management; Java; Reliability.
?
目錄
目錄 III
1.緒論 4
1.1開(kāi)發(fā)背景 4
1.2課題研究的目的和意義 4
1.3課題設(shè)計(jì)目標(biāo) 5
2.開(kāi)發(fā)技術(shù)介紹 6
2.1 Java語(yǔ)言簡(jiǎn)介 6
2.2 MySql數(shù)據(jù)庫(kù) 7
2.3 MySQL環(huán)境配置 7
2.4 B/S結(jié)構(gòu) 7
2.5SpringBoot框架 8
3.系統(tǒng)分析 9
3.1需求分析 9
3.2系統(tǒng)可行性分析 9
3.3 系統(tǒng)現(xiàn)狀分析 9
3.4 性能需求分析 10
3.5系統(tǒng)流程分析 11
3.5.1操作流程 11
3.5.2添加信息流程 11
3.5.3刪除信息流程 12
4系統(tǒng)總體設(shè)計(jì) 13
4.1系統(tǒng)結(jié)構(gòu) 13
4.2數(shù)據(jù)庫(kù)設(shè)計(jì) 14
4.2.1 數(shù)據(jù)庫(kù)概念結(jié)構(gòu)設(shè)計(jì) 14
4.2.2數(shù)據(jù)庫(kù)邏輯結(jié)構(gòu)設(shè)計(jì) 15
5 系統(tǒng)詳細(xì)設(shè)計(jì) 21
5.1系統(tǒng)功能模塊 21
5.2管理員功能模塊 22
5.3參賽戰(zhàn)隊(duì)功能模塊 26
5.4合作方功能模塊 27
6 系統(tǒng)測(cè)試 28
6.1 測(cè)試目的 28
6.2 測(cè)試的步驟 28
6.3測(cè)試結(jié)論 28
7 系統(tǒng)維護(hù) 29
8 結(jié)論 30
9 參考文獻(xiàn) 31
10 致謝 32
關(guān)鍵代碼:
/**
?* 登錄相關(guān)
?*/
@RequestMapping("users")
@RestController
public class UserController{
@Autowired
private UserService userService;
@Autowired
private TokenService tokenService;
/**
* 登錄
*/
@IgnoreAuth
@PostMapping(value = "/login")
public R login(String username, String password, String captcha, HttpServletRequest request) {
UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));
if(user==null || !user.getPassword().equals(password)) {
return R.error("賬號(hào)或密碼不正確");
}
String token = tokenService.generateToken(user.getId(),username, "users", user.getRole());
return R.ok().put("token", token);
}
/**
* 注冊(cè)
*/
@IgnoreAuth
@PostMapping(value = "/register")
public R register(@RequestBody UserEntity user){
//? ? ValidatorUtils.validateEntity(user);
? ? if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) {
? ? return R.error("用戶(hù)已存在");
? ? }
? ? ? ? userService.insert(user);
? ? ? ? return R.ok();
? ? }
/**
* 退出
*/
@GetMapping(value = "logout")
public R logout(HttpServletRequest request) {
request.getSession().invalidate();
return R.ok("退出成功");
}
/**
? ? ?* 密碼重置
? ? ?*/
? ? @IgnoreAuth
@RequestMapping(value = "/resetPass")
? ? public R resetPass(String username, HttpServletRequest request){
? ? UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username));
? ? if(user==null) {
? ? return R.error("賬號(hào)不存在");
? ? }
? ? user.setPassword("123456");
? ? ? ? userService.update(user,null);
? ? ? ? return R.ok("密碼已重置為:123456");
? ? }


