[action, reducer] 추가
Detail Notes : 1. getBrandRecommendedShowInfo 추가 2. reducer 추가
This commit is contained in:
@@ -3,7 +3,6 @@ import { TAxios } from "../api/TAxios";
|
||||
import { types } from "./actionTypes";
|
||||
|
||||
// Featured Brands 정보 조회 IF-LGSP-304
|
||||
// @@pyh Todo, 기존의 key가 brandList에서 brandInfo로 변경 됨에 따라 함수명 또한 바뀔 수 있음 (문서 확인 후 변경 처리)
|
||||
export const getBrandList = () => (dispatch, getState) => {
|
||||
const onSuccess = (response) => {
|
||||
console.log("@@ getBrandList onSuccess ", response.data);
|
||||
@@ -117,6 +116,35 @@ export const getBrandTSVInfo = (props) => (dispatch, getState) => {
|
||||
);
|
||||
};
|
||||
|
||||
// Featured Brand Recommended Show 정보 조회 IF-LGSP-308
|
||||
export const getBrandRecommendedShowInfo = (props) => (dispatch, getState) => {
|
||||
const { catCd, patnrId } = props;
|
||||
|
||||
const onSuccess = (response) => {
|
||||
console.log("@@ getBrandRecommendedShowInfo onSuccess", response.data);
|
||||
|
||||
dispatch({
|
||||
type: types.GET_BRAND_RECOMMENDED_SHOW_INFO,
|
||||
payload: response.data.data,
|
||||
});
|
||||
};
|
||||
|
||||
const onFail = (error) => {
|
||||
console.log("@@ getBrandRecommendedShowInfo onFail", error);
|
||||
};
|
||||
|
||||
TAxios(
|
||||
dispatch,
|
||||
getState,
|
||||
"get",
|
||||
URLS.GET_BRAND_RECOMMENDED_SHOW_INFO,
|
||||
{ catCd, patnrId },
|
||||
{},
|
||||
onSuccess,
|
||||
onFail
|
||||
);
|
||||
};
|
||||
|
||||
// Featured Brand Best Seller 상품 목록 조회 IF-LGSP-312
|
||||
export const getBrandBestSeller = (props) => (dispatch, getState) => {
|
||||
const { patnrId } = props;
|
||||
|
||||
Reference in New Issue
Block a user