[FeaturedBrandsPanel] section, LIVE CHANNELS, 라이브 방송시 데이터 30초 단위로 feaching

Detail Notes :

1. 현재 주석 처리
2. action type, reducer 재설정
This commit is contained in:
younghoon100.park
2024-04-23 13:31:20 +09:00
parent 87d3fde4f6
commit 73144f969f
4 changed files with 54 additions and 4 deletions

View File

@@ -119,6 +119,36 @@ export const getBrandLiveChannelInfo = (props) => (dispatch, getState) => {
);
};
export const getBrandChanInfo = (props) => (dispatch, getState) => {
const { patnrId } = props;
const onSuccess = (response) => {
// console.log("getBrandChanInfo onSuccess ", response.data);
dispatch({
type: types.GET_BRAND_CHAN_INFO,
payload: {
data: response.data.data,
status: "fulfilled",
},
});
};
const onFail = (error) => {
console.error("getBrandChanInfo onFail ", error);
};
TAxios(
dispatch,
getState,
"get",
URLS.GET_BRAND_LIVE_CHANNEL_INFO,
{ patnrId },
{},
onSuccess,
onFail
);
};
// Featured Brands Today's Deals 정보 조회 IF-LGSP-307
export const getBrandTSVInfo = (props) => (dispatch, getState) => {
const { patnrId } = props;