首页>代码>springboot开发微信记事本小程序,实际运行地址搜,记事本随手记就好了>/untitled4/src/main/java/com/rgzn/app/common/ApiResponseUtil.java
package com.rgzn.app.common;
public class ApiResponseUtil {
// 成功响应
public static <T> ApiResponse<T> success(T data) {
return new ApiResponse<>(200, "Success", data);
}
// 成功响应,无数据
public static <T> ApiResponse<T> success() {
return new ApiResponse<>(200, "Success", null);
}
// 错误响应
public static <T> ApiResponse<T> error(int code, String message) {
return new ApiResponse<>(code, message, null);
}
}
最近下载更多
最近浏览更多
wanglinddad LV55
12月2日
zq1685 LV4
11月26日
wgudu12345
11月20日
暂无贡献等级
zhaixunfei LV8
11月19日
全栈小白 LV35
11月19日
Hachi6 LV13
11月14日
jlmarket LV22
11月13日
torqi-kiram LV1
11月12日
马儿爱吃兰 LV10
11月8日
huming LV4
11月4日

