csc302-spring-2021 / proj-DaTeam

CSC302 course project for DaTeam
https://dateam-frontend.herokuapp.com/
5 stars 2 forks source link

Implement DataServer #93

Open otomn opened 3 years ago

otomn commented 3 years ago

Implement DataServer (There already exists a file called DataLoader, rename it to DataServer)

Attribute

Cache: contains a map from UID to any domain object

Functions

genericRead(obj: any, objClass: Function): any
genericDelete(obj any, objClass: Function): bool
genericCreate(obj any, objClass: Function): Error | null

Hookup

Update all backend controllers to call DataServer if possible Update will be done with delete then create