User-Nucleus
Version vom 15. Dezember 2021, 11:57 Uhr von Hamatoma (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „Kategorie:Angular = Links = * Services-Nucleus * User-Nucleus = Interface User = <pre> mkdir src/user ng g interface user/user </pre> <pre> expo…“)
Links
Interface User
mkdir src/user ng g interface user/user
export interface User { id: number; role: number; roleName: string; isActive: boolean; name: string; email: string; shortname: string; displayName: string; info: string; groups: string; options: string; } export interface UserRaw { id: number; role: number; status: number; name: string; email: string; shortname: string; displayName: string; info: string; groups: string; options: string; }
- Unterschiede: status->isActive +roleName
User-Factory zur Konvertierung
mkdir src/user ng g class user/user-factory