[actions, api, reducers] action 추가 및 오타 수정

Detail Notes :

1. brandAction, getBrandBestSeller 추가
2. brandReducer 추가
3. 오타 수정
This commit is contained in:
younghoon100.park
2024-02-15 19:12:32 +09:00
parent 2aa6f0de25
commit d054f6e6ab
4 changed files with 38 additions and 2 deletions

View File

@@ -116,3 +116,32 @@ export const getBrandTSVInfo = (props) => (dispatch, getState) => {
onFail
);
};
// Featured Brand Best Seller 상품 목록 조회 IF-LGSP-312
export const getBrandBestSeller = (props) => (dispatch, getState) => {
const { patnrId } = props;
const onSuccess = (response) => {
console.log("@@ getBrandBestSeller onSuccess ", response.data);
dispatch({
type: types.GET_BRAND_BEST_SELLER,
payload: response.data.data,
});
};
const onFail = (error) => {
console.error("@@ getBrandBestSeller onFail ", error);
};
TAxios(
dispatch,
getState,
"get",
URLS.GET_BRAND_BEST_SELLER,
{ patnrId },
{},
onSuccess,
onFail
);
};