|
|
@@ -25,11 +25,13 @@ public class SubscribeController {
|
|
|
subscribeService.create(record);
|
|
|
}
|
|
|
|
|
|
- @PostMapping("/makeAnAppointment")
|
|
|
- public void makeAnAppointment(@RequestParam Long collectionId, @RequestParam Long userId) {
|
|
|
+ @GetMapping("/makeAnAppointment")
|
|
|
+ public void makeAnAppointment(Long collectionId,Long userId) {
|
|
|
Subscribe subscribe = new Subscribe();
|
|
|
subscribe.setCollectionId(collectionId);
|
|
|
subscribe.setUserId(userId);
|
|
|
subscribeService.create(subscribe);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|