yapi/client/actions/interfaceAction.js

33 lines
555 B
JavaScript
Raw Normal View History

2017-07-11 19:12:13 +08:00
import {
FETCH_INTERFACE_DATA,
2017-07-13 20:09:04 +08:00
LIST_INTERFACE_CLICK,
2017-07-24 10:59:17 +08:00
PROJECT_MEMBER_INTERFACE,
DELETE_INTERFACE_DATA
2017-07-13 20:09:04 +08:00
} from '../constants/action-types.js'
2017-07-11 19:12:13 +08:00
2017-07-20 16:34:46 +08:00
export function fetchInterfaceData (value) {
2017-07-11 19:12:13 +08:00
return {
type: FETCH_INTERFACE_DATA,
2017-07-20 16:34:46 +08:00
payload: value
2017-07-11 19:12:13 +08:00
};
2017-07-13 20:09:04 +08:00
}
export function projectMember () {
return {
type: LIST_INTERFACE_CLICK
}
}
export function closeProjectMember () {
return {
2017-07-14 11:27:34 +08:00
type: PROJECT_MEMBER_INTERFACE
2017-07-13 20:09:04 +08:00
}
2017-07-20 16:34:46 +08:00
}
2017-07-24 10:59:17 +08:00
export function deleteInterfaceData (value) {
return {
type: DELETE_INTERFACE_DATA,
payload: value
}
}