方法列表
创建流量包
admin
RPC
createTrafficPackage (CreateTrafficPackageRequest) returns (CreateTrafficPackageResponse)
HTTP
POST /TrafficPackageService/createTrafficPackage
输入对象:CreateTrafficPackageRequest:
{ // 流量包尺寸 int32 size; // 单位:gb, tb, pb string unit; }
输出对象:CreateTrafficPackageResponse:
修改流量包
admin
RPC
updateTrafficPackage (UpdateTrafficPackageRequest) returns (RPCSuccess)
HTTP
POST /TrafficPackageService/updateTrafficPackage
输入对象:UpdateTrafficPackageRequest:
{ int64 trafficPackageId; // 是否启用 bool isOn; }
输出对象:RPCSuccess:
{ }
删除流量包
admin
RPC
deleteTrafficPackage (DeleteTrafficPackageRequest) returns (RPCSuccess)
HTTP
POST /TrafficPackageService/deleteTrafficPackage
输入对象:DeleteTrafficPackageRequest:
输出对象:RPCSuccess:
{ }
查找流量包
admin
RPC
findTrafficPackage (FindTrafficPackageRequest) returns (FindTrafficPackageResponse)
HTTP
POST /TrafficPackageService/findTrafficPackage
输入对象:FindTrafficPackageRequest:
输出对象:FindTrafficPackageResponse:
查找所有流量包
admin
RPC
findAllTrafficPackages (FindAllTrafficPackagesRequest) returns (FindAllTrafficPackagesResponse)
HTTP
POST /TrafficPackageService/findAllTrafficPackages
输入对象:FindAllTrafficPackagesRequest:
{ }
输出对象:FindAllTrafficPackagesResponse:
查找所有可用流量包
admin
RPC
findAllAvailableTrafficPackages (FindAllAvailableTrafficPackagesRequest) returns (FindAllAvailableTrafficPackagesResponse)
HTTP
POST /TrafficPackageService/findAllAvailableTrafficPackages
输入对象:FindAllAvailableTrafficPackagesRequest:
{ }
输出对象:FindAllAvailableTrafficPackagesResponse: