[전체] userInfo -> userNumber 변경 /
reducer appStatus.loginUserData 구조 변경
This commit is contained in:
30
com.twin.app.shoptime/src/actions/empActions.js
Normal file
30
com.twin.app.shoptime/src/actions/empActions.js
Normal 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
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user