This commit is contained in:
snoop 2017-07-03 18:35:06 +09:00
parent 4fad0cc2f0
commit 3ac606d404
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,18 @@
import Action from 'commons/redux/Action';
import ApiKey from 'apikey/api/model/ApiKey';
import RegistPayload from '../payload/RegistPayload';
// Action Type
export type REQUEST = '@overflow/apikey/regist/REQUEST';
export type REQUEST_SUCCESS = '@overflow/apikey/regist/REQUEST_SUCCESS';
export type REQUEST_FAILURE = '@overflow/apikey/regist/REQUEST_FAILURE';
export const REQUEST: REQUEST = '@overflow/apikey/regist/REQUEST';
export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/apikey/regist/REQUEST_SUCCESS';
export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/apikey/regist/REQUEST_FAILURE';
// Action Creater
export type request = () => Action<RegistPayload>;
export type requestSuccess = (apiKey: ApiKey) => Action<ApiKey>;
export type requestFailure = (error: Error) => Action;

View File

@ -0,0 +1,6 @@
interface RegistPayload {
signinId: string;
signinPw: string;
}
export default RegistPayload;