user.model.ts 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. export interface IUser {
  2. id?: any;
  3. login?: string;
  4. firstName?: string;
  5. lastName?: string;
  6. email?: string;
  7. activated?: boolean;
  8. langKey?: string;
  9. authorities?: any[];
  10. createdBy?: string;
  11. createdDate?: Date;
  12. lastModifiedBy?: string;
  13. lastModifiedDate?: Date;
  14. password?: string;
  15. }
  16. export class User implements IUser {
  17. constructor(
  18. public id?: any,
  19. public login?: string,
  20. public firstName?: string,
  21. public lastName?: string,
  22. public email?: string,
  23. public activated?: boolean,
  24. public langKey?: string,
  25. public authorities?: any[],
  26. public createdBy?: string,
  27. public createdDate?: Date,
  28. public lastModifiedBy?: string,
  29. public lastModifiedDate?: Date,
  30. public password?: string
  31. ) {
  32. this.id = id ? id : null;
  33. this.login = login ? login : null;
  34. this.firstName = firstName ? firstName : null;
  35. this.lastName = lastName ? lastName : null;
  36. this.email = email ? email : null;
  37. this.activated = activated ? activated : false;
  38. this.langKey = langKey ? langKey : null;
  39. this.authorities = authorities ? authorities : null;
  40. this.createdBy = createdBy ? createdBy : null;
  41. this.createdDate = createdDate ? createdDate : null;
  42. this.lastModifiedBy = lastModifiedBy ? lastModifiedBy : null;
  43. this.lastModifiedDate = lastModifiedDate ? lastModifiedDate : null;
  44. this.password = password ? password : null;
  45. }
  46. }