add: 周年纪念日
This commit is contained in:
@@ -14,6 +14,15 @@ public class AnniversaryController {
|
||||
this.anniversaryService = anniversaryService;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有周年日和纪念日
|
||||
* 周年日:还有几天
|
||||
*/
|
||||
@GetMapping
|
||||
public R get() {
|
||||
return R.ok(anniversaryService.getAll());
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
public R add(Anniversary anniversary) {
|
||||
anniversaryService.save(anniversary);
|
||||
|
Reference in New Issue
Block a user