2 Commits

Author SHA1 Message Date
085cd485ad 新增后台管理
Some checks failed
CI Build and Test / build (push) Has been cancelled
Deploy to Server / build-and-deploy (push) Has been cancelled
2025-10-28 15:40:06 +08:00
9007c7de57 Merge pull request #1 from MakeSomeFakeNews/dev_20251028
Dev 20251028
2025-10-28 15:37:05 +08:00
6 changed files with 1 additions and 38 deletions

View File

@@ -32,7 +32,7 @@ public class SaTokenConfig implements WebMvcConfigurer {
// 排除固件查询接口(不需要登录)
.excludePathPatterns("/firmware/**")
// 排除静态资源
.excludePathPatterns("/", "/index.html", "/admin/login.html", "/*.css", "/*.js", "/*.ico", "/static/**")
.excludePathPatterns("/", "/index.html", "/*.html", "/*.css", "/*.js", "/*.ico", "/static/**")
// 排除后台管理静态资源
.excludePathPatterns("/admin/**")
// 排除 Druid 监控

View File

@@ -32,7 +32,6 @@ public class SysUserController {
@PostMapping("/login")
public Result<Map<String, Object>> login(@RequestBody SysLoginRequest request, HttpServletRequest httpRequest) {
try {
// 获取登录IP
String loginIp = IpUtil.getClientIp(httpRequest);
// 执行登录

View File

@@ -33,22 +33,6 @@ public class TutorialController {
this.tutorialCategoryService = tutorialCategoryService;
}
/**
* 添加查看次数
* @param tutorialId 教程id
* @return
*/
@GetMapping("/addViewCount")
public Result<String> addViewCount(@RequestParam Long tutorialId) {
Tutorial tutorial = tutorialService.getById(tutorialId);
if(tutorial == null) {
return Result.error();
}
tutorial.setViewCount(tutorial.getViewCount() + 1);
tutorialService.updateById(tutorial);
return Result.success();
}
/**
* 分类查询列表
*

View File

@@ -27,11 +27,6 @@ public class TutorialCategory implements Serializable {
*/
private String icon;
/**
* 颜色
*/
private String color;
/**
* 分类名称
*/

View File

@@ -1,7 +1,5 @@
package com.corewing.app.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@@ -19,7 +17,6 @@ public class TutorialCategoryRelation implements Serializable {
/**
* id
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**

View File

@@ -1,12 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>教程展示</title>
</head>
<body>
打包测试推送全部分支
</body>
</html>