yapi/client/actions/interfaceAction.js
2017-07-24 10:59:17 +08:00

33 lines
555 B
JavaScript

import {
FETCH_INTERFACE_DATA,
LIST_INTERFACE_CLICK,
PROJECT_MEMBER_INTERFACE,
DELETE_INTERFACE_DATA
} from '../constants/action-types.js'
export function fetchInterfaceData (value) {
return {
type: FETCH_INTERFACE_DATA,
payload: value
};
}
export function projectMember () {
return {
type: LIST_INTERFACE_CLICK
}
}
export function closeProjectMember () {
return {
type: PROJECT_MEMBER_INTERFACE
}
}
export function deleteInterfaceData (value) {
return {
type: DELETE_INTERFACE_DATA,
payload: value
}
}