More cleanup
This commit is contained in:
parent
c1b8c70473
commit
fca89ffbd2
2 changed files with 5 additions and 7 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import {UserReview} from "../_single-module/review-card/user-review";
|
||||
import {Rating} from "./rating";
|
||||
|
||||
export type ChapterDetail = {
|
||||
export type ChapterDetailPlus = {
|
||||
rating: number;
|
||||
hasBeenRated: boolean;
|
||||
reviews: UserReview[];
|
||||
|
|
@ -1,11 +1,9 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
import {Injectable} from '@angular/core';
|
||||
import {environment} from "../../environments/environment";
|
||||
import { HttpClient } from "@angular/common/http";
|
||||
import {HttpClient} from "@angular/common/http";
|
||||
import {Chapter} from "../_models/chapter";
|
||||
import {TextResonse} from "../_types/text-response";
|
||||
import {UserReview} from "../_single-module/review-card/user-review";
|
||||
import {Rating} from "../_models/rating";
|
||||
import {ChapterDetail} from "../_models/chapter-detail";
|
||||
import {ChapterDetailPlus} from "../_models/chapter-detail-plus";
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
|
|
@ -33,7 +31,7 @@ export class ChapterService {
|
|||
}
|
||||
|
||||
chapterDetailPlus(seriesId: number, chapterId: number) {
|
||||
return this.httpClient.get<ChapterDetail>(this.baseUrl + `chapter/chapter-detail-plus?chapterId=${chapterId}&seriesId=${seriesId}`);
|
||||
return this.httpClient.get<ChapterDetailPlus>(this.baseUrl + `chapter/chapter-detail-plus?chapterId=${chapterId}&seriesId=${seriesId}`);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue