BaseResponse 类
- Go
更新时间
GetRequestID
func (r *BaseResponse) GetRequestID() string从响应中获取请求 ID。
信息
自 v0.7.0 版本新增。
返回值
- 方法调用成功时,返回响应头中的请求 ID(
X-Request-Id)。 - 方法调用失败,返回空字符串。
For AI agents: see the complete documentation index at /llms.txt.
更新时间
func (r *BaseResponse) GetRequestID() string从响应中获取请求 ID。
信息
自 v0.7.0 版本新增。
X-Request-Id)。