yapi/client/actions/interfaceAction.js

49 lines
856 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,
2017-07-26 16:25:34 +08:00
DELETE_INTERFACE_DATA,
2017-07-27 16:48:30 +08:00
SAVE_INTERFACE_PROJECT_ID,
GET_INTERFACE_GROUP_LIST
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
}
}
2017-07-26 16:25:34 +08:00
export function saveInterfaceProjectId (value) {
return {
type: SAVE_INTERFACE_PROJECT_ID,
payload: value
}
}
2017-07-27 16:48:30 +08:00
export function getInterfaceGroupList (value) {
return {
type: GET_INTERFACE_GROUP_LIST,
payload: value
}
}