Browse Source

优化test,增加泛型支持

zhouhao 7 years ago
parent
commit
850e32b4e1

+ 7 - 0
hsweb-examples/hsweb-examples-simple/src/main/java/org/hswebframework/web/example/simple/TestController.java

@@ -65,6 +65,13 @@ public class TestController implements QueryController<UserEntity, String, Query
         return ResponseMessage.ok(model);
     }
 
+
+    @PutMapping("/testUpdateBatch")
+    public ResponseMessage<List<UserModel>> testUpdate(@RequestBody List<UserModel> model) {
+        return ResponseMessage.ok(model);
+    }
+
+
     @PutMapping("/test/testPersonnel")
     public ResponseMessage<PersonnelAuthorization> testPersonnel() {
         return ResponseMessage.ok(PersonnelAuthorization.current().get());