소스 검색

优化test,增加泛型支持

zhouhao 7 년 전
부모
커밋
850e32b4e1
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      hsweb-examples/hsweb-examples-simple/src/main/java/org/hswebframework/web/example/simple/TestController.java

+ 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());