[전체] userInfo -> userNumber 변경 /

reducer appStatus.loginUserData 구조 변경
This commit is contained in:
hyunwoo93.cha
2024-05-21 16:10:54 +09:00
parent 460443d43e
commit e14fa043cb
18 changed files with 434 additions and 296 deletions

View File

@@ -0,0 +1,30 @@
import { URLS } from '../api/apiConfig';
import { TAxios } from '../api/TAxios';
import { types } from './actionTypes';
// IF-LGSPM-373 EMP Shoptime 선택 약관 조회
export const getShoptimeTerms = () => (dispatch, getState) => {
const onSuccess = (response) => {
console.log("getShoptimeTerms onSuccess ", response.data);
dispatch({
type: types.GET_SHOPTIME_TERMS,
payload: response.data.data,
});
};
const onFail = (error) => {
console.error("getShoptimeTerms onFail ", error);
};
TAxios(
dispatch,
getState,
"get",
URLS.GET_SHOPTIME_TERMS,
{},
{},
onSuccess,
onFail
);
};