yapi/client/actions/interfaceAction.js
2017-07-14 11:27:34 +08:00

47 lines
868 B
JavaScript

import {
FETCH_INTERFACE_DATA,
LIST_INTERFACE_CLICK,
PROJECT_MEMBER_INTERFACE
} from '../constants/action-types.js'
export function fetchInterfaceData () {
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: data
};
}
export function projectMember () {
return {
type: LIST_INTERFACE_CLICK
}
}
export function closeProjectMember () {
return {
type: PROJECT_MEMBER_INTERFACE
}
}