Exemple #1
0
 public static <T> ResponseData<T> createSuccessResult(Number number) {
   return new ResponseData<>(SUCCESS.getCode(), SUCCESS.getComment(), number);
 }
Exemple #2
0
 public static <T> ResponseData<T> createSuccessResult(Iterable<T> data) {
   return new ResponseData<>(SUCCESS.getCode(), SUCCESS.getComment(), data);
 }