| | |
| | | |
| | | private T data; |
| | | |
| | | private String traceid; |
| | | private String traceId; |
| | | |
| | | public static <T> ResponseResult<T> success(T data) { |
| | | return ResponseResult.<T>builder() |
| | |
| | | .build(); |
| | | } |
| | | |
| | | public static<T> ResponseResult success(int code, String message,String traceid,T data) { |
| | | return ResponseResult.builder() |
| | | .code(code) |
| | | .data(data) |
| | | .message(message) |
| | | .traceId(traceid) |
| | | .build(); |
| | | } |
| | | public static ResponseResult success(int code, String message,String traceid) { |
| | | return ResponseResult.builder() |
| | | .code(code) |
| | | .message(message) |
| | | .traceid(traceid) |
| | | .traceId(traceid) |
| | | .build(); |
| | | } |
| | | |