获取指定套餐的已购升级包

GET/v1/user-package/<已购套餐ID>/upgrades
page
integer
当前页码
limit
integer
单页显示数量
返回结果
{
    "code": 0,
    "count": 1,
    "data": [
        {
            "amount": 1,
            "id": 1,
            "package_up": 2,
            "package_up_amount": 10,
            "package_up_name": "10个域名",
            "type": "domain",
            "uid": 2,
            "user_package": 425
        }
    ]
}

购买升级包

POST/v1/user-package/<已购套餐ID>/upgrades
package_up
integer
required
升级包ID
amount
integer
升级包数量
返回结果
提交内容
{
  "code":0, 
  "data": "", 
  "msg": "升级包添加成功"
}

获取升级包价格

GET/v1/user-package/<已购套餐ID>/upgrades/<升级包ID>
amount
integer
升级包数量
返回结果
{
    "code": 0,
    "data": {
        "price": 66.67
    },
    "msg": ""
}

删除升级包

DELETE/v1/user-package/<已购套餐ID>/upgrades/<升级包ID>
amount
integer
升级包数量
返回结果
{
    "code": 0,
    "data": ""
    "msg": "升级包删除成功"
}
© 版权声明
评论 抢沙发

请登录后发表评论

    暂无评论内容