vn-verdnaturachat/app/actions/messages.js

23 lines
360 B
JavaScript
Raw Normal View History

2017-08-17 06:28:41 +00:00
import * as types from './actionsTypes';
export function messagesRequest({ rid }) {
console.log(types.MESSAGES.REQUEST, rid);
return {
type: types.MESSAGES.REQUEST,
rid
};
}
export function messagesSuccess() {
return {
type: types.MESSAGES.SUCCESS
};
}
export function messagesFailure(err) {
return {
type: types.MESSAGES.FAILURE,
err
};
}