去掉了verify

This commit is contained in:
Chester.X 2024-07-04 22:51:24 +08:00
parent f6d5112ad5
commit 780e4793de

View File

@ -20,7 +20,7 @@ public class CourseController {
private CourseService courseService;
@GetMapping
@JwtVerify
// @JwtVerify
public ResponseEntity<GetCourseListResponse> getCoursesByRange(@RequestParam Integer start, @RequestParam Integer end, @RequestParam String token) {
if (start >= end) {
return new ResponseEntity<>(HttpStatus.BAD_REQUEST);
@ -30,7 +30,7 @@ public class CourseController {
}
@GetMapping("/{id}")
@JwtVerify
// @JwtVerify
public ResponseEntity<Course> getCoursePage(@PathVariable Long id, @RequestParam String token) {
try {
return new ResponseEntity<>(courseService.getCourseById(id), HttpStatus.OK);
@ -40,7 +40,7 @@ public class CourseController {
}
@PostMapping
@JwtVerify
// @JwtVerify
public ResponseEntity<MessageResponse> createCourse(@RequestBody CourseRequest request) {
try {
courseService.createCourse(request);
@ -53,7 +53,7 @@ public class CourseController {
}
@PutMapping("/{id}")
@JwtVerify
// @JwtVerify
public ResponseEntity<MessageResponse> updateCourse(@PathVariable Long id, @RequestBody CourseRequest request) {
try {
courseService.updateCourse(id, request);
@ -66,7 +66,7 @@ public class CourseController {
}
@DeleteMapping("/{id}")
@JwtVerify
// @JwtVerify
public ResponseEntity<MessageResponse> deleteCourse(@PathVariable Long id, @RequestParam String token) {
try {
courseService.deleteCourse(id);