feat(aigc): add shared work page and AIGC sharing

- add new shared work page to view shared AIGC generated images and videos
- add createAigcGeneratorTaskShare and getAigcGeneratorTaskShareDetail APIs
- update ResultActions component to add share preparation state and native share support
- remove deprecated SharePreviewPopup component and its associated styles
- update AIGC detail page to generate share keys and adjust native share metadata
- register the new shared work page in pages.json
This commit is contained in:
duanshuwen
2026-07-16 13:28:46 +08:00
parent dcf67dedfc
commit 67b1b78f1f
8 changed files with 313 additions and 314 deletions

View File

@@ -36,6 +36,14 @@ function getCreditLedgerPage(args) {
return request.post("/hotelBiz/credit/ledger/page", args);
}
function createAigcGeneratorTaskShare(args) {
return request.post("/hotelBiz/aigcGeneratorTask/share/create", args);
}
function getAigcGeneratorTaskShareDetail(args) {
return request.post("/hotelBiz/aigcGeneratorTask/share/detail", args, { noToken: true });
}
export {
getAigcTemplateList,
getAigcTemplateItemList,
@@ -46,4 +54,6 @@ export {
getRechargeOptions,
rechargeCredit,
getCreditLedgerPage,
createAigcGeneratorTaskShare,
getAigcGeneratorTaskShareDetail,
};