wangwei 6 jaren geleden
bovenliggende
commit
51f8deda5e

+ 2 - 1
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/controller/CourseSpeciatlyRelationController.java

@@ -2,6 +2,7 @@ package cn.com.qmth.examcloud.core.basic.api.controller;
 
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.transaction.annotation.Transactional;
+import org.springframework.web.bind.annotation.DeleteMapping;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestParam;
@@ -86,7 +87,7 @@ public class CourseSpeciatlyRelationController extends ControllerSupport {
 	}
 
 	@ApiOperation(value = "删除关联课程专业")
-	@PostMapping("delete")
+	@DeleteMapping("delete")
 	public CourseSpeciatlyRelationEntity delete(@RequestParam(required = true) Long courseId,
 			@RequestParam(required = true) Long specialtyId) {