List of commits:
Subject Hash Author Date (UTC)
AlbumController响应修改 bafe65946164d7c6a0e56266c11a2d61ad33150e Darren 2022-01-26 02:12:13
相册toString修改 62b90deefca426d5b2311ede0a22638b5e8476fd Darren 2022-01-26 02:11:32
请求图片 7927e446237438a87646b872fb33de2d5442ef37 Darren 2022-01-26 02:10:27
引入Apache Commons IO v2.11.0 765f9b317909154a332896f60b4d7a9397786d1a Darren 2022-01-25 07:46:51
spring devtools配置 57ea9da33488a86c5b45960fe0d2007445019fbf Darren 2022-01-25 07:03:00
相册 711f5793832b739df993e593852411342a448670 Darren 2022-01-20 14:54:03
配置数据库 cb660a7086abc552cf99603a66cd2b0cae821ec8 Darren 2022-01-20 14:52:46
引入mybatis-plus-boot-starter@3.5.0 5de6337c72596d94847273e1f5c1eac72f615a62 Darren 2022-01-20 14:52:28
init 987817948db6829151065d2f8a7873b5ddb25773 Darren 2022-01-17 09:15:49
Commit bafe65946164d7c6a0e56266c11a2d61ad33150e - AlbumController响应修改
Author: Darren
Author date (UTC): 2022-01-26 02:12
Committer name: Darren
Committer date (UTC): 2022-01-26 02:12
Parent(s): 62b90deefca426d5b2311ede0a22638b5e8476fd
Signing key:
Tree: 8abe6d9ea1691a2ef96dfd49269bbdd4ea3bab1d
File Lines added Lines deleted
src/main/java/com/darren/tommserver/controller/AlbumController.java 5 6
File src/main/java/com/darren/tommserver/controller/AlbumController.java changed (mode: 100644) (index f123b80..92f4c4c)
... ... package com.darren.tommserver.controller;
3 3 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4 4 import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
5 5 import com.darren.tommserver.core.response.ResponseData; import com.darren.tommserver.core.response.ResponseData;
6 import com.darren.tommserver.core.response.SuccessResponseData;
7 6 import com.darren.tommserver.entity.Album; import com.darren.tommserver.entity.Album;
8 7 import com.darren.tommserver.service.AlbumService; import com.darren.tommserver.service.AlbumService;
9 8 import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
 
... ... public class AlbumController {
35 34 */ */
36 35 @GetMapping @GetMapping
37 36 public ResponseData selectAll(Page<Album> page, Album album) { public ResponseData selectAll(Page<Album> page, Album album) {
38 return new SuccessResponseData(albumService.page(page, new QueryWrapper<>(album)));
37 return ResponseData.success(albumService.page(page, new QueryWrapper<>(album)));
39 38 } }
40 39
41 40 /** /**
 
... ... public class AlbumController {
46 45 */ */
47 46 @GetMapping("{id}") @GetMapping("{id}")
48 47 public ResponseData selectOne(@PathVariable Serializable id) { public ResponseData selectOne(@PathVariable Serializable id) {
49 return new SuccessResponseData(this.albumService.getById(id));
48 return ResponseData.success(albumService.getById(id));
50 49 } }
51 50
52 51 /** /**
 
... ... public class AlbumController {
57 56 */ */
58 57 @PostMapping @PostMapping
59 58 public ResponseData insert(@RequestBody Album album) { public ResponseData insert(@RequestBody Album album) {
60 return new SuccessResponseData(albumService.save(album));
59 return ResponseData.success(albumService.save(album));
61 60 } }
62 61
63 62 /** /**
 
... ... public class AlbumController {
68 67 */ */
69 68 @PutMapping @PutMapping
70 69 public ResponseData update(@RequestBody Album album) { public ResponseData update(@RequestBody Album album) {
71 return new SuccessResponseData(albumService.updateById(album));
70 return ResponseData.success(albumService.updateById(album));
72 71 } }
73 72
74 73 /** /**
 
... ... public class AlbumController {
79 78 */ */
80 79 @DeleteMapping @DeleteMapping
81 80 public ResponseData delete(@RequestParam("idList") List<Long> idList) { public ResponseData delete(@RequestParam("idList") List<Long> idList) {
82 return new SuccessResponseData(albumService.removeByIds(idList));
81 return ResponseData.success(albumService.removeByIds(idList));
83 82 } }
84 83 } }
85 84
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/darren/ToMmServer

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/darren/ToMmServer

Clone this repository using git:
git clone git://git.rocketgit.com/user/darren/ToMmServer

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main