[actions, reducers] BRAND_TODAYS_DEALS 관련 변수 및 로직 추가
Detail Notes : 1. actionTypes, actions, reducer 추가
This commit is contained in:
@@ -87,3 +87,32 @@ export const getBrandLiveChannelInfo = (props) => (dispatch, getState) => {
|
||||
onFail
|
||||
);
|
||||
};
|
||||
|
||||
// Featured Brands Today's Deals 정보 조회 IF-LGSP-307
|
||||
export const getBrandTSVInfo = (props) => (dispatch, getState) => {
|
||||
const { patnrId } = props;
|
||||
|
||||
const onSuccess = (response) => {
|
||||
console.log("@@ getBrandTSVInfo onSuccess ", response.data);
|
||||
|
||||
dispatch({
|
||||
type: types.GET_BRAND_TODAYS_DEALS,
|
||||
payload: response.data.data,
|
||||
});
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
console.error("@@ getBrandTSVInfo onFail ", error);
|
||||
};
|
||||
|
||||
TAxios(
|
||||
dispatch,
|
||||
getState,
|
||||
"get",
|
||||
URLS.GET_BRAND_TODAYS_DEALS,
|
||||
{ patnrId },
|
||||
{},
|
||||
onSuccess,
|
||||
onFail
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user