mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-12 12:54:48 +08:00
23 lines
364 B
JavaScript
23 lines
364 B
JavaScript
import {
|
|
FETCH_GROUP_LIST,
|
|
FETCH_CURR_GROUP
|
|
} from '../constants/action-types';
|
|
|
|
export function fetchGroupList() {
|
|
return {
|
|
type: FETCH_GROUP_LIST,
|
|
payload: {
|
|
data: ['MFE', 'Hotel', 'Vacation', 'Flight', 'Pay']
|
|
}
|
|
}
|
|
}
|
|
|
|
export function fetchCurrGroup() {
|
|
return {
|
|
type: FETCH_CURR_GROUP,
|
|
payload: {
|
|
data: 'MFE'
|
|
}
|
|
}
|
|
}
|