🆕 #3077【小程序】增加openApi管理的接口支持

This commit is contained in:
水依寒
2023-07-12 11:04:59 +08:00
committed by GitHub
parent 9bd7940195
commit 831aac31ba
10 changed files with 362 additions and 4 deletions

View File

@@ -0,0 +1,28 @@
package cn.binarywang.wx.miniapp.bean.openapi;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
/**
* 查询API调用额度 返回数据
*
* @author shuiyihan12
* @since 2023/7/10 16:52
*/
@Data
public class WxMiniGetApiQuotaResult {
/**
* 当天该账号可调用该接口的次数
*/
@SerializedName("daily_limit")
private Integer dailyLimit;
/**
* 当天已经调用的次数
*/
private Integer used;
/**
* 当天剩余调用次数
*/
private Integer remain;
}

View File

@@ -0,0 +1,44 @@
package cn.binarywang.wx.miniapp.bean.openapi;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
/**
* 查询rid信息 返回数据
* @author shuiyihan12
* @since 2023/7/10 16:53
*/
@Data
public class WxMiniGetRidInfoResult {
/**
* 发起请求的时间戳
*/
@SerializedName("invoke_time")
private Integer invokeTime;
/**
* 请求毫秒级耗时
*/
@SerializedName("cost_in_ms")
private Integer costInMs;
/**
* 请求的URL参数
*/
@SerializedName("request_url")
private String requestUrl;
/**
* post请求的请求参数
*/
@SerializedName("request_body")
private String requestBody;
/**
* 接口请求返回参数
*/
@SerializedName("response_body")
private String responseBody;
/**
* 接口请求的客户端ip
*/
@SerializedName("client_ip")
private String clientIp;
}