feat: 移动请求文件到子包
This commit is contained in:
29
src/pages-aigc/constant/aigc.js
Normal file
29
src/pages-aigc/constant/aigc.js
Normal 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);
|
||||
};
|
||||
Reference in New Issue
Block a user