瀏覽代碼

1.接口同步

yuanliang 1 年之前
父節點
當前提交
c13c6cf700
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      cooleshow-app/src/main/java/com/yonge/cooleshow/admin/controller/StudentController.java

+ 10 - 0
cooleshow-app/src/main/java/com/yonge/cooleshow/admin/controller/StudentController.java

@@ -232,4 +232,14 @@ public class StudentController extends BaseController {
         studentService.save(student);
         return succeed();
     }
+
+    @PostMapping("/update")
+    @ApiOperation(value = "修改", notes = "传入Student")
+    public HttpResponseResult<Boolean> update(@Validated @RequestBody StudentWrapper.Student student) {
+        if (student.getId() == null) {
+            throw new BizException("id 不能为空");
+        }
+        studentService.save(student);
+        return succeed();
+    }
 }