Migrate authorize{ actions, actionType, reducer} to TS & make factory service for interfaces #15
This commit is contained in:
5
app/domain/users/index.ts
Normal file
5
app/domain/users/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import User from './user';
|
||||
|
||||
export {
|
||||
User
|
||||
}
|
||||
30
app/domain/users/user.ts
Normal file
30
app/domain/users/user.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { BaseDomain } from "domain/common";
|
||||
|
||||
class User extends BaseDomain {
|
||||
/**
|
||||
* Email of the user
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof User
|
||||
*/
|
||||
public email: string;
|
||||
|
||||
/**
|
||||
* Password of the user
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof User
|
||||
*/
|
||||
public password: string;
|
||||
|
||||
/**
|
||||
* User identifier
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof User
|
||||
*/
|
||||
public userId: string;
|
||||
|
||||
}
|
||||
|
||||
export default User;
|
||||
Reference in New Issue
Block a user