Migrate authorize{ actions, actionType, reducer} to TS & make factory service for interfaces #15

This commit is contained in:
Qolzam
2017-10-08 17:30:03 +07:00
parent f7c1a1ac00
commit 3b3899e7af
26 changed files with 652 additions and 218 deletions

View File

@@ -0,0 +1,7 @@
import { LoginUser } from "./loginResult";
import { RegisterUserResult } from "./registerUserResult";
export {
LoginUser,
RegisterUserResult
}

View File

@@ -0,0 +1,25 @@
import { BaseDomain } from "domain/common";
export class LoginUser extends BaseDomain{
constructor(uid: string){
super();
this._uid = uid;
}
/**
* User identifier
*
* @type {string}
* @memberof LoginUser
*/
private _uid : string;
public get uid() : string {
return this._uid;
}
}

View File

@@ -0,0 +1,23 @@
import { BaseDomain } from "domain/common";
export class RegisterUserResult extends BaseDomain{
constructor(uid: string){
super();
this._uid = uid;
}
/**
* User identifier
*
* @type {string}
* @memberof LoginUser
*/
private _uid : string;
public get uid() : string {
return this._uid;
}
}