feat: first commit

This commit is contained in:
eleanor.mao
2025-03-31 22:34:22 +08:00
commit d25187c9c8
390 changed files with 57031 additions and 0 deletions

10
src/store/actions/app.ts Normal file
View File

@ -0,0 +1,10 @@
import { RoleType, PageType } from '@/constants/app';
import { LocationInfo } from '@/types/location';
import { CHANGE_ROLE_TYPE, CHANGE_HOME_PAGE, SET_LOCATION_INFO } from '../constants';
export const changeRoleType = (value: RoleType) => ({ type: CHANGE_ROLE_TYPE, value });
export const changeHomePage = (value: PageType) => ({ type: CHANGE_HOME_PAGE, value });
export const setLocationInfo = (value: LocationInfo) => ({ type: SET_LOCATION_INFO, value });

View File

@ -0,0 +1,3 @@
export * from './app';
export * from './user';
export * from './message';

View File

@ -0,0 +1,5 @@
import { UserMessage } from '@/types/message';
import { SET_USER_MESSAGE } from '../constants';
export const setMessageInfo = (value: Partial<UserMessage>) => ({ type: SET_USER_MESSAGE, value });

View File

@ -0,0 +1,7 @@
import { UserInfo } from '@/types/user';
import { SET_USER_INFO, SET_BIND_PHONE } from '../constants';
export const setUserInfo = (value: Partial<UserInfo>) => ({ type: SET_USER_INFO, value });
export const setBindPhone = (value: UserInfo['isBindPhone']) => ({ type: SET_BIND_PHONE, value });