WAFGO正在准备页面
接入指南

API 文档

开发者资源 · API 参考

查阅 WAFGO API 的服务、请求路径和消息定义。按权限角色浏览接口,快速找到接入所需的参数与返回结构。

下载 JSON 文档
69 个服务354 个接口
用户购买的套餐管理服务找到 7 个接口

购买套餐

buyUserPlan

POST/UserPlanService/buyUserPlan
原始定义
rpc buyUserPlan(BuyUserPlanRequest) returns (BuyUserPlanResponse);

请求消息

BuyUserPlanRequest

添加已购套餐

请求消息 · 字段定义
message BuyUserPlanRequest{
	int64 userId = 1;
	int64 planId = 2;
	string dayTo = 3;
	string period = 4;
	int32  countPeriod = 5;
	string name = 6;
}

响应消息

BuyUserPlanResponse
响应消息 · 字段定义
message BuyUserPlanResponse {
	int64 userPlanId = 1;
}

说明与注释按当前语言显示。接口路径、方法名、字段名和类型与原始接口定义保持一致。

接入指南