@ContainerMethod 支持像 @AutoOperate 那样提取包装对象中的实际数据
Closed this issue · 0 comments
Createsequence commented
@ContainerMethod
支持像 @AutoOperate
那样提取包装对象中的实际数据,比如:
@ContainerMethod(resultType = Foo.class, resultKey = "id", on = "data")
public Result<List<Foo>> listFoos(Set<Integer> ids);
在上述示例中,要作为数据源的方法的实际返回值被 Result<T>
包装,因此在实际使用时,需要将数据从 Result
包装对象的 data
属性中提取出来。