UNPKG

@calf/angular

Version:

Angular module of Calf framework.

30 lines (29 loc) 1.06 kB
/** * Fake dao */ export class FakeDao { archive(entity, ...args) { throw new Error("[@calf: FakeDao]: Dao not implemented. Use http instead."); } save(entity, ...args) { throw new Error("[@calf: FakeDao]: Dao not implemented. Use http instead."); } get(entity, query = {}, ...args) { throw new Error("[@calf: FakeDao]: Dao not implemented. Use http instead."); } getList(query, ...args) { throw new Error("[@calf: FakeDao]: Dao not implemented. Use http instead."); } removeList(query, ...args) { throw new Error("[@calf: FakeDao]: Dao not implemented. Use http instead."); } remove(entity, ...args) { throw new Error("[@calf: FakeDao]: Dao not implemented. Use http instead."); } count(query, ...args) { throw new Error("[@calf: FakeDao]: Dao not implemented. Use http instead."); } update(query, payload, ...args) { throw new Error("[@calf: FakeDao]: Dao not implemented. Use http instead."); } }