优化test,增加泛型支持

This commit is contained in:
zhouhao
2017-06-26 16:53:09 +08:00
parent e78197188d
commit 850e32b4e1

View File

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