refactor(all): change sql to postgresql

This commit is contained in:
merlin
2025-10-31 10:21:36 +08:00
parent 4f84603d82
commit e4f032a7f0
35 changed files with 154 additions and 587 deletions

View File

@@ -7,7 +7,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import xin.merlin.myblog_server.entity.Comment;
import xin.merlin.myblog_server.entity.News;
import xin.merlin.myblog_server.entity.Project;
import xin.merlin.myblog_server.service.impl.*;
import xin.merlin.myblog_server.utils.JwtUtil;
import xin.merlin.myblog_server.utils.RequestBack;
@@ -26,9 +25,6 @@ public class BasicController {
@Autowired
private UserServiceImpl userService;
@Autowired
private ProjectServiceImpl projectService;
@Autowired
private CommentServiceImpl commentService;
@@ -53,12 +49,6 @@ public class BasicController {
public RequestBack getArticle(@PathVariable Integer a_id) {
return RequestBack.success(ResultCode.SUCCESS,articleService.getById(a_id));
}
// 获取项目
@GetMapping("/get/projects")
public RequestBack getProjects(@RequestParam Integer current,@RequestParam Integer size) {
Page<Project> page = new Page<>(current,size);
return RequestBack.success(ResultCode.SUCCESS,projectService.page(page));
}
// 参与项目
// 发表评论
@PostMapping("/publish/comment")