Browse Source

컴파일 오류 수정

pull/2/head
sanguu 2 years ago
parent
commit
942b2b5033
  1. 20
      src/modules/basis/group/actions/basisGroupAction.ts
  2. 14
      src/modules/basis/group/models/basisGroupModel.ts
  3. 13
      src/modules/basis/group/reducers/basisGroupReducer.ts

20
src/modules/basis/group/actions/basisGroupAction.ts

@ -10,11 +10,8 @@ import {
UserGroupState, UserGroupState,
GroupState, GroupState,
MainGroupData, MainGroupData,
<<<<<<< HEAD SelectData,
SelectData
=======
SelectGroupData SelectGroupData
>>>>>>> c23747b2de282357d7d8522636559c3d986c93e1
} from '../models/basisGroupModel'; } from '../models/basisGroupModel';
//# 나의 그룹 목록 조회 //# 나의 그룹 목록 조회
@ -106,13 +103,12 @@ const GROUP_MAIN_LIST_REQUEST = 'basis/group/GROUP_MAIN_LIST_REQUEST';
const GROUP_MAIN_LIST_SUCCESS = 'basis/group/GROUP_MAIN_LIST_SUCCESS'; const GROUP_MAIN_LIST_SUCCESS = 'basis/group/GROUP_MAIN_LIST_SUCCESS';
const GROUP_MAIN_LIST_FAILURE = 'basis/group/GROUP_MAIN_LIST_FAILURE'; const GROUP_MAIN_LIST_FAILURE = 'basis/group/GROUP_MAIN_LIST_FAILURE';
<<<<<<< HEAD
//그룹 선택 //그룹 선택
const SELECT_GROUP = 'basis/group/SELECT_GROUP'; const SELECT_GROUP = 'basis/group/SELECT_GROUP';
=======
//# 그룹 선택 //# 그룹 선택
const ROUP_SELECT = 'basis/group/select'; const ROUP_SELECT = 'basis/group/select';
>>>>>>> c23747b2de282357d7d8522636559c3d986c93e1
export const MY_LIST = createAsyncAction( export const MY_LIST = createAsyncAction(
MY_LIST_REQUEST, MY_LIST_REQUEST,
@ -220,11 +216,9 @@ export const USER_DELEGATE = createAsyncAction(
USER_DELEGATE_FAILURE USER_DELEGATE_FAILURE
)<UserGroupState, string, AxiosError>(); )<UserGroupState, string, AxiosError>();
<<<<<<< HEAD
export const SELECT = createAction(SELECT_GROUP)<SelectData>(); export const SELECT = createAction(SELECT_GROUP)<SelectData>();
=======
export const USER_GROUP_SELECT = createAction(ROUP_SELECT)<SelectGroupData>();
>>>>>>> c23747b2de282357d7d8522636559c3d986c93e1
const actions = { const actions = {
MY_LIST, MY_LIST,
@ -245,11 +239,7 @@ const actions = {
USER_DELEGATE, USER_DELEGATE,
GROUP_MYLIST, GROUP_MYLIST,
GROUP_MAIN_LIST, GROUP_MAIN_LIST,
<<<<<<< HEAD
SELECT SELECT
=======
USER_GROUP_SELECT
>>>>>>> c23747b2de282357d7d8522636559c3d986c93e1
}; };

14
src/modules/basis/group/models/basisGroupModel.ts

@ -18,18 +18,13 @@ export interface GroupState {
newGroupId: String | ''; newGroupId: String | '';
searchParams: string | ''; searchParams: string | '';
error: ErrorModel | undefined; error: ErrorModel | undefined;
<<<<<<< HEAD
selectData: SelectData | undefined; selectData: SelectData | undefined;
=======
selectGroup: SelectGroupData | undefined;
} }
export interface SelectGroupData { export interface SelectGroupData {
cstmrSno: number; cstmrSno: number;
groupId: string; groupId: string;
groupNm: string; groupNm: string;
>>>>>>> c23747b2de282357d7d8522636559c3d986c93e1
} }
export interface GroupSearchData { export interface GroupSearchData {
@ -111,7 +106,6 @@ export interface UserGroupData {
export const initGroup = { export const initGroup = {
myList: undefined, myList: undefined,
myListCount: 0, myListCount: 0,
myDetail: undefined,
groupDetail: undefined, groupDetail: undefined,
joinList: undefined, joinList: undefined,
joinListCount: 0, joinListCount: 0,
@ -127,13 +121,5 @@ export const initGroup = {
newGroupId: '', newGroupId: '',
searchParams: '', searchParams: '',
error: undefined, error: undefined,
<<<<<<< HEAD
selectData: undefined selectData: undefined
=======
selectGroup: {
cstmrSno: 0,
groupId: '',
groupNm: ''
}
>>>>>>> c23747b2de282357d7d8522636559c3d986c93e1
}; };

13
src/modules/basis/group/reducers/basisGroupReducer.ts

@ -6,7 +6,7 @@ import { GroupState, initGroup } from '../models/basisGroupModel';
export const groupReducer = createReducer<GroupState, Actions.GroupAction>( export const groupReducer = createReducer<GroupState, Actions.GroupAction>(
initGroup initGroup
) )
.handleAction(Actions.MY_LIST.success, (state, action) => .handleAction(Actions.MY_LIST.success, (state, action) =>
produce(state, draft => { produce(state, draft => {
const { data, count } = action.payload; const { data, count } = action.payload;
@ -45,7 +45,7 @@ export const groupReducer = createReducer<GroupState, Actions.GroupAction>(
draft.mainListCount = count; draft.mainListCount = count;
}) })
) )
.handleAction(Actions.GROUP_MYLIST.success, (state, action) => .handleAction(Actions.GROUP_MYLIST.success, (state, action) =>
produce(state, draft => { produce(state, draft => {
const { data, count } = action.payload; const { data, count } = action.payload;
@ -98,17 +98,10 @@ export const groupReducer = createReducer<GroupState, Actions.GroupAction>(
draft.userCount = count; draft.userCount = count;
}) })
) )
<<<<<<< HEAD
.handleAction(Actions.SELECT, (state, action) => .handleAction(Actions.SELECT, (state, action) =>
produce(state, draft => { produce(state, draft => {
const selectData = action.payload; const selectData = action.payload;
draft.selectData = selectData; draft.selectData = selectData;
=======
//그룹 선택
.handleAction(Actions.USER_GROUP_SELECT, (state, action) =>
produce(state, draft => {
const data = action.payload;
draft.selectGroup = data;
>>>>>>> c23747b2de282357d7d8522636559c3d986c93e1
}) })
); );

Loading…
Cancel
Save