feat: 移动请求文件到子包
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
import { ref } from "vue";
|
||||
import { onLoad } from "@dcloudio/uni-app";
|
||||
import TopNavBar from "@/components/TopNavBar/index.vue";
|
||||
import { getUserAgreement } from "@/request/api/AigcApi.js";
|
||||
import { getUserAgreement } from "@/pages-aigc/request/AigcApi.js";
|
||||
|
||||
const agreement = ref("");
|
||||
const loading = ref(false);
|
||||
|
||||
@@ -39,7 +39,7 @@ import {
|
||||
createAigcGeneratorTask,
|
||||
createAigcGeneratorTaskShare,
|
||||
getAigcGeneratorTaskDetail,
|
||||
} from "@/request/api/AigcApi.js";
|
||||
} from "@/pages-aigc/request/AigcApi.js";
|
||||
import PointInsufficientDialog from "@/pages-aigc/useTemplate/components/PointInsufficientDialog/index.vue";
|
||||
import RegenerateConfirmPopup from "./components/RegenerateConfirmPopup/index.vue";
|
||||
import ResultActions from "./components/ResultActions/index.vue";
|
||||
|
||||
@@ -28,9 +28,9 @@ import {
|
||||
getAigcGiftPointsToastClosed,
|
||||
setAigcConsentAgreed,
|
||||
setAigcGiftPointsToastClosed,
|
||||
} from "@/constant/aigc.js";
|
||||
} from "@/pages-aigc/constant/aigc.js";
|
||||
import { useCurrentCredit } from "@/pages-aigc/hooks/useCurrentCredit.js";
|
||||
import { getAigcTemplateList } from "@/request/api/AigcApi.js";
|
||||
import { getAigcTemplateList } from "@/pages-aigc/request/AigcApi.js";
|
||||
import AigcConsentDialog from "./components/AigcConsentDialog/index.vue";
|
||||
import GiftPointsToast from "./components/GiftPointsToast/index.vue";
|
||||
import TemplateCarousel from "./components/TemplateCarousel/index.vue";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ref } from "vue";
|
||||
import { getCurrentCredit } from "@/request/api/AigcApi.js";
|
||||
import { getCurrentCredit } from "@/pages-aigc/request/AigcApi.js";
|
||||
|
||||
export function useCurrentCredit() {
|
||||
const pointBalance = ref(0);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
import { ref } from "vue";
|
||||
import CustomEmpty from "@/components/CustomEmpty/index.vue";
|
||||
import TopNavBar from "@/components/TopNavBar/index.vue";
|
||||
import { getCreditLedgerPage } from "@/request/api/AigcApi.js";
|
||||
import { getCreditLedgerPage } from "@/pages-aigc/request/AigcApi.js";
|
||||
import LedgerList from "./components/LedgerList/index.vue";
|
||||
|
||||
const records = ref([]);
|
||||
|
||||
@@ -19,7 +19,7 @@ import { ref } from "vue";
|
||||
import { onHide, onLoad, onShow, onUnload } from "@dcloudio/uni-app";
|
||||
import AigcTopBar from "@/pages-aigc/components/AigcTopBar/index.vue";
|
||||
import { useCurrentCredit } from "@/pages-aigc/hooks/useCurrentCredit.js";
|
||||
import { getAigcGeneratorTaskDetail } from "@/request/api/AigcApi.js";
|
||||
import { getAigcGeneratorTaskDetail } from "@/pages-aigc/request/AigcApi.js";
|
||||
import GeneratingProgressPanel from "./components/GeneratingProgressPanel/index.vue";
|
||||
|
||||
const { pointBalance, fetchCurrentCredit } = useCurrentCredit();
|
||||
|
||||
@@ -27,13 +27,13 @@ import { onHide, onLoad, onShow, onUnload } from "@dcloudio/uni-app";
|
||||
import TopNavBar from "@/components/TopNavBar/index.vue";
|
||||
import { useCurrentCredit } from "@/pages-aigc/hooks/useCurrentCredit.js";
|
||||
import AgreePopup from "@/pages/login/components/AgreePopup/index.vue";
|
||||
import { getPointsTopUpAgreement } from "@/request/api/AigcApi.js";
|
||||
import { getPointsTopUpAgreement } from "@/pages-aigc/request/AigcApi.js";
|
||||
import {
|
||||
confirmVirtualRechargeOrder,
|
||||
createVirtualRechargeOrder,
|
||||
getVirtualRechargeOptions,
|
||||
getVirtualRechargeOrder,
|
||||
} from "@/request/api/VirtualRechargeApi.js";
|
||||
} from "@/pages-aigc/request/VirtualRechargeApi.js";
|
||||
import BalanceCard from "./components/BalanceCard/index.vue";
|
||||
import CustomAmountCard from "./components/CustomAmountCard/index.vue";
|
||||
import RechargeFooter from "./components/RechargeFooter/index.vue";
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
import { ref } from "vue";
|
||||
import TopNavBar from "@/components/TopNavBar/index.vue";
|
||||
import CustomEmpty from "@/components/CustomEmpty/index.vue";
|
||||
import { getAigcGeneratorTaskList } from "@/request/api/AigcApi.js";
|
||||
import { getAigcGeneratorTaskList } from "@/pages-aigc/request/AigcApi.js";
|
||||
import RecordList from "./components/RecordList/index.vue";
|
||||
|
||||
const records = ref([]);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import request from "../base/request";
|
||||
import request from "@/request/base/request";
|
||||
|
||||
function getAigcTemplateList() {
|
||||
return request.get("/hotelBiz/aigc/aigcTemplateList", {});
|
||||
@@ -1,4 +1,4 @@
|
||||
import request from "../base/request";
|
||||
import request from "@/request/base/request";
|
||||
|
||||
const VIRTUAL_RECHARGE_BASE_PATH = "/hotelBiz/credit/virtual-recharge";
|
||||
|
||||
@@ -31,7 +31,7 @@ import { computed, ref } from "vue";
|
||||
import { onLoad } from "@dcloudio/uni-app";
|
||||
import TopNavBar from "@/components/TopNavBar/index.vue";
|
||||
import { checkToken } from "@/hooks/useGoLogin.js";
|
||||
import { getAigcGeneratorTaskShareDetail } from "@/request/api/AigcApi.js";
|
||||
import { getAigcGeneratorTaskShareDetail } from "@/pages-aigc/request/AigcApi.js";
|
||||
|
||||
const shareKey = ref("");
|
||||
const shareDetail = ref(null);
|
||||
|
||||
@@ -51,7 +51,7 @@ import {
|
||||
createAigcGeneratorTask,
|
||||
getAigcTemplateItemList,
|
||||
getAigcTemplateList,
|
||||
} from "@/request/api/AigcApi.js";
|
||||
} from "@/pages-aigc/request/AigcApi.js";
|
||||
import { updateImageFile } from "@/request/api/UpdateFile.js";
|
||||
import GenerateConfirmPanel from "./components/GenerateConfirmPanel/index.vue";
|
||||
import PhotoConfirmDrawer from "./components/PhotoConfirmDrawer/index.vue";
|
||||
|
||||
Reference in New Issue
Block a user