diff --git a/com.twin.app.shoptime/src/actions/actionTypes.js b/com.twin.app.shoptime/src/actions/actionTypes.js index 774fb503..ca6270f9 100644 --- a/com.twin.app.shoptime/src/actions/actionTypes.js +++ b/com.twin.app.shoptime/src/actions/actionTypes.js @@ -26,6 +26,7 @@ export const types = { GET_BRAND_LIST: "GET_BRAND_LIST", GET_BRAND_LAYOUT_INFO: "GET_BRAND_LAYOUT_INFO", GET_BRAND_LIVE_CHANNEL_INFO: "GET_BRAND_LIVE_CHANNEL_INFO", + GET_BRAND_TODAYS_DEALS: "GET_BRAND_TODAYS_DEALS", // main actions GET_SUB_CATEGORY: "GET_SUB_CATEGORY", diff --git a/com.twin.app.shoptime/src/actions/brandActions.js b/com.twin.app.shoptime/src/actions/brandActions.js index f8aca17b..be7ef68f 100644 --- a/com.twin.app.shoptime/src/actions/brandActions.js +++ b/com.twin.app.shoptime/src/actions/brandActions.js @@ -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 + ); +}; diff --git a/com.twin.app.shoptime/src/reducers/brandReducer.js b/com.twin.app.shoptime/src/reducers/brandReducer.js index c5fecc14..85e926b4 100644 --- a/com.twin.app.shoptime/src/reducers/brandReducer.js +++ b/com.twin.app.shoptime/src/reducers/brandReducer.js @@ -4,6 +4,7 @@ const initialState = { brandInfoData: {}, brandLayoutInfoData: {}, brandLiveChannelInfoData: {}, + brandTsvInfoData: {}, }; export const brandReducer = (state = initialState, action) => { @@ -26,6 +27,12 @@ export const brandReducer = (state = initialState, action) => { brandLiveChannelInfoData: action.payload, }; + case types.GET_BRAND_TODAYS_DEALS: + return { + ...state, + brandTsvInfoData: action.payload, + }; + default: return state; }