feat: 移动请求文件到子包

This commit is contained in:
2026-07-28 17:26:54 +08:00
parent 6a96e3634e
commit be522a8f02
13 changed files with 14 additions and 14 deletions

View File

@@ -0,0 +1,29 @@
import { currentClientType } from "@/constant/base";
const CLIENT_TYPE = currentClientType();
const AIGC_CONSENT_AGREED = `${CLIENT_TYPE}_AIGC_CONSENT_AGREED`;
const AIGC_GIFT_POINTS_TOAST_CLOSED = `${CLIENT_TYPE}_AIGC_GIFT_POINTS_TOAST_CLOSED`;
export const getAigcConsentAgreed = () => {
return uni.getStorageSync(AIGC_CONSENT_AGREED);
};
export const setAigcConsentAgreed = (agreed = true) => {
return uni.setStorageSync(AIGC_CONSENT_AGREED, agreed);
};
export const removeAigcConsentAgreed = () => {
return uni.removeStorageSync(AIGC_CONSENT_AGREED);
};
export const getAigcGiftPointsToastClosed = () => {
return uni.getStorageSync(AIGC_GIFT_POINTS_TOAST_CLOSED);
};
export const setAigcGiftPointsToastClosed = (closed = true) => {
return uni.setStorageSync(AIGC_GIFT_POINTS_TOAST_CLOSED, closed);
};
export const removeAigcGiftPointsToastClosed = () => {
return uni.removeStorageSync(AIGC_GIFT_POINTS_TOAST_CLOSED);
};