package rbm import "github.com/XingfenD/rainyun_api_go_sdk/constant" type GetRbmPlanListResponse struct { Code int `json:"code"` Data []RbmPlan `json:"data"` } // RbmPlan RBM套餐 type RbmPlan struct { ID int `json:"id"` // 套餐ID Region string `json:"region"` // 地域 Line string `json:"line"` // 线路 3c/single/bgp Subtype string `json:"subtype"` // rbm PlanName string `json:"plan_name"` // 套餐名称 Machine string `json:"machine"` // 意义不明 generic/generic_2 ChargeType string `json:"charge_type"` // 计费方式 package(流量不限)/package_traffic(流量叠加) Chinese string `json:"chinese"` // 中文名 IsFree bool `json:"is_free"` // 是否免费(为什么会有这种参数) PointRenewPrice any `json:"point_renew_price"` // 积分续费价格,全是 null IsSelling bool `json:"is_selling"` // 是否在售 Price int `json:"price"` // 价格 TrafficBaseGb int `json:"traffic_base_gb"` // 流量基数,单位GB TrafficPrice any `json:"traffic_price"` // 流量价格,单位GB,package_traffic 计费方式才有值 CPU int `json:"cpu"` // cpu核数 Memory int `json:"memory"` // 内存,单位GB Storage int `json:"storage"` // 存储,单位GB NetIn int `json:"net_in"` // 入网带宽,单位Mbps NetOut int `json:"net_out"` // 出网带宽,单位Mbps AvailableStock int `json:"available_stock"` // 可用库存 IPPrices any `json:"ip_prices"` // IP价格,单位元/月 } // 获取RBM套餐列表 func (s *RbmService) GetRBMPlanList() (*GetRbmPlanListResponse, error) { path := "/product/rbm/models" var resp GetRbmPlanListResponse err := s.client.Do(constant.HTTPMethod_GET, path, nil, nil, &resp) return &resp, err }