refactor(all): change sql to postgresql
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user