feat(recharge): add recharge package selection flow
- add new getRechargeOptions API endpoint in AigcApi - replace CustomAmountCard with RechargePackageList component - implement fetching and selection logic for recharge packages - update UI to use correct recharge data fields - add validation for selected recharge option
This commit is contained in:
@@ -20,6 +20,10 @@ function getCurrentCredit() {
|
||||
return request.get("/hotelBiz/credit/current", {});
|
||||
}
|
||||
|
||||
function getRechargeOptions() {
|
||||
return request.get("/hotelBiz/credit/recharge/options", {});
|
||||
}
|
||||
|
||||
function rechargeCredit(args) {
|
||||
return request.post("/hotelBiz/credit/recharge", args);
|
||||
}
|
||||
@@ -30,5 +34,6 @@ export {
|
||||
getAigcGeneratorTaskList,
|
||||
createAigcGeneratorTask,
|
||||
getCurrentCredit,
|
||||
getRechargeOptions,
|
||||
rechargeCredit,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user