[TOC] ## 获取指定套餐的已购升级包 ~~~[api] get:/v1/user-package/<已购套餐ID>/upgrades integer:page=1#当前页码 integer:limit=10#单页显示数量 <<< 返回结果 { "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 } ] } ~~~ ## 购买升级包 ~~~[api] post:/v1/user-package/<已购套餐ID>/upgrades *integer:package_up#升级包ID integer:amount=1#升级包数量 <<< 返回结果 { "code":0, "data": "", "msg": "升级包添加成功" } <<< 提交内容 { "package_up": 2, "amount": "1" } ~~~ ## 获取升级包价格 ~~~[api] get:/v1/user-package/<已购套餐ID>/upgrades/<升级包ID> integer:amount=1#升级包数量 <<< 返回结果 { "code": 0, "data": { "price": 66.67 }, "msg": "" } ~~~ ## 删除升级包 ~~~[api] delete:/v1/user-package/<已购套餐ID>/upgrades/<升级包ID> integer:amount=1#升级包数量 <<< 返回结果 { "code": 0, "data": "" "msg": "升级包删除成功" } ~~~