yapi/client/actions/interfaceAction.js
2017-07-20 16:34:46 +08:00

48 lines
941 B
JavaScript

import {
FETCH_INTERFACE_DATA,
LIST_INTERFACE_CLICK,
PROJECT_MEMBER_INTERFACE
} from '../constants/action-types.js'
export function fetchInterfaceData (value) {
// const data = [{
// key: '1',
// name: 'John Brown',
// age: 32,
// address: 'New York No. 1 Lake Park',
// date: '2015-11-11 13:00:15',
// features: '3'
// }, {
// key: '2',
// name: 'Jim Green',
// age: 42,
// address: 'London No. 1 Lake Park',
// date: '2015-11-11 13:00:15',
// features: '3'
// }, {
// key: '3',
// name: 'Joe Black',
// age: 32,
// address: 'Sidney No. 1 Lake Park',
// date: '2015-11-11 13:00:15',
// features: '3'
// }]
return {
type: FETCH_INTERFACE_DATA,
payload: value
};
}
export function projectMember () {
return {
type: LIST_INTERFACE_CLICK
}
}
export function closeProjectMember () {
return {
type: PROJECT_MEMBER_INTERFACE
}
}