重构版功能实现

This commit is contained in:
tiansh
2021-10-22 19:08:08 +08:00
parent 57a2c77bf1
commit 1941a3a7aa
87 changed files with 3644 additions and 2875 deletions
@@ -36,20 +36,8 @@ public class AlbumController {
@Autowired
private UploadConfigService uploadConfigService;
@RequestMapping("/addalbum")
public String addalbum(HttpSession session,Model model) {
UploadConfig updateConfig = uploadConfigService.getUpdateConfig();
User u = (User) session.getAttribute("user");
Integer sourcekey = 0;
if (u == null) {
sourcekey = GetCurrentSource.GetSource(null);
} else {
sourcekey = GetCurrentSource.GetSource(u.getId());
}
model.addAttribute("urltype",updateConfig.getUrltype());
model.addAttribute("sourcekey",sourcekey);
return "album/addalbum";
}
@PostMapping("/SaveForAlbum")
@ResponseBody