Skip to content

Commit

Permalink
Remove ModelService
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaorson committed Apr 29, 2024
1 parent 1cf4ffe commit 5023935
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions client/src/services/AssignmentService.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import BlobService from './BlobService';
import HttpServiceV1, { type HttpOptions } from './HttpServiceV1';
import { Assignment, AssignmentMetadata, type AssignmentIndex, type Id, type ViewKey } from '@/models';
import type ModelService from './ModelService';

export default class AssignmentService implements ModelService<Assignment> {
export default class AssignmentService {
objectViewKeys: ViewKey[] = [
{ key: 'id', kind: 'text' },
];
Expand Down
3 changes: 1 addition & 2 deletions client/src/services/BlogService.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import type { BlogIndex, Id, ViewKey } from '@/models';
import { Blog, BlogMetadata } from '@/models';
import HttpServiceV1, { type HttpOptions } from './HttpServiceV1';
import type ModelService from './ModelService';

export default class BlogService implements ModelService<Blog> {
export default class BlogService {
objectViewKeys: ViewKey[] = [
{ key: 'id', kind: 'text' },
];
Expand Down
3 changes: 1 addition & 2 deletions client/src/services/CourseService.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Course, CourseMetadata, type CourseIndex, type Id, type ViewKey } from '@/models';
import BlobService from './BlobService';
import HttpServiceV1, { type HttpOptions } from './HttpServiceV1';
import type ModelService from './ModelService';

export default class CourseService implements ModelService<Course> {
export default class CourseService {
objectViewKeys: ViewKey[] = [
{ key: 'id', kind: 'text' },
{ key: 'name', kind: 'code' },
Expand Down
3 changes: 1 addition & 2 deletions client/src/services/SectionService.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Section, type ViewKey, type Id, type SectionIndex, SectionMetadata } from '@/models';
import HttpServiceV1, { type HttpOptions } from './HttpServiceV1';
import type ModelService from './ModelService';

export default class SectionService implements ModelService<Section> {
export default class SectionService {
objectViewKeys: ViewKey[] = [
{ key: 'id', kind: 'text' },
];
Expand Down

0 comments on commit 5023935

Please sign in to comment.